sendrecv: Implement remote-offerer option for JS example
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 9 Feb 2021 09:58:57 +0000 (15:28 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 10 Feb 2021 10:53:40 +0000 (16:23 +0530)
commitf8cbae9d6eb85381c4428998880dfcd863e205d3
tree6525da564e0f5104b6719cecc0d560cef316ccca
parent28aa23dc20dd7e3dab8d193cbe554ab8eb41f9ae
sendrecv: Implement remote-offerer option for JS example

Now you can check the "Remote offerer" checkbox in the JS example to
force the peer to send the SDP offer. This involved implementing
support for receiving the OFFER_REQUEST message in the C example.

As a side-effect of this, the C example will no longer send
OFFER_REQUEST automatically when the --our-id option is passed. It
will only do so when the --remote-offerer option is explicitly passed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/31>
webrtc/sendrecv/gst/webrtc-sendrecv.c
webrtc/sendrecv/js/index.html
webrtc/sendrecv/js/webrtc.js