-
Notifications
You must be signed in to change notification settings - Fork 19
Can one JS document hose a browser's camera capturing ability? #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
On the receive side, "When a frame is written to writable, the frame’s close() method is automatically invoked, so that its internal resources are no longer accessible from JavaScript." However, applications might render using an API other than On the send side, a Also, there may be use cases (e.g. funny hats, machine learning) where an application could call |
To answer the original question, the answer is: not necessarily. |
The spec now explicitly mentions this case and potential mitigations, so closing this issue. |
If I understand correctly, if JS doesn't
.close()
aVideoFrame
, and it's in the GPU, can it cause the browser to run out of frames in its GPU buffer pool, and might this stall capture in all sinks in all documents, blowing up mediacapture or WebGPU?The text was updated successfully, but these errors were encountered: