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

@eladalon1983 said in https://github.com/w3c/mediacapture-region/issues/11#issuecomment-1023100726:
> - When D2 calls cropTo(X), the UA has to validate that X is a valid CropTarget.
> - It is undesirable to query all documents and check if any of them have produced X

[cropTo](https://w3c.github.io/mediacapture-region/#dom-browsercapturemediastreamtrack-cropto) already returns a promise, so querying "all" documents in the single viewport captured to identify the crop target, seems reasonable to me.

Cost to implementers is low on the [priority of constituencies](https://www.w3.org/TR/html-design-principles/#priority-of-constituencies) when it comes to shaping APIs.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 February 2022 19:59:10 UTC