qa: Add a GstQaScenario class making it possible to execute scenarios
A scenario correspond to a suite of action to execute on a pipeline,
for the time being, we only support seeking the pipeline, but in the
future we can imagine doing some queries, setting pipeline state, etc...
The scenario can be loaded thanks to the GST_QA_SCENARIO environment
variable, making it usable with any existant application, in case, the
application can be used interactively, the user should either, not load
any scenario or let the application run without interacting with it.
2013-07-20 04:18:13 +00:00
|
|
|
<xml>
|
2013-08-01 04:27:20 +00:00
|
|
|
<scenario name="Simple Seeks">
|
|
|
|
<actions>
|
2013-08-19 14:02:35 +00:00
|
|
|
<seek name='First seek'
|
|
|
|
playback_time="1.0"
|
|
|
|
format="time"
|
|
|
|
rate="1.0"
|
|
|
|
flags="accurate+flush"
|
|
|
|
start_type="set"
|
|
|
|
start="2.0"
|
|
|
|
stop_type="set"
|
|
|
|
stop="-1.0" />
|
|
|
|
|
|
|
|
<seek name='Second seek'
|
|
|
|
playback_time="3.0"
|
|
|
|
format="time"
|
|
|
|
rate="1.0"
|
|
|
|
flags="accurate+flush"
|
|
|
|
start_type="set"
|
|
|
|
start="0.0"
|
|
|
|
stop_type="set"
|
|
|
|
stop="-1.0" />
|
|
|
|
|
|
|
|
<seek name='Third seek'
|
|
|
|
playback_time="1.0"
|
|
|
|
format="time"
|
|
|
|
rate="1.0"
|
|
|
|
flags="accurate+flush"
|
|
|
|
start_type="set"
|
|
|
|
start="2.0"
|
|
|
|
stop_type="set"
|
|
|
|
stop="3.0" />
|
2013-08-01 04:27:20 +00:00
|
|
|
</actions>
|
|
|
|
</scenario>
|
|
|
|
</xml>
|