gstreamer/subprojects/gst-plugins-bad/gst-libs/gst/webrtc
Johan Sternerup 212c09a70e webrtc: return error when sending on non-open datachannel
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>
2022-10-05 11:08:30 +00:00
..
nice meson: Namespace the plugins_doc_dep/libraries variables 2022-09-01 21:17:35 +00:00
datachannel.c webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00
datachannel.h webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00
dtlstransport.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
dtlstransport.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
ice.c webrtc:ice: Fix candidate stats related APIs for bindings 2022-08-19 10:46:01 -04:00
ice.h webrtc:ice: Fix candidate stats related APIs for bindings 2022-08-19 10:46:01 -04:00
icestream.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
icestream.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
icetransport.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
icetransport.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
meson.build meson: Namespace the plugins_doc_dep/libraries variables 2022-09-01 21:17:35 +00:00
rtcsessiondescription.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
rtcsessiondescription.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
rtpreceiver.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
rtpreceiver.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
rtpsender.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
rtpsender.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
rtptransceiver.c webrtc: Fix documentaton moving symbols in the right pages 2022-08-18 08:34:36 +00:00
rtptransceiver.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
sctptransport.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
sctptransport.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
webrtc-priv.h webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00
webrtc.c webrtc: Expose RTCError enum 2022-01-29 14:42:22 +00:00
webrtc.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
webrtc_fwd.h webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00