GNOME Bugzilla – Bug 339199
api: ability to request stop playing at certain position
Last modified: 2006-04-20 16:29:55 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.
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.
thank you!
Feel free come by our IRC channel #gstreamer on irc.freenode.org if you run into any problems with this or have additional questions.