mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
212c09a70e
According to W3C specification (https://w3c.github.io/webrtc-pc/#datachannel-send) we should return InvalidStateError exception when trying to send when the channel is not open. In the world of C/glib/gstreamer we don't have exceptions but have to rely on gboolean/GError instead. Introducing these calls for a change in function signature of the action signals used to send data on the datachannel. Changing the signature of the existing "send-string" and "send-data" signals would mean an immediate breaking change so instead we deprecate them. Furthermore, there is no way to express GError** as an argument to an action signal in a way that fits language bindings (pointer-to-pointer simply does not work) and we have to use regular functions instead. Therefore we introduce gst_webrtc_data_channel_send_data_full() and gst_webrtc_data_channel_send_string_full() while deprecating the old functions and corresponding signals. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1958> |
||
---|---|---|
.. | ||
fwd.h | ||
gstwebrtc.c | ||
gstwebrtcbin.c | ||
gstwebrtcbin.h | ||
gstwebrtcstats.c | ||
gstwebrtcstats.h | ||
meson.build | ||
transportreceivebin.c | ||
transportreceivebin.h | ||
transportsendbin.c | ||
transportsendbin.h | ||
transportstream.c | ||
transportstream.h | ||
utils.c | ||
utils.h | ||
webrtcdatachannel.c | ||
webrtcdatachannel.h | ||
webrtcsctptransport.c | ||
webrtcsctptransport.h | ||
webrtcsdp.c | ||
webrtcsdp.h | ||
webrtctransceiver.c | ||
webrtctransceiver.h |