'AxAXVLC.AxVLCPlugin2' does not contain a definition for 'addTarget'

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Astarael
New Cone
New Cone
Posts: 2
Joined: 07 Apr 2015 16:26

'AxAXVLC.AxVLCPlugin2' does not contain a definition for 'addTarget'

Postby Astarael » 22 Apr 2015 16:18

I'm trying to use the VLC Plugin for winforms using c#.
I wasn't able to register the dll, but on Visual Studio I was able to add the plugin for use so it must have already been there.
I now have a player control in a form called AxAXVLC.AxVLCPlugin2, which I am trying to pass files through to to play.
However, the command I've found online (addTarget) is giving the below error.
Do I need to include a directory or similar? Or is this not the correct method?

'AxAXVLC.AxVLCPlugin2' does not contain a definition for 'addTarget' and no extension method 'addTarget' accepting a first argument of type 'AxAXVLC.AxVLCPlugin2' could be found (are you missing a using directive or an assembly reference?)

public PlayerForm(string mediaPath)
{
InitializeComponent();
axVLCPlugin21.addTarget = mediaPath;
}

PachN
New Cone
New Cone
Posts: 1
Joined: 27 Apr 2015 11:43

Re: 'AxAXVLC.AxVLCPlugin2' does not contain a definition for 'addTarget'

Postby PachN » 27 Apr 2015 11:47

addTarget is a method from VLC v1 plugin IIRC.

Try that:

Code: Select all

axVLCPlugin21.playlist.add("File:/// +" mediaPath, null, null); axVLCPlugin21.playlist.play();


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests