C# 播放本地视频和网络视频
别搜baidu了,大部分垃圾,别浪费时间,这个自个觉得已经很全了。自个写的,发到了一些网站,有的要积分,有的要收费。坛子人气不行,发给大家参考
链接:https://pan.baidu.com/s/10Q0HoalZO3sHBhRogMb-7A
提取码:9112
采用VLC的DLL和FireFox的DLL,.NET为4.5版本。如需更高版本可直接从VS的NuGet中获得。
除VLC、FireFox基础DLL外,其余全部源码。
点击“视频列表选择”,再需要播放前面打勾,点击“确定选择”。上边“播放”为预览,下边“OK”为桌面背景播放
点击“动画壁纸”,在下边点击“选择动画列表”,选中的打勾,关闭。上边“播放”为预览,下边“OK”为桌面背景播放
如使用集成显卡,则开始壁纸播放时会挡住桌面图标,按下“Win”+ “D”组合键可正常使用。
有bug自行修正。
支持
dvd://;"vcd://";"cdda://";"bluray://";"rtp://";"rtsp://";"http://";"udp://";"mms://";"dshow://";
"screen://";"fake://";"imem://";...........
等方式,
支持文件类型:
"*.3g2","*.3pg","*.3gp2","*.3gpp","*.amv","*.asf","*.avi","*.bik","*.divx","*.drc","*.dv","*.f4v",
"*.flv","*.gvi","*.gfx","*.m1v","*.m2v","*.m2t","*.m2ts","*.m4v","*.mkv","*.mov",
"*.mp2","*.mp2v","*.mp4","*.mp4v","*.mpe","*.mpeg","*.mpeg1","*.mpeg2","*.mpeg4",
"*.mpg","*.mpv2","*.mts","*.mtv","*.mxf","*.mxg","*.nsv","*.nuv","*.ogg","*.ogm",
"*.ogv","*.ogx","*.ps","*.rec","*.rm","*.rmvb","*.rpl","*.thp","*.tod","*.ts","*.tts","*.txd","*.vob",
"*.vro","*.webm","*.wm","*.wmv","*.wtv","*.xesc"......等。