Code: Select all
import vlc
mrl1 = '....1.3gp'
mrl2 = '....2.3gp'
Instance = vlc.Instance('--input-repeat=-1', '--fullscreen', '--mouse-hide-timeout=0')
MediaList = Instance.media_list_new()
MediaList.add_media(Instance.media_new(mrl2))
MediaList.add_media(Instance.media_new(mrl1))
list_player = Instance.media_list_player_new()
list_player.set_media_list(MediaList)
list_player.next()
player.play()
How to add a video to a playlist in Python's binding for LibVLC?
Is there a utility function that plays all the videos in a folder?
UPD: I've created a playlist, and ran it to test in VLC player. Playing only the first video. After VLC is also closed. What is the problem?