webrtc: Incoming data-channel starts processing before the app was notified through on-data-channel
This log shows that the newly created data channel receives samples before the app had time to connect to the on-message-* signals (Connecting to signals on data-channel
is a log from app side).
0:00:00.327238596 56 0x7f9a54002060 DEBUG webrtcdatachannel webrtcdatachannel.c:976:gst_webrtc_data_channel_constructed: New channel 0x117b1c0 constructed
0:00:00.327606429 56 0x7f9a30008cc0 FIXME default gstutils.c:4026:gst_pad_create_stream_id_internal:<appsrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.328079790 56 0x7f9a30008d20 FIXME basesink gstbasesink.c:3397:gst_base_sink_default_event:<appsink1> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:00.328173319 56 0x7f9a30008d20 LOG webrtcdatachannel webrtcdatachannel.c:549:_data_channel_have_sample:<WebRTCDataChannel@0x117b1c0> Received sample 0x117b2a0
0:00:00.328189275 56 0x7f9a30008d20 INFO webrtcdatachannel webrtcdatachannel.c:416:_parse_control_packet:<WebRTCDataChannel@0x117b1c0> Received channel open
0:00:00.328202445 56 0x7f9a30008d20 INFO webrtcdatachannel webrtcdatachannel.c:472:_parse_control_packet:<WebRTCDataChannel@0x117b1c0> Received channel open for SCTP stream 1 label "sendDataChannel" protocol ordered true
0:00:00.328224550 56 0x7f9a30008d20 INFO webrtcdatachannel webrtcdatachannel.c:476:_parse_control_packet:<WebRTCDataChannel@0x117b1c0> Sending channel ack
0:00:00.328268735 56 0x7f9a30008d20 LOG webrtcdatachannel webrtcdatachannel.c:549:_data_channel_have_sample:<WebRTCDataChannel@0x117b1c0> Received sample 0x117b2a0
0:00:00.328304091 56 0x7f9a30008d20 LOG webrtcdatachannel webrtcdatachannel.c:549:_data_channel_have_sample:<WebRTCDataChannel@0x117b1c0> Received sample 0x117b2a0
0:00:00.328328699 56 0xfa7400 INFO webrtcdatachannel datachannel.c:397:gst_webrtc_data_channel_on_open:<WebRTCDataChannel@0x117b1c0> We are open and ready for data!
0:00:00.328341801 56 0x7f9a30008d20 LOG webrtcdatachannel webrtcdatachannel.c:549:_data_channel_have_sample:<WebRTCDataChannel@0x117b1c0> Received sample 0x117b2a0
0:00:00.328349089 56 0xfa7400 INFO webrtcdatachannel datachannel.c:402:gst_webrtc_data_channel_on_open:<WebRTCDataChannel@0x117b1c0> Opened
0:00:00.328351043 56 0xd78610 DEBUG webkitwebrtcendpoint GStreamerMediaEndpoint.cpp:970:operator():<webkit-webrt-pipeline-1> Incoming data channel
0:00:00.328375136 56 0x7f9a30008d20 LOG webrtcdatachannel webrtcdatachannel.c:549:_data_channel_have_sample:<WebRTCDataChannel@0x117b1c0> Received sample 0x117b2a0
0:00:00.328379240 56 0xfa7400 LOG webrtcdatachannel datachannel.c:488:gst_webrtc_data_channel_on_message_string:<WebRTCDataChannel@0x117b1c0> Have string one
0:00:00.328395246 56 0xfa7400 LOG webrtcdatachannel datachannel.c:488:gst_webrtc_data_channel_on_message_string:<WebRTCDataChannel@0x117b1c0> Have string two
0:00:00.328400626 56 0xd78610 DEBUG webkitwebrtcendpoint GStreamerDataChannelHandler.cpp:102:GStreamerDataChannelHandler: Connecting to signals on data-channel 0x117b1c0
0:00:00.328406807 56 0xfa7400 LOG webrtcdatachannel datachannel.c:488:gst_webrtc_data_channel_on_message_string:<WebRTCDataChannel@0x117b1c0> Have string three
0:00:00.328437627 56 0xd78610 DEBUG webkitwebrtcendpoint GStreamerDataChannelHandler.cpp:119:GStreamerDataChannelHandler: Connecting to signals on data-channel 0x117b1c0 DONE
0:00:00.328446330 56 0xfa7400 DEBUG webkitwebrtcendpoint GStreamerDataChannelHandler.cpp:250:onMessageString: onMessageString
0:00:00.328458440 56 0xfa7400 DEBUG webkitwebrtcendpoint GStreamerDataChannelHandler.cpp:253:onMessageString: Incoming string: three