GStreamer Daemon - Gapless Playback: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
No edit summary
Line 5: Line 5:
== Example ==
== Example ==


<hs l='bash'>
<syntaxhighlight lang="bash" line='line'>
pipeline_create p
pipeline_create p
pipeline_delete p
pipeline_delete p
</hs>
</syntaxhighlight>


}}
}}

Revision as of 17:56, 11 May 2017


The Gapless Playback example will run a video from start to end sequentially in an infinite loop. To do so, it will wait for the file playback to finish before rewinding to the beginning of the file and restarting playback. The end of the playback is detected by polling the pipeline bus for the End Of Stream (EOS) message, which is posted by the Filesrc element when all the content has been read. The rewinding is done by sending a Seek event to the pipeline, which effectively restarts the pipeline.

Example

pipeline_create p
pipeline_delete p



Home

{{{2}}}

{{{3}}}



The Gapless Playback example will run a video from start to end sequentially in an infinite loop. To do so, it will wait for the file playback to finish before rewinding to the beginning of the file and restarting playback. The end of the playback is detected by polling the pipeline bus for the End Of Stream (EOS) message, which is posted by the Filesrc element when all the content has been read. The rewinding is done by sending a Seek event to the pipeline, which effectively restarts the pipeline.

Example

pipeline_create p
pipeline_delete p



Home

{{{2}}}