PlayBin: pause at the end

Manuel manuel at wenns-um-email-geht.de
Sat Sep 13 05:43:34 PDT 2014


Hi,

whoops, you're right. I was stopping the playbin on EOS.
Thank you for pointing me in the right direction.

Best regards


24.08.2014, 15:12, Tim Müller:
> 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
> 



More information about the gstreamer-devel mailing list