759
edits
Acervantes (talk | contribs) No edit summary |
Acervantes (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
pipeline_create p1 videotestsrc ! autovideosink | pipeline_create p1 videotestsrc ! autovideosink | ||
pipeline_play p1 | pipeline_play p1 | ||
event_seek p1 1.0 0 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
will respectively | will respectively | ||
# Create a pipeline ''p1'' | # Create a pipeline ''p1'' | ||
# Put it to playing | # Put it to playing | ||
# Send | # Send a Seek event to it | ||
The ''' | The '''event_seek''' command will typically fail for any of the following: | ||
* No pipeline was given | * No pipeline was given | ||
* The given pipeline doesn't exist | * The given pipeline doesn't exist | ||
* Wrong seek event property | |||
Alternatively, a pipeline can be created using the [[Gstd-1.0 - Low Level Implementation for Applicaiton|low level CRUD syntax]]: | Alternatively, a pipeline can be created using the [[Gstd-1.0 - Low Level Implementation for Applicaiton|low level CRUD syntax]]: | ||
<br>⇒ ''Gstd Commands:'' | <br>⇒ ''Gstd Commands:'' | ||
<syntaxhighlight lang="bash" line="line" style="background-color:lavender"> | <syntaxhighlight lang="bash" line="line" style="background-color:lavender"> | ||
create /pipelines/p1/event | create /pipelines/p1/event seek rate=1.0 format=3 flags=1 start-type=1 start=0 end-type=1 end=-1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||