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

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

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Jan 2022 10:15:14 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1022055646-1643192112-sysbot+gh@w3.org>
> 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 https://github.com/w3c/mediacapture-region/issues/12#issuecomment-1022055646 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 January 2022 10:15:15 UTC

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