mediacapture-image
mediacapture-image copied to clipboard
Does ImageCapture work on non-camera tracks?
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.