Skip to content
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

Expand on captureStream() for CORS-cross-origin media data #21

Open
foolip opened this issue Jan 18, 2016 · 2 comments
Open

Expand on captureStream() for CORS-cross-origin media data #21

foolip opened this issue Jan 18, 2016 · 2 comments
Labels
<canvas> security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response. <video>/<audio>

Comments

@foolip
Copy link
Member

foolip commented Jan 18, 2016

The description of captureStream() talks about "The contents of the track might become inaccessible to the current origin due to cross-origin protections." AFAICT it says nothing normative, and what is said is not specific enough to write cross-browser tests for.

The HTML spec doesn't have any per-track notion of cross-origin, it's the entire media element that's either CORS-same-origin or not. If a per-track notion is required by this spec, we need to talk about how to expose that on the AudioTrack and VideoTrack objects.

@alvestrand
Copy link

I would think that any track sourced from a HTMLMediaElement would have the same origin as the origin seen by the HTMMediaElement.
Reviewing the docs, I don't see an explicit statement about the origin of a MediaStreamTrack being observable or not (or indeed of whether it's possible to produce a MediaStreamTrack with a different origin). This may be an issue.

@a2sheppy
Copy link

a2sheppy commented May 7, 2018

I've put a note on the docs page for this on MDN that says that there's a possibility of an exception being thrown in the future although that doesn't currently happen etc: https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame#Usage_notes

@dontcallmedom dontcallmedom added the security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response. label Nov 27, 2020
@jan-ivar jan-ivar added this to the Candidate Recommendation milestone Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<canvas> security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response. <video>/<audio>
Projects
None yet
Development

No branches or pull requests

6 participants