gstreamer/subprojects/gst-plugins-bad/tests
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
..
check webrtc: return error when sending on non-open datachannel 2022-10-05 11:08:30 +00:00
examples examples: d3d11videosink: Add present signal example 2022-08-24 17:44:49 +00:00
files Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
interactive bad/soundtouch: Fix interactive test build on MSVC 2022-09-22 07:20:45 +00:00
validate testsrcbin: Add a way to specify caps for the output of the sources 2022-09-09 15:25:45 +00:00
meson.build tests: rename 'icles' subdir to be more descriptive 2022-04-14 11:57:11 +00:00