无法使用VLC OCX播放媒体 [英] Unable to play media with vlc ocx

查看:286
本文介绍了无法使用VLC OCX播放媒体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将vlc媒体播放器嵌入到我发现了很多解决方案的.NET应用程序中

I want to embed the vlc media player in a .NET application I've found a lot of solutions

  1. VLC .Net界面<-与我不兼容
  2. 用于dll函数的包装器<>
  3. http://vlcdotnet.codeplex.com 这很好
  4. VLC的activex-我真的很喜欢使用它,它的bug和错误应该更少,但可以发现错误
  1. VLC .Net interface <- didn't work with me
  2. wrappers for dll functions <>
  3. http://vlcdotnet.codeplex.com this is nice
  4. the activex of VLC - i really liked to use it it must be less bugs and errors but errors found

我发现2个控件"VLC ActiveX插件和IE Web插件v1","VLC ActiveX插件和IE Web插件v2" 它们之间有什么区别? 我拖放了拳头,并使用了以下代码

I found 2 controls "VLC ActiveX plugin and IE web plugin v1" , "VLC ActiveX plugin and IE web plugin v2" What is the difference between them?? i dragged and dropped the fist one and used the following code

axVLCPlugin1.addTarget(@"D:\video\English\10,000.b.c\10000bc.rmvb", null, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, -666);
axVLCPlugin1.play();

无效 我拖放了第二个,并使用了以下代码

that had no effect i dragged and dropped the second one and used the following code

axVLCPlugin21.playlist.add(@"D:\video\English\10,000.b.c\10000bc.rmvb");
axVLCPlugin21.playlist.play();
//i also tried this
axVLCPlugin21.playlist.playItem(0);

也没有效果

我没有找到VLC OCX的许多详细信息和文档 错误是什么?

I didn't found many details and documentations of the VLC OCX what is the error ?

推荐答案

不推荐使用ActiveX的 v1 v2主要用于浏览器集成,因此不能像您尝试的那样使用...

The v1 of the ActiveX is deprecated and v2 is primarily for browser integration thus not intended to be used like you tried...

使用 http://vlcdotnet.codeplex.com/-这是一个运行良好的库.

Use http://vlcdotnet.codeplex.com/ - this is a well-working library...

这篇关于无法使用VLC OCX播放媒体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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