[webrtcbin] Is set-local-description synchronous?
Florian Echtler
floe at butterbrot.org
Wed May 4 12:17:53 UTC 2022
Hello Rob,
based on my (limited) understanding, this is unlikely to work, the offer will be
empty in 99% of cases in your example. So you do need to wait for the promise to
come back first.
Best, Florian
On 04.05.22 11:45, Rob Agar via gstreamer-devel wrote:
> 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
>
--
SENT FROM MY DEC VT50 TERMINAL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220504/79cf2af4/attachment.sig>
More information about the gstreamer-devel
mailing list