W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > March 2021

[mediacapture-image] grabFrame cannot be cancelled (#276)

From: Stephan Reiter via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Mar 2021 08:29:50 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-832546730-1615883389-sysbot+gh@w3.org>
stephanreiter has just created a new issue for https://github.com/w3c/mediacapture-image:

== grabFrame cannot be cancelled ==
I'm using an ImageCapture and grabFrame to retrieve frames from a video stream. grabFrame returns a promise that I need to await to get a frame.

I don't see a way to cancel the grabFrame operation such that the promise is rejected. In response to a user action, I'd like to immediately abandon awaiting and not having it sit around until the next video frame (which may, in a bad situation, never come).

Could this be accomplished by allowing me to dispose the ImageCapture, which would in turn cancel all ongoing operations and reject associated promises?

Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/276 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 16 March 2021 08:29:52 UTC

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