playing .m3u file on libVLC on python

This forum is about all development around libVLC.
yang0312
New Cone
New Cone
Posts: 3
Joined: 20 Jan 2017 13:15

playing .m3u file on libVLC on python

Postby yang0312 » 23 Jan 2017 03:32

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: playing .m3u file on libVLC on python

Postby Jean-Baptiste Kempf » 23 Jan 2017 08:34

Like any other file.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

yang0312
New Cone
New Cone
Posts: 3
Joined: 20 Jan 2017 13:15

Re: playing .m3u file on libVLC on python

Postby yang0312 » 23 Jan 2017 09:17

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....

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: playing .m3u file on libVLC on python

Postby Jean-Baptiste Kempf » 10 Feb 2017 14:16

Use the media list api.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 2 guests