在C#应用程序中嵌入VLC [英] embedded vlc in c# app

查看:118
本文介绍了在C#应用程序中嵌入VLC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道这是否可行,尝试使用
通过菜单播放.iso文件 嵌入式VLC媒体播放器控件.控件启动并显示电影主菜单屏幕.

在独立应用程序中,我只需单击播放电影"或使用vlc热键"Shift b"来播放主标题.不幸的是,嵌入式VLC是ActiveX控件,不接受消息,因此 SendKeys.SendWait("+(b)"); 被忽略.我在嵌入式控件中也没有任何参数可以在调用时从主标题开始指定:axVLCPlugin21.playlist.playItem(0);

实际代码如下:

Don''t know if this is possible, trying to playback a .iso file with menu using
embedded VLC media player control. Control launches and displays main movie menu screen.

In stand-alone app I simply click on ''play movie'' or use vlc hot key ''Shift b'' to play the main title. Unfortunately VLC embedded is ActiveX control and does not accept messages, so SendKeys.SendWait("+(b)"); is ignored. There are also no parameters that I know of in the embedded control to specify starting with the main Title when invoking: axVLCPlugin21.playlist.playItem(0);

Actual code looks like this:

axVLCPlugin21.AutoPlay = false;
            axVLCPlugin21.playlist.add(@"I:\.iso Files\Bitter Rice\Sylvana_Mangano.iso");
            axVLCPlugin21.playlist.playItem(0);
            axVLCPlugin21.Focus();
            SendKeys.SendWait("+(b)");
            SendKeys.SendWait("z");




任何想法或建议.




Any thoughts or suggestions.

推荐答案

SendKeys是一场灾难,切勿使用.控件没有可调用的方法来执行此操作吗?您传递给PlayItem的参数是什么?
SendKeys is a disaster, NEVER use it. Doesn''t the control have a method you can call to do this ? What is the parameter you pass to PlayItem ?


这篇关于在C#应用程序中嵌入VLC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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