Spike: does getDisplayMedia work from file:// in Chrome, Edge and Firefox? #22
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the guided walkthroughs epic.
Confirm
navigator.mediaDevices.getDisplayMediaworks whenfinal-wishes.htmlis opened fromfile://(thumbdrive) in Chrome, Edge and Firefox: secure-context status, permission prompt, grabbing a frame to a canvas, and how the share behaves across several captures. Record the findings here. If it does not work, the fallback is paste/drop (already supported) and the capture button is dropped.Findings so far (headless Chromium 1243, WSL):
file://pages reportisSecureContext: true;navigator.mediaDevices.getDisplayMediaandnavigator.clipboard.writeTextexist. Same as over http://127.0.0.1.Still to check by hand, in real Chrome, Edge and Firefox with the probe page (a throwaway file, not in the repo): the share prompt appears from
file://, a frame can be drawn to a canvas, several captures work from one share, and what happens if the user ends the share.Verified by hand with the probe page, opened from file://, in Chrome, Edge and Firefox: the share prompt appears, three captures from one share each produced the right frame. Capture from the thumbdrive file works, so #23 can use getDisplayMedia. Closing.