Setting options for VLC ActiveX Plugin

◇◆丶佛笑我妖孽 提交于 2019-12-08 06:45:14

问题


I was able to use the vlc activex plugin (version 1 and 2) in a c#.net application to display videos. It runs nicely, but I can't set any options.

Here's the code:

string options = "--brightness=2"; // I also tried ":brightness"
axVLCPlugin1.addTarget("file:///"+ filePath1, options, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0);
axVLCPlugin1.play();         

This is for version 1. Version 2 gives the same results. The "options" do not have any effect on the displayed video.

The documentation says that most command line options will work, but I can't get any to work.

Thanks


回答1:


I achieve this without using activex plugin, but directly with libvlc functions: 1. add the libvlc.dll, libvlccore.dll and vlc plugins direction to c# project direction. 2. use DllImport to import vlc functions into C# code. 3. call the vlc functions in C#, and it is possible to add vlc options.

The code in http://jcwshih.blogspot.de/2012_07_01_archive.html could be helpful.

Best regards



来源:https://stackoverflow.com/questions/19138984/setting-options-for-vlc-activex-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!