Re: [mediacapture-region] Timing of cropTo promise resolution with media capture-transform (#12)

> Are you voicing a concern that, without some refinement of the spec, it would not be possible to guarantee that transforms have time to operate on the first frame?

Yes, I think it should be possible to use cropTo promise resolution as a signal that the first newly cropped frame was enqueued in the media capture transform ReadableStream.
This is similar to what we are doing for generateKeyFrame in webrtc encoded transform: if the promise resolves, it means a key frame was just enqueued in the readable stream within the current event loop.

I think a general note stating the intent in the spec would be good enough for now.

GitHub Notification of comment by youennf
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Wednesday, 26 January 2022 10:15:15 UTC