scenarios: Add a forward key-unit trick mode scenario

Not enabled for the time being
This commit is contained in:
Edward Hervey 2016-10-26 17:51:37 +02:00 committed by Edward Hervey
parent a29f4c390c
commit 56897b39ae
2 changed files with 11 additions and 1 deletions

View file

@ -24,7 +24,8 @@ scenarios_DATA = simple_seeks.scenario \
change_state_intensive.scenario\
play_15s.scenario \
switch_audio_track.scenario \
setup_sink_props_max_lateness.scenario
setup_sink_props_max_lateness.scenario \
trick_mode_seeks.scenario
EXTRA_DIST = simple_seeks.scenario \
seek_forward.scenario \

View file

@ -0,0 +1,9 @@
description, duration=10.0, seek=true, need-clock-sync=true, min-media-duration=8.0, min-video-track=1
seek, name=Fast-forward-seek, playback-time="min(5.0, duration*0.0625)", rate=2.0, start=0.0, flags=flush+trickmode-key-units
seek, name=Fast-forward-seek, playback-time="min(10.0, duration*0.0625)", rate=4.0, start=0.0, flags=flush+trickmode-key-units
seek, name=Fast-forward-seek, playback-time="min(20.0, duration*0.125)", rate=8.0, start=0.0, flags=flush+trickmode-key-units
seek, name=Fast-forward-seek, playback-time="min(40.0, duration*0.25)", rate=16.0, start=0.0, flags=flush+trickmode-key-units
seek, name=Fast-forward-seek, playback-time="min(80.0, duration*0.50)", rate=32.0, start=0.0, flags=flush+trickmode-key-units
# and go back to regular playback
seek, name=regular-playback, playback-time="min(160.0, duration*0.75)", rate=1.0, start=0.0, flags=flush
stop, playback-time="min(10.0, duration*0.0625)"