1 description, summary="Produce an offer and negotiate it with the peer"
2 include,location=negotiation_initiator.scenario
3 include,location=bundle_policy.scenario
5 set-webrtc-options, local-bundle-policy="$(local_bundle_policy)", remote-bundle-policy="$(remote_bundle_policy)"
7 create-offer, which="$(negotiation_initiator)";
8 # all of these waits are technically unnecessary and only the last is needed
9 wait-for-negotiation-state, which="$(negotiation_initiator)", state="offer-created"
10 wait-for-negotiation-state, which="$(negotiation_initiator)", state="offer-set"
11 wait-for-negotiation-state, which="$(negotiation_responder)", state="offer-set"
12 create-answer, which="$(negotiation_responder)";
13 wait-for-negotiation-state, which="$(negotiation_responder)", state="answer-created"
14 wait-for-negotiation-state, which="$(negotiation_responder)", state="answer-set"
15 wait-for-negotiation-state, which="$(negotiation_initiator)", state="answer-set"