可播放本地视频、网络视频、动画作为系统桌面背景,自动循环播放列表。
有兴趣的可以搞一个小项目,设立一个自己的网站,可从网站更新动态桌面壁纸发送到客户端。
代码比较简单,流水账式从上到下写的代码,很容易看明白,无论是学习参考还是
当做工具使用都可以,支持Windows 10、Windows 7。
已将需要的库加入代码中,可调试运行(x86、允许不安全)。
注意:
如使用集成显卡,则开始壁纸播放时会挡住桌面图标,按下“Win”+“D”组合键可正常使用。
支持
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"......等。
采用VLC的DLL和FireFox的DLL,.NET为4.5版本。如需更高版本可直接从VS的NuGet中获得。
除VLC、FireFox基础DLL外,其余全部源码,并在重点部分加注了说明。
VLC与FireFox是有冲突的,代码中需进行调整可避免,已加了标注。
原VLC会有锁死情况,这里也通过代码进行了避免,在CS文件中进行查看。