VLC ActiveX禁用字幕

时间:2014-08-01 00:17:56

标签: c# winforms activex vlc subtitle

我的Visual Studio项目中有一个Windows窗体窗口,其中包含来自VLC附带的ActiveX插件的AxVLCPlugin2元素。它工作得很好,但是如果存在* .sub和* .idx文件,它会自动加载字幕并显示它们。我永远不需要这个,并且想要完全禁用VLC ActiveX控件的字幕。

//this is how I load and play the video into the activeX element named "axVLCPlugin21"
var convertedURI = new Uri("C:\SomeVideo.avi").AbsoluteUri;
axVLCPlugin21.playlist.clear();
axVLCPlugin21.playlist.add(convertedURI);
axVLCPlugin21.playlist.play();

2 个答案:

答案 0 :(得分:0)

我没有.idx文件的视频,但请尝试:

if (axVLCPlugin21.subtitle.count > 0) axVLCPlugin21.subtitle.track = 0;
视频开始时

答案 1 :(得分:0)

试试这个

 if (VLC.subtitle.count > 0)
             {
          VLC.subtitle.track = 0;                    
          VLC.video.subtitle = -1;
             }

它对我有用:D