Page 1 of 1

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

Posted: 22 Apr 2015 16:18
by Astarael
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;
}

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

Posted: 27 Apr 2015 11:47
by PachN
addTarget is a method from VLC v1 plugin IIRC.

Try that:

Code: Select all

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