Closed zilogZ80 closed 4 years ago
What happens if you explicitly specify different dbus names, for example :
omx_main = OMXPlayer (movie1,dbus_name='org.mpris.MediaPlayer2.omxplayer1', args=['-b', '--display=2', '-o', 'local'])
omx_sub` = OMXPlayer (movie2,dbus_name='org.mpris.MediaPlayer2.omxplayer2', args=['-b', '--display=7'])
Yes! Perfect, thank you. Apologies, it was probably really obvious, I am still learning though!!
@alexandrebarsacq thanks for answering this. I've added a FAQ to the main page for the benefit of others like @zilogZ80 who have the same question https://github.com/willprice/python-omxplayer-wrapper/blob/master/README.rst#how-do-i-create-multiple-players
I'm using the python-omxplayer-wrapper by willprice to control Omxplayer from Python, basically starting a video, pausing it until an input is received, playing it until the end, rewinding & pausing it, loop
works great with one video but when I try to do it with two videos (both outputted via HDMI on a Pi 4) only the first video works as expected (i.e. pauses), the second one just plays normally. Any ideas?