[webrtcbin] Is set-local-description synchronous?

Rob Agar rob at engineeredarts.co.uk
Wed May 4 09:45:24 UTC 2022


Basically is this OK?

//setlocaldescription 
g_signal_emit_by_name(webrtc,"set-local-description",offer, NULL);

//notifylistenertosendoffersignal
gchar*description=gst_sdp_message_as_text(offer->sdp);
LOG(description)
listener->onLocalOffer(description);
g_free(description);

Or should we be passing a non-null promise argument, and only proceeding 
to send the offer when it notifies?

cheers

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220504/c889a8a7/attachment.htm>


More information about the gstreamer-devel mailing list