Python VLC MediaList – Adding Media to it
In this article we will see how we can add media to the MediaList 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. MediaList object contains the multiple media, in other words it has list of media which can be used with MediaListPlayer object to play these multiple media object. Adding media act similar to inserting media at the end of the list.
In order to do this we will use
add_mediamethod with the MediaList object
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Syntax : media_list.add_media(media)
Argument : It takes Media object as argument
Return : It returns None
Below is the implementation