How to Listen for Time Changes While Paused?

This forum is about all development around libVLC.
Vhati
Blank Cone
Blank Cone
Posts: 16
Joined: 06 Apr 2011 08:07

How to Listen for Time Changes While Paused?

Postby Vhati » 29 Sep 2012 20:06

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?

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: How to Listen for Time Changes While Paused?

Postby mangokm40 » 11 Oct 2012 20:10

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests