mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 12:55:13 +00:00
gstwebrtc-api: create control data channel when offering
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1755>
This commit is contained in:
parent
f0d42b88cb
commit
2f9bb62b6b
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ export default class ConsumerSession extends WebRTCSession {
|
|||
if (this._offerOptions) {
|
||||
this.ensurePeerConnection();
|
||||
|
||||
this._rtcPeerConnection.createDataChannel("control");
|
||||
|
||||
this._rtcPeerConnection.createOffer(this._offerOptions).then((desc) => {
|
||||
if (this._rtcPeerConnection && desc) {
|
||||
return this._rtcPeerConnection.setLocalDescription(desc);
|
||||
|
|
Loading…
Reference in a new issue