C#RTSP通信1:C#高性能RTSP播放器(使用FFmepg封装自定义控件,使用简单)
C#RTSP通信2:RTSP语音广播+语音对讲(WinForm版本)
vlc延时问题
使用vlc,即便优化参数,也有大概几百毫秒的延时 string[] options = { ":network-caching=300", ":rtsp -tcp", ":no-audio" };// { ":network-caching=100", ":rtsp -tcp", ":no-audio" };
直接使用ffmepg,和EasyPlayer性能对比,1. 稳定运行;2. 断网恢复后自动播放
发布文件
源码结构
using System; using System.Windows.Forms; namespace RtspPlayer { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } private void btnPlay_Click(object sender, EventArgs e) { this.videoControl1.StartPlay(this.txtUrl.Text); } private void btnStop_Click(object sender, EventArgs e) { this.videoControl1.Stop(); } } }