PlayBin: pause at the end

Tim Müller tim at centricular.com
Sun Aug 24 06:12:56 PDT 2014


On Sun, 2014-08-24 at 14:34 +0200, Manuel wrote:

Hi,

> I have a simple python app that shows a video using a PlayBin-container.
> The app is kind of a simple video editor. While the PlayBin is in paused
> state the user seeks forward/backward to find the right position for
> editing. He might also switch to playing state to start watching the
> video at the current position. But when the video reaches the end while
> playing, the PlayBin switches to Null-State so that seeking is not
> possible anymore until the PlayBin is set manually to paused/playing
> state again (but then the PlayBin will jump back to the beginning of the
> video).
> Is it possible to let the PlayBin switch to paused-state instead of
> Null-state at the end so that seeking is still possible?

playbin does not change states by itself. You should be able to do a
(flushing) seek after EOS. You can also do non-flushing seeks with the
SEGMENT flag set, then you don't get an EOS message but a segment done
message and can do another non-flushing seek to get seamless
playback/looping within the same file.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list