Generating C# DLLs for VLC ActiveX plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
VlcUser1982
New Cone
New Cone
Posts: 4
Joined: 13 Jan 2011 22:06

Generating C# DLLs for VLC ActiveX plugin

Postby VlcUser1982 » 19 May 2011 17:13

I am developing in C# (.NET) and currently have a VLC ActiveX plugin working fine with an older version of VLC installed (1.0.5). A previous developer generated the necessary DLL in order to allow us to embed the ActiveX VLC player in our application (AxAXVLC.dll). It allows us to create instances of a class called "AxVLCPlugin2". Another necessary DLL we use, (AXVLC.dll), comes with VLC. But now I am wanting to upgrade to the latest version of VLC (1.1.5) and hence need to regenerate the AxAXVLC.dll for that version. Otherwise, the VLC player in our app does not work. Has anyone done this or know the procedure? Thanks.

ZeBobo5
Blank Cone
Blank Cone
Posts: 17
Joined: 17 Nov 2006 11:38

Re: Generating C# DLLs for VLC ActiveX plugin

Postby ZeBobo5 » 25 May 2011 15:48

Hello,
Why don't you use Vlc DotNet for WinForm & WPF ?
http://vlcdotnet.codeplex.com/

ZeBobo5

grantsss
New Cone
New Cone
Posts: 1
Joined: 27 May 2015 23:32

Re: Generating C# DLLs for VLC ActiveX plugin

Postby grantsss » 27 May 2015 23:35

Hi,

I'm new to VLC development. I'd like to use VLC.Net.Forms to create and consume a plugin.

Would you please point me to some documentation and samples of how to do that.

Thanks,

Grant

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Generating C# DLLs for VLC ActiveX plugin

Postby Jean-Baptiste Kempf » 16 Jul 2015 10:57

Don't use the ActiveX for this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xuanvuongspkt
New Cone
New Cone
Posts: 5
Joined: 05 Jul 2015 10:52

Re: Generating C# DLLs for VLC ActiveX plugin

Postby xuanvuongspkt » 01 Aug 2015 06:18

Hello,
I'm develop my system to get camera from DRV. by using C#
I'm using RTSP in VLC to show it.
I'm using Vlc DotNet for WinForm & WPF and VLC-2.2.2 built by linux
And I get problem when get --aspect-ratio 1:1 and can't take snapshot to bitmap to process before save file to dics
How can I do that !!!
Please help !!
Thanks all for help !!

camycent
New Cone
New Cone
Posts: 4
Joined: 24 Jul 2015 12:57

Re: Generating C# DLLs for VLC ActiveX plugin

Postby camycent » 03 Aug 2015 09:17

At first we have to initialize VlcContext before loading VLC control on our form or code

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Set libvlc.dll and libvlccore.dll directory path
VlcContext.LibVlcDllsPath=CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_AMD64;
//Set the vlc plugins directory path
VlcContext.LibVlcPluginsPath=CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_AMD64;

//Set the startup options
VlcContext.StartupOptions.IgnoreConfig = true;
VlcContext.StartupOptions.LogOptions.LogInFile = true;
VlcContext.StartupOptions.LogOptions.ShowLoggerConsole = true;
VlcContext.StartupOptions.LogOptions.Verbosity=VlcLogOptions.Verbosities.Debug;

//Initialize the VlcContext
VlcContext.Initialize();

Application.Run(new Form1());

//Close the VlcContext
VlcContext.CloseAll();
}


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests