Python VLC MediaListPlayer – Playing Item
In this article we will see how we can play the given item in the MediaListPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. Media list player is used to play multiple media in a row for example playing a series, instead of taking single media it accepts media list. Its working is almost similar like the MediaPlayer object but it is capable of playing list of media. We can play a media with the help of play method but it start playing media from index 0, and item at given index can be played with the help of play_item_at_index method.
In order to do this we will use play_item method with the MediaListPlayer object
Syntax : media_list_player.play_item(media)
Argument : It takes Media object argument
Return : It returns 0 upon success -1 if the item wasn’t found.
Below is the implementation
Output : Another example Below is the implementation