在C#应用程序中嵌入VLC

编程入门 行业动态 更新时间:2024-10-23 23:31:36
本文介绍了在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

本文发布于:2023-11-17 07:27:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609298.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   VLC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!