examples: webrtc: sendrecv: rust: Implement `OFFER_REQUEST` handling
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Jan 2023 10:25:23 +0000 (12:25 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 Jan 2023 11:36:57 +0000 (11:36 +0000)
commitbf4a3c89cdd7c4dcf41a38171152e001eb11f73b
treebde3d8738c4f94d72405e5ba2e4e0ed91705afea
parent638465908ecb2c46c1f30768e5d879e7ce619e6d
examples: webrtc: sendrecv: rust: Implement `OFFER_REQUEST` handling

Allow requesting an offer from the peer if we're joining a call with a
peer, and allow the peer to request an offer from us if waiting for an
incoming call.

This implements all 4 variants the protocol allows for.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3758>
subprojects/gst-examples/webrtc/sendrecv/gst-rust/src/main.rs