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

MediaStreamTrack transfer requires secure context? #73

Open
dogben opened this issue Sep 12, 2022 · 1 comment
Open

MediaStreamTrack transfer requires secure context? #73

dogben opened this issue Sep 12, 2022 · 1 comment

Comments

@dogben
Copy link
Contributor

dogben commented Sep 12, 2022

Many APIs providing a MediaStreamTrack are limited by SecureContext in WebIDL, such as enumerateDevices, getUserMedia, and getDisplayMedia. Other APIs do not require a SecureContext, e.g. captureStream.

Which of the following is the correct restriction for transferring a MediaStreamTrack?

  1. Any track can be transferred, regardless of whether the origin and/or destination contexts are secure. (This is how I interpret the current wording.)
  2. Transfer fails if either the origin or destination contexts are not secure.
  3. If the origin context is secure, transfer fails if the destination context is not secure.
  4. Something else?

@alvestrand

@youennf
Copy link
Contributor

youennf commented Sep 12, 2022

A captureStream MediaStreamTrack should be transferrable and can be created in not secure contexts.
I think option 1 is what the spec currently implies as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants