通过C#控制VLC

编程入门 行业动态 更新时间:2024-10-23 07:37:28
本文介绍了通过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

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

发布评论

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

>www.elefans.com

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