Page 1 of 1

play video on vb.net

Posted: 26 Nov 2018 17:24
by wholehog2
Hi all,
I post this message because I have problems to play vidéo with vlc in visual studio 2018. I'm a biginner in coding, so I need help.
I created a windows form with a vlc and 4 butons to play, stop, pause and add a file to the play list. But unfortunatly after add the file by the command :

Code: Select all

OpenFileDialog1.ShowDialog() AxVLCPlugin21.playlist.add(OpenFileDialog1.FileName)
and this code for the buton "play" :

Code: Select all

AxVLCPlugin21.playlist.play()
The vidéo doesn't appear. I test with an audio file and it's the same.

I noticed that in the debugger output of visual studio this :
main stream debug: no access modules matched
[05ffe530] main input error: Your input media can't be opened
[05ffe530] main input error: VLC can't open « C:\Users\hp-bureau\Videos\Wildlife.mp4 ». Chek messages for more details.
What must I do to play the vidéo ?
Thanks.

Re: play video on vb.net

Posted: 27 Nov 2018 03:17
by mfkl
Hi,

If you're targetting Windows Forms you have no need to use AxVLCPlugin which is mostly unmaintained.

Try one of the recent wrappers https://github.com/videolan/libvlcsharp and https://github.com/ZeBobo5/Vlc.DotNet

Re: play video on vb.net

Posted: 27 Nov 2018 11:37
by wholehog2
Thank you for answering mfkl.
I code in vb, so those wrappers are correct ?
If so how can I include them in my project ?
Thanks.

Re: play video on vb.net

Posted: 28 Nov 2018 03:40
by mfkl