- From: Bernard Aboba <Bernard.Aboba@microsoft.com>
- Date: Thu, 4 Jun 2015 18:26:24 +0000
- To: "public-ortc@w3.org" <public-ortc@w3.org>
- CC: Robin Raymond <robin@hookflash.com>
Received on Thursday, 4 June 2015 18:26:54 UTC
Originally opened by Robin Raymond: https://github.com/openpeer/ortc/issues/211 Robin said: "If a certificate is created when DtlsTransport.getLocalParameters is called or when the object is constructed, then it is possible that getLocalParameters would not be able to return immediately. This can be addressed either by making getLocalParameters() a Promise, or via the certificate management API." Would this work for Section 4.3 and 4.3.2? 4.3 Interface Definition Partial interface RTCDtlsTransport : RTCStatsProvider { Promise<RTCDtlsParameters> getLocalParameters (); }; 4.3.2 Methods getLocalParameters Obtain the DTLS parameters of the local RTCDtlsTransport asynchronously. When the getLocalParameters() method is invoked, the user agent must queue a task to run the following steps: 1. Let p be a new promise. 2. Check whether RTCDtlsTransport.state is "closed"; if so, reject p with an InvalidStateError. 3. Return, but continue the following steps in the background. 4. Start gathering the local parameters. 5. When the local parameters have been gathered, return a new RTCDtlsParameters object. No parameters. Return type: Promise<RTCDtlsParameters<http://internaut.com:8080/~baboba/ortc/ortc-5-21-2015.html#idl-def-RTCDtlsParameters>>
Received on Thursday, 4 June 2015 18:26:54 UTC