Spike: does getDisplayMedia work from file:// in Chrome, Edge and Firefox? #22

Closed
opened 2026-11-24 17:15:52 +00:00 by eric · 2 comments
Owner

Part of the guided walkthroughs epic.

Confirm navigator.mediaDevices.getDisplayMedia works when final-wishes.html is opened from file:// (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.

Part of the guided walkthroughs epic. Confirm `navigator.mediaDevices.getDisplayMedia` works when `final-wishes.html` is opened from `file://` (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.
Author
Owner

Findings so far (headless Chromium 1243, WSL):

  • file:// pages report isSecureContext: true; navigator.mediaDevices.getDisplayMedia and navigator.clipboard.writeText exist. Same as over http://127.0.0.1.
  • An actual capture could not be tested headless (no screen-share prompt to answer).

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.

Findings so far (headless Chromium 1243, WSL): - `file://` pages report `isSecureContext: true`; `navigator.mediaDevices.getDisplayMedia` and `navigator.clipboard.writeText` exist. Same as over http://127.0.0.1. - An actual capture could not be tested headless (no screen-share prompt to answer). 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.
Author
Owner

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.

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.
eric closed this issue 2026-11-24 17:23:37 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eric/final-wishes#22
No description provided.