scenarios: Add/Update scenarios for live contents

This commit is contained in:
Edward Hervey 2017-05-25 15:57:33 +02:00 committed by Edward Hervey
parent 400d1f9326
commit 2dd729ccf9
4 changed files with 31 additions and 1 deletions

View file

@ -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;

View 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

View file

@ -0,0 +1,4 @@
description, duration=15.0, live_content_required=True
wait, duration=15.0
stop

View 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