-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't reset the media without re-initializing the media player #44
Comments
I see two things here:
`` import code player = vlc.MediaListPlayer() sounds = player.get_instance().media_list_new(("/usr/share/psi-plus/sound/attention.wav",
|
@oaubert well the thing is the code I put doesn't reflect what I'm doing, instead, I made up the above code to explain the problem I am having.
Regarding your second point do you mean I should make a loop to check |
For some reason, vlc event handlers are not re-entrant (oaubert/python-vlc#44 (comment)). This means that the vlc API can't be used from an event handler, and that an event handler that reacts to stop/end-of-stream by releasing the player and the vlc instance will likely get stuck and the app may eventually die with SIGSEGV. Because of this design limitation on the vlc side, the plugin has to run another thread in the main app that monitors the stop event set by the event handler and releases the resources appropriately.
Hi,
I want to use the event manager to play the next item of a list but only the first item is being played,
to get the rest of the list to play i need to re initialize the media player object every time I set the new media
so the above code plays the first item and then exits, but if i move the line where i create the media player object to inside the play_item function (so the object get's created every time) the code wil work and items will be played sequentially, like so:
So why can't I use the same media player and change the media ?!
The text was updated successfully, but these errors were encountered: