validate: Add a switch_audio_track_while_paused scenario

And run it as a default
This commit is contained in:
Thibault Saunier 2014-04-29 18:51:54 +02:00
parent a62560bc81
commit 3281add6b5
3 changed files with 19 additions and 0 deletions

View file

@ -14,6 +14,7 @@ scenarios_DATA = simple_seeks.scenario \
adaptive_video_framerate_size.scenario\
force_key_unit.scenario\
seek_with_stop.scenario\
switch_audio_track_while_paused.scenario\
switch_audio_track.scenario
EXTRA_DIST = simple_seeks.scenario \
@ -31,4 +32,5 @@ EXTRA_DIST = simple_seeks.scenario \
adaptive_video_framerate_size.scenario\
force_key_unit.scenario\
seek_with_stop.scenario\
switch_audio_track_while_paused.scenario\
switch_audio_track.scenario

View file

@ -0,0 +1,11 @@
description, summary="Change audio track while pipeline is paused", min-audio-track=2, duration=6.0
pause, playback_time=1.0;
# Wait so that humans can see the pipeline is paused
wait, duration=0.5
switch-track, name=Next-audio-track, type=audio, index=(string)+1
# Wait so that humans can see the pipeline is paused
wait, duration=0.5
play;
stop, playback_time=5.0

View file

@ -153,17 +153,23 @@ G_V_SCENARIOS = {Protocols.FILE: ["play_15s",
"seek_forward",
"seek_backward",
"seek_with_stop",
"switch_audio_track",
"switch_audio_track_while_paused",
"scrub_forward_seeking"],
Protocols.HTTP: ["play_15s",
"fast_forward",
"seek_forward",
"seek_backward",
"seek_with_stop",
"switch_audio_track",
"switch_audio_track_while_paused",
"reverse_playback"],
Protocols.HLS: ["play_15s",
"fast_forward",
"seek_forward",
"seek_with_stop",
"switch_audio_track",
"switch_audio_track_while_paused",
"seek_backward"],
}