Ticket #1427 (Closed: fixed)
elapsed/remaining time API in gstreamer?
Priority: | normal | Reporter: | fgerlits |
---|---|---|---|
Severity: | feature | Assigned to: | maroy |
Component: | bug | Status: | closed |
Version: | 1.0 rc2 | Resolution: | fixed |
Milestone: | 1.0 | Keywords: |
Description by fgerlits:
This is a question really, not a bug. I put an elapsed/remaining time meter in the MasterPanelWindow? which works by writing down the time the clip was started and comparing this with the current time and the playlength of the Playable object. Now, this is clearly wrong, since it does not take pausing into account. I could implement a stopwatch feature in the master panel to determine the total time the clip was paused, but this might be very imprecise. Does gstreamer have some API which returns the elapsed/remaining time? And if so, could you make this available in the AudioPlayerInterface?? It's OK (maybe even better) if it returns the times for the current audio clip, and not for the whole playlist.
Attachments
Changelog
Thu Aug 25 19:01:22 2005: Modified by fgerlits
- status changed from new to assigned
- owner changed from anonymous to maroy
Fri Aug 26 07:36:35 2005: Modified by maroy
Fri Aug 26 08:53:01 2005: Modified by fransman
I am even more happy if you can strip the playlist in separated items in the gLiveSupport GUI We have spoke about it in this topics https://www.campware.org/view.php?id=933 Or have this idea just in mind for the future handling
Fri Aug 26 08:58:31 2005: Modified by fgerlits
OK, let's do it for the whole playlist. The current audio clip was only an idea, if maybe it's easier that way. Apparently not. :)
Fri Aug 26 09:02:58 2005: Modified by fgerlits
Anyway, low priority, as pausing does not work at all at the moment
(see #1295).
Fri Aug 26 11:30:32 2005: Modified by maroy
I can provide this functionality by tomorrow. if you want to, you can add the desired function prototype to the playlistExecutor API, and I can fill it with useful functionality tomorrow.
Fri Aug 26 12:51:24 2005: Modified by maroy
I just checked pausing, as mentioned in issue #1295 , but all works
for me fine...
Fri Aug 26 13:32:22 2005: Modified by maroy
- resolution set to fixed
- status changed from assigned to closed
see AudioPlayerInterface?::getPosition() also, if you need an event listener interface, that would fire each time 'some audio' has to be played, that could be achieved as well
Wed Sep 7 10:46:10 2005: Modified by fgerlits
- milestone set to 1.0
it can be done, for the whole playlist surely. but for the 'current audio clip' - that's quite problematic, as there may be multiple current audio clips, if they are playing simultaniously...