基于VLC的视频播放器,可播放本地视频与网络视频流,代码由C#开发。
示例代码,完整代码下载后学习使用。
this.btPlay.BackgroundImage = global::VideoPlayer.Properties.Resources.pau;
if (_mp.State == VLCState.Ended || _mp.State == VLCState.Stopped){
if (_mp.State == VLCState.Ended)
{
_mp.Position = 0;
_mp.Stop();
changeValue = 0;
this.tbProgress1.L_Value = 0;
this.llTime.Text = string.Format("{0}/{1}", GetTimeString(this.tbProgress1.L_Value), GetTimeString(this.tbProgress1.L_Maximum));
}
timer1.Start();
}
_mp.Play(); isPlaying = true;
收藏