使用vlc进行二次开发做自己的播放器
可参考:
使用
https://github.com/ZeBobo5/Vlc.DotNet
或者
https://www.nuget.org/packages/Vlc.DotNet.Core.Interops/
https://www.nuget.org/packages/Vlc.DotNet.Core/
http://www.nuget.org/packages/Vlc.DotNet.Forms/
https://www.nuget.org/packages/Vlc.DotNet.wpf/
https://ci.appveyor.com/project/ZeBobo5/vlc-dotnet/branch/master/artifacts
例子很详细
private void OnButtonPlayClicked(object sender, EventArgs e) { myVlcControl.Play(new Uri("http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi")); //myVlcControl.Play(new FileInfo(@"..\..\..\Vlc.DotNet\Samples\Videos\BBB trailer.mov")); } private void OnButtonStopClicked(object sender, EventArgs e) { myVlcControl.Stop(); } private void OnButtonPauseClicked(object sender, EventArgs e) { myVlcControl.Pause(); }
可以轻松播放网络视频,rtsp视频及本地视频等等。