通过C#控制VLC [英] Controlling VLC via c#

查看:417
本文介绍了通过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.VLCPlayL­istReplaceAndGo,0);

这篇关于通过C#控制VLC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆