在Vb.Net表单中嵌入VLC媒体播放器 [英] Embed VLC Media Player In Vb.Net Forms

查看:493
本文介绍了在Vb.Net表单中嵌入VLC媒体播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每一个人。

我安装了vlc 2.2.1。首先我从com组件添加vlc的引用,但当我在表单上拖动它时,我面临以下错误。

无法导入Active X控件。请确保它已经注册了。

请帮助我。

解决方案

你做错了什么。您可能没有注册ActiveX控件。无论如何,我会尽量避免使用ActiveX和COM;这是用于将OOP引入非OOP操作系统的过时技术,如果完全面向对象,则是.NET;它可以使用COM,但最好避免它。



请考虑那些包装:

http://sourceforge.net/projects/libvlcnet

https://wiki.videolan.org/C_Sharp

https:/ /wiki.videolan.org/.Net_Interface_to_VLC



另见我过去的答案:

使用C#在Windows资源管理器中预览所选文件 [ ^ ] ,

在没有WMP的情况下在vb.net中流媒体音乐文件 [< a href =http:// www .codeproject.com / Answers / 561539 / Streamingplusmusicplusfilesplusinplusvb-netpluswit#answer1target =_ blanktitle =New Window> ^ ]。



另请参阅此CodeProject文章: nVLC



-SA


我找到了另一种方式..我用NuGet包管理器安装Vlc包,现在它的工作..谢谢每个人:)

hi every one.
I have installed vlc 2.2.1. first i add reference of vlc from com components but when i drag it on the forms then the following error i faced.
Failed To Import The Active X Control. Please Ensure it is property registered.
plz help me.

解决方案

You did something wrong. It's possible that you did not register ActiveX control. Anyway, I would avoid ActiveX and COM by all means; this is obsolete technology used to bring OOP into non-OOP OS, and .NET if fully object-oriented from the ground; it can use COM, but it's better to avoid it.

Please consider those wrappers:
http://sourceforge.net/projects/libvlcnet,
https://wiki.videolan.org/C_Sharp,
https://wiki.videolan.org/.Net_Interface_to_VLC.

See also my past answers:
Preview selected file in Windows Explorer using C#[^],
Streaming music files in vb.net without WMP[^].

See also this CodeProject article: nVLC.

—SA


i have found another way.. I am install Vlc packages with NuGet Package Manager and now its work.. Thanks every body :)


这篇关于在Vb.Net表单中嵌入VLC媒体播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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