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

Does ImageCapture work on non-camera tracks? #272

Open
jan-ivar opened this issue Nov 5, 2020 · 0 comments
Open

Does ImageCapture work on non-camera tracks? #272

jan-ivar opened this issue Nov 5, 2020 · 0 comments

Comments

@jan-ivar
Copy link
Member

jan-ivar commented Nov 5, 2020

ImageCapture's constructor takes a videoTrack arg, making it a sink in the MediaStreamTrack model of sources and sinks.

But this seems to make little sense outside camera tracks. E.g.

const pc = new RTCPeerConnection();
new ImageCapture(pc.addTransceiver("video").receiver.track).takePhoto({redEyeReduction: true});

What's supposed to happen, and why allow it? This is a concern for cross-origin protections.

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

1 participant