Closed cristianowa closed 8 years ago
This question is about that : http://stackoverflow.com/questions/28440708/python-vlc-binding-playing-a-playlist
The follwing code does that, but the m3u must be created.
x = vlc.MediaListPlayer() x x.set_media_list? x.set_media_list("test_files/playlist.m3u") x.set_media_list("test_files/playlist.m3u") y = vlc.MediaList() y.add_media("testfiles/DOt-05-_IMF.mp3") y.media y.insert_media("testfiles/DOt-05-_IMF.mp3") y.add_media("testfiles/DOt-05-_IMF.mp3") y.item_at_index y.item_at_index[0] y.item_at_index(o) y.item_at_index(0) b = y.item_at_index(0) b.get_mrl b.get_mrl() y x.from_param(y) x x.play() x.set_media_list(y) x x.play() x.next() x.next() %hist
Player now only play one file at a time. Is should be able to receive a list of files and play all of them.
Futhermore, the methods next and previus should be implemented.