W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2022

Re: [mediacapture-region] What makes CropTarget special to require an asynchronous creation? (#17)

From: Elad Alon via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 May 2022 07:44:33 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1134302511-1653291871-sysbot+gh@w3.org>
> As a side-comment: I don't know how you can credibly argue about performance and add 4 milliseconds of delay for no reason whatsoever. Check out [postMessage is ~100 times more frequent than setTimeout(0)](http://jsfiddle.net/jib1/y1e4rg0d/).

The token can be posted while the user is interacting with getDisplayMedia's dialog, so any latency introduced by minting a token becomes zero. This wonderful fact is courtesy of the produceCropTarget/cropTo separation as two separate async APIs.

GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/17#issuecomment-1134302511 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 23 May 2022 07:44:35 UTC

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