Hello,
I have an issue with webrtc, compilation side.
I’m using gstreamer 1.20.7. My application, created with gstreamer 1.18.6, wants to set the tranceiver direction by using “get-transceiver” signal.
The problem is that “GstWebRTCRTPTransceiver” struct is now opaque (it is defined in webrtc-priv.h and this file is not exported).
Is there an alternative way to set the direction (I need to set GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY).
Thanks
You always have access to setting and retrieving GObject properties like the “direction” property on the transceiver: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/rtptransceiver.c#L216
Thanks for your support.
Do you mean doing like this ?
GstObject* transceiver;
g_signal_emit_by_name(webrtcbin, “get-transceiver”, 0, &transceiver);
g_object_set(GST_OBJECT(transceiver), (gchar *)“direction”, GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, NULL);
gst_object_unref(transceiver);