After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339199 - api: ability to request stop playing at certain position
api: ability to request stop playing at certain position
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-20 15:41 UTC by Nick Shaforostoff
Modified: 2006-04-20 16:29 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Nick Shaforostoff 2006-04-20 15:41:37 UTC
please, add ability to request stop playing at certain 
position - this would be great for proper cue sheet 
support in amarok (and not only in it :)

of course, amarok can schedule stoppping by itself, but 
the reaction time would be probably less accurate than if 
it were done on the level of engine.
Comment 1 Tim-Philipp Müller 2006-04-20 15:49:06 UTC
There is already API to do this. It's part of the seek API.

You can do a seek and specify a stop position in addition to the start/seek position, then it should send/post an EOS in the normal way as soon as the stop position is reached (not all decoders may support this properly yet, but it should be fairly easy to fix - please file bugs when you run into a decoder where this doesn't work).

See bug #338290 for an example and a small test program in python.




Comment 2 Nick Shaforostoff 2006-04-20 16:14:38 UTC
thank you!
Comment 3 Tim-Philipp Müller 2006-04-20 16:29:55 UTC
Feel free come by our IRC channel #gstreamer on irc.freenode.org if you run into any problems with this or have additional questions.