python-vlc
python-vlc copied to clipboard
MediaListPlayer won't start playing after setting playback mode to 'repeat'
Example code:
import time, vlc
instance = vlc.Instance()
media_list = instance.media_list_new(['./video_01.mp4', './video_02.mp4'])
list_player = instance.media_list_player_new()
list_player.set_media_list(media_list)
# won't work with repeat
list_player.set_playback_mode(vlc.PlaybackMode.repeat)
list_player.play()
time.sleep(5)
# will work with loop
list_player.set_playback_mode(vlc.PlaybackMode.loop)
list_player.play()
while True:
pass
I think this is a bug in VLC itself. I encounter the same problem using the oldrc interface over a socket. After a track finishes playing, VLC refuses to do anything else. After any of these commands, VLC echoes Press 'pause' to continue.: play, pause, stop, seek 0, etc. I have to restart VLC to play a track again.