Hope this is the right section.
I'm trying to find out how to use the ActiveX control for VLC but can not find any documentation or examples on how to open a file and play it. I've added it to both C# forms and MFC dialogs but thats about it, a black panel on a window.
E.g. c# :-
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
string[] tryThese = new string[]
{
@"C:\\Delme4.mp4",
@"Delme4.mp4",
@"http://localhost/C:\\Delme4.mp4",
@"http://localhost/Delme4.mp4",
@"file:///C:/delme4.mp4",
@"file://C:/delme4.mp4",
@"file:/C:/delme4.mp4",
@"file:///C:\delme4.mp4",
@"file://C:\delme4.mp4",
@"file:/C:\delme4.mp4",
};
axVLCPlugin21.playlist.clear();
int iAttempt = 0;
while (axVLCPlugin21.playlist.items.count == 0 && (iAttempt < tryThese.Length))
{
Debug.WriteLine("Trying (in vain) " + tryThese[iAttempt]);
axVLCPlugin21.playlist.add(tryThese[iAttempt], null, null);
iAttempt++;
}
if (axVLCPlugin21.playlist.items.count == 0)
MessageBox.Show("VLC Bug ;-)");
else
axVLCPlugin21.playlist.playItem(0);
}
So, exactly what code do I need to open a file and play it ? Once that far I'm sure I can work out the rest, but not being able to open a file in the first place is a bit of a killer
TTFN,
Jon