mediacapture-image icon indicating copy to clipboard operation
mediacapture-image copied to clipboard

Does ImageCapture work on non-camera tracks?

Open jan-ivar opened this issue 4 years ago • 0 comments

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.

jan-ivar avatar Nov 05 '20 23:11 jan-ivar