[PYTHON] Load a new media without resetting the player
Posted: 01 Apr 2015 16:04
Hi,
Whenever I want to change the played video, I do:
However, what bothers me is that player.play() sometimes closes the current VLC instance and opens a new one, usually with a different size/video resolution.
This really bothers me because I need to keep the focus on one specific VLC instance, and this messes up my thing.
Any way to make sure it won't restart/load a new VLC instance when I change a media? Thanks in advance.
Whenever I want to change the played video, I do:
Code: Select all
player.set_media(instance.media_new("path/to/media")
player.play()
This really bothers me because I need to keep the focus on one specific VLC instance, and this messes up my thing.
Any way to make sure it won't restart/load a new VLC instance when I change a media? Thanks in advance.