2018-12-17 11:34:10 +00:00
|
|
|
description, summary="Send a VP8 stream", handles-state=true
|
2020-02-12 10:56:34 +00:00
|
|
|
include,location=negotiation_initiator.scenario
|
|
|
|
include,location=bundle_policy.scenario
|
|
|
|
|
|
|
|
set-webrtc-options, local-bundle-policy="$(local_bundle_policy)", remote-bundle-policy="$(remote_bundle_policy)"
|
|
|
|
|
2018-12-17 11:34:10 +00:00
|
|
|
add-stream, pipeline="videotestsrc is-live=1 ! vp8enc ! rtpvp8pay ! queue"
|
|
|
|
set-state, state="playing";
|
2020-02-12 10:56:34 +00:00
|
|
|
wait-for-negotiation-needed, generation=1;
|
|
|
|
|
|
|
|
# negotiate
|
|
|
|
create-offer, which="$(negotiation_initiator)";
|
|
|
|
wait-for-negotiation-state, which="$(negotiation_responder)", state="offer-set"
|
|
|
|
create-answer, which="$(negotiation_responder)";
|
|
|
|
wait-for-negotiation-state, which="$(negotiation_initiator)", state="answer-set"
|