Page 1 of 1

playing .m3u file on libVLC on python

Posted: 23 Jan 2017 03:32
by yang0312
Hi guys. I'm having trouble playing .m3u file on python.
I mean, in console, .m3u file works fine.
Could you tell me how to play .m3u file in libVLC python? thanks!

Re: playing .m3u file on libVLC on python

Posted: 23 Jan 2017 08:34
by Jean-Baptiste Kempf
Like any other file.

Re: playing .m3u file on libVLC on python

Posted: 23 Jan 2017 09:17
by yang0312
actually, mine doesn't....
p = vlc.MediaPlayer("playlist.m3u")
p.play()
is what I've wrote, but It doesn't play any music.....
of course, in counsole, that file perfectly works fine....

Re: playing .m3u file on libVLC on python

Posted: 10 Feb 2017 14:16
by Jean-Baptiste Kempf
Use the media list api.