Page 1 of 1

My VLC Media Player in VB.NET won't do anything?

Posted: 22 Jan 2013 12:37
by NotVLCWorking
My code looks to be right, but when I press button nothing happens. What am I doing wrong?

Code below:

Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
AxVLCPlugin21.playlist.add("C:\Users\Adminx\Downloads\The_Hobbit_Full_Length_Trailer_2_HD.mp4")

AxVLCPlugin21.playlist.play()
End Sub

End Class

Also in my toolbox the vlc things are written in Chinese. Is it meant to look like that? (look at picture below)

You may have to open image in new window, vlc forum seems to be only showing half of the image.
Image

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 22 Jan 2013 17:49
by NotVLCWorking
I even tried to do this in vmware on a fresh windows 7 and a fresh vlc and microsoft visual studio express 2012. And this still won't do anything (the vlc items in the toolbox still appear in chinese)

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 23 Jan 2013 17:57
by Jean-Baptiste Kempf
Without logs, we cannot help much.

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 23 Jan 2013 22:35
by NotVLCWorking
What do you mean by logs?

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 24 Jan 2013 08:54
by Lotesdelere
Open Tools -> Messages (set Verbosity to 2) before you start the playback and then paste the full resulting log here or on Pastebin.com if it's too long.

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 24 Jan 2013 14:25
by NotVLCWorking
There's not an option for that in visual basic?

Re: My VLC Media Player in VB.NET won't do anything?

Posted: 24 Jan 2013 14:34
by NotVLCWorking
I've figured what I was doing wrong :-)

I needed to change:
AxVLCPlugin21.playlist.add("C:\Users\Adminx\Downloads\The_Hobbit_Full_Length_Trailer_2_HD.mp4")

To this:
AxVLCPlugin21.playlist.add("file:///C:/Users/Adminx/Downloads/The_Hobbit_Full_Length_Trailer_2_HD.mp4")

Thanks for the help :-)