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

Re: [mediacapture-region] Why expose produceCropTarget at MediaDevices level? (#11)

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Sun, 15 May 2022 09:39:34 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1126895833-1652607572-sysbot+gh@w3.org>
> I still think the following is the most idiomatic, least confusing JS, and don't understand why we have to make it more complicated:
> 
> ```js
> await track.cropTo(element.cropTarget);
> ```

But track and element are never visible in the same context.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 15 May 2022 09:39:36 UTC

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