You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: