gstreamer/subprojects/gst-plugins-bad/ext/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
..
fwd.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
gstwebrtc.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstwebrtcbin.c webrtcbin: fix picking available payload types 2022-09-07 03:22:34 +00:00
gstwebrtcbin.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
gstwebrtcstats.c webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
gstwebrtcstats.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
meson.build meson: Call pkgconfig.generate in the loop where we declare plugins dependencies 2022-09-01 21:17:35 +00:00
transportreceivebin.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
transportreceivebin.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
transportsendbin.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
transportsendbin.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
transportstream.c webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
transportstream.h webrtc: implement initial simulcast fec/rtx usage 2022-03-29 23:55:41 +00:00
utils.c webrtc: Expose RTCError enum 2022-01-29 14:42:22 +00:00
utils.h webrtcbin: improve some debugging output 2022-03-29 23:55:40 +00:00
webrtcdatachannel.c webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00
webrtcdatachannel.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
webrtcsctptransport.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
webrtcsctptransport.h webrtc: Split WebRTCICE into base classes and implementation. 2022-07-26 13:51:11 +00:00
webrtcsdp.c webrtc: Expose RTCError enum 2022-01-29 14:42:22 +00:00
webrtcsdp.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
webrtctransceiver.c webrtcbin: Store pending mid to make create-offer idempotent 2022-09-02 11:52:58 +02:00
webrtctransceiver.h webrtcbin: Store pending mid to make create-offer idempotent 2022-09-02 11:52:58 +02:00