mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
scenarios: Add/Update scenarios for live contents
This commit is contained in:
parent
400d1f9326
commit
2dd729ccf9
4 changed files with 31 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
description, duration=0, summary="Set state to NULL->PLAYING->NULL 20 times", need-clock-sync=true, min-media-duration=1.0
|
||||
description, duration=0, summary="Set state to NULL->PLAYING->NULL 20 times", need-clock-sync=true, min-media-duration=1.0, live_content_compatible=True
|
||||
set-state, state="null", sub-action="set-state, state=playing", repeat=40
|
||||
stop;
|
||||
|
|
9
validate/data/scenarios/full_live_rewind.scenario
Normal file
9
validate/data/scenarios/full_live_rewind.scenario
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Rewinds a live source completely
|
||||
# The goal is to check for proper EOS handling when going back to the
|
||||
# beginning of the live cache
|
||||
description, seek=true, live_content_required=true, duration=14.0
|
||||
# Wait for 5s (can't use playback-time since we don't know the position(live))
|
||||
wait, duration=5.0
|
||||
# Seek back all the way as fast as possible (from the end, i.e. 'now')
|
||||
seek, name=End-seek, rate=-16.0, stop=0.0, stop_type=end, start=0.0, start_type=set, flags=flush+trickmode-key-units+trickmode-no-audio
|
||||
#eos
|
4
validate/data/scenarios/play_15s_live.scenario
Normal file
4
validate/data/scenarios/play_15s_live.scenario
Normal file
|
@ -0,0 +1,4 @@
|
|||
description, duration=15.0, live_content_required=True
|
||||
wait, duration=15.0
|
||||
stop
|
||||
|
17
validate/data/scenarios/seek_end_live.scenario
Normal file
17
validate/data/scenarios/seek_end_live.scenario
Normal file
|
@ -0,0 +1,17 @@
|
|||
#FIXME : Rename to seek_end_live
|
||||
description, seek=true, live_content_required=true, duration=14.0
|
||||
# Wait for 5s (can't use playback-time since we don't know the position(live))
|
||||
wait, duration=5.0
|
||||
# Seek back 1min (from the end, i.e. 'now')
|
||||
seek, name=End-seek, rate=1.0, start=-60.0, start_type=end, flags=flush
|
||||
wait, duration=5.0
|
||||
# go back to live !
|
||||
seek, name=End-seek, rate=1.0, start=0.0, start_type=end, flags=flush
|
||||
wait, duration=5.0
|
||||
# Now seek backwards from the end
|
||||
seek, name=End-seek, rate=-1.0, start=0.0, start_type=none, stop=0.0, stop_type=end, flags=flush
|
||||
wait, duration=5.0
|
||||
# Try a simple seek (without setting the stop)
|
||||
seek, name=End-seek, rate=1.0, start_type=end, start=0.0, flags=flush
|
||||
wait, duration=5.0
|
||||
stop
|
Loading…
Reference in a new issue