play video on vb.net

This forum is about all development around libVLC.
wholehog2
New Cone
New Cone
Posts: 2
Joined: 26 Nov 2018 17:11

play video on vb.net

Postby wholehog2 » 26 Nov 2018 17:24

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.

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: play video on vb.net

Postby mfkl » 27 Nov 2018 03:17

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
https://mfkl.github.io

wholehog2
New Cone
New Cone
Posts: 2
Joined: 26 Nov 2018 17:11

Re: play video on vb.net

Postby wholehog2 » 27 Nov 2018 11:37

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.

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: play video on vb.net

Postby mfkl » 28 Nov 2018 03:40

https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests