mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 20:01:35 +00:00
webrtc: fix data channel usage after requiring a READY webrtcbin
c4fe52395b
7bf18ad258
Fixes https://github.com/centricular/gstwebrtc-demos/issues/55
This commit is contained in:
parent
4df6d21992
commit
a63902e621
1 changed files with 3 additions and 0 deletions
|
@ -355,6 +355,9 @@ start_pipeline (void)
|
|||
* added by us too, see on_server_message() */
|
||||
g_signal_connect (webrtc1, "on-ice-candidate",
|
||||
G_CALLBACK (send_ice_candidate_message), NULL);
|
||||
|
||||
gst_element_set_state (pipe1, GST_STATE_READY);
|
||||
|
||||
g_signal_emit_by_name (webrtc1, "create-data-channel", "channel", NULL,
|
||||
&send_channel);
|
||||
if (send_channel) {
|
||||
|
|
Loading…
Reference in a new issue