Page 1 of 1

How to Listen for Time Changes While Paused?

Posted: 29 Sep 2012 20:06
by Vhati
With the Python Bindings (2012-09-28), listening for timechanged works fine while playing...

Code: Select all

self.vlc_event_manager.event_attach(vlc.EventType.MediaPlayerTimeChanged, self._on_vlc_event)
But if I pause, then call vlc_player.set_time(...) from my app's seek slider, VLC complies but doesn't fire a timechanged event in acknowledgement.

Should I be listening for something else?

Re: How to Listen for Time Changes While Paused?

Posted: 11 Oct 2012 20:10
by mangokm40
I guess you could go two ways.
1) if everyone agrees it's a 'bug', you could patch libvlc code.
2) when the user drags your app's slider, you could call the function that you attached to MediaPlayerTimeChanged.