- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Tue, 03 May 2022 12:59:29 +0000
- To: public-webrtc-logs@w3.org
We don't have to ask this question for every new API. This has been solved many times, so we follow established patterns: ```js const transceiver = new RTCPeerConnection().addTransceiver("video"); transceiver.transport.onstatechange = () => console.log(transceiver.transport.state); // logs all states ``` The [state](https://w3c.github.io/webrtc-pc/#dom-rtcdtlstransport-state) getter returns _"the value of the [[[DtlsTransportState]]](https://w3c.github.io/webrtc-pc/#dfn-dtlstransportstate) slot"_, which is set in the same queued task #56 that fires (synchronously calls) the `statechange` event (handler), _"when the underlying DTLS transport needs to update"_. It does _not_ return any underlying "current" value. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-handle/issues/50#issuecomment-1116069459 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 3 May 2022 12:59:30 UTC