本文介绍了通过C#控制VLC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写一个应用程序,将打开VLC,将文件添加到播放列表中的,并播放。 。我有在最后2的几个问题。
I am writing an application that will open vlc, add a file to its playlist, and play it. I am having a few issues on the last 2.
AXVLC.VLCPlugin alxplugin1 = new AXVLC.VLCPlugin(); alxplugin1.addTarget("C:\\test.avi", null, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0); alxplugin1.play();这是不工作...任何想法?
This isn't working... Any ideas?
感谢
推荐答案VLC的较新版本需要的file:///文件名开头。如果添加这个它应该工作。请尝试以下,看看它是否解决您的问题。 使用: alxplugin1.addTarget(文件:///+C:\\test.avi,空,AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo,0) ;
The newer version of VLC needs "file:///" in beginning of the file name. It should work if you add this. Please try the following and see if it solves your problem. use: alxplugin1.addTarget("file:///" + "C:\\test.avi", null, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo,0);
更多推荐
通过C#控制VLC
发布评论