I have multiple live streams running which I'm playing with python-vlc.
So something like this:
stream1 = vlc.MediaPlayer("rtsp://...")
stream2 = vlc.MediaPlayer("rtsp://...")
stream1.play()
stream1.audio_toggle_mute()
stream2.play()
stream2.toggle_fullscreen()
I can use toggle_fullscreen to display one but how can I switch between multiple streams and bring a specific one to the foreground? Would I just have to stop and start it again or is there an easier way?
I ended up using PyQt5 to create a window and embed the vlc media player in it and then switch using that. The code I used to define the stream is: