W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2020

Re: [webrtc-pc] RTCRtpSender.getCapabilities() may not return correct information in sync (#2539)

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jun 2020 08:55:01 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-645246542-1592384100-sysbot+gh@w3.org>
@aboba Caching after this has already been obtained asynchronously by other APIs seems like a sensible optimization (and nothing would prevent you from returning a cached result in a promise immediately), but considering there is no requirement that the app invoke and await createOffer() prior to calling getCapabilities(), having this be synchronous doesn't make sense. I am not in favor of having one API throw an exception unless another API on a different interface is called first.

GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2539#issuecomment-645246542 using your GitHub account
Received on Wednesday, 17 June 2020 08:55:03 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:51 UTC