[mediacapture-main] How can I get from a MediaStreamTrack to its MediaStream parent?

dandv has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== How can I get from a MediaStreamTrack to its MediaStream parent? ==
I'm building a polyfill for the [MediaStream ImageCapture 
API](https://www.w3.org/TR/image-capture/#constructors), and I've run 
into [this issue](https://github.com/dandv/imagecapture/issues/6): in 
order to create a `video` element and take a snapshot of it into a 
`canvas`, I need access to the MediaStream; however, the ImageCapture 
constructor only takes a MediaStreamTrack parameter.

How can I get from that track to its parent stream? The track was 
obtained via `getVideoTracks`.

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/406 using your GitHub 
account

Received on Friday, 30 September 2016 19:26:28 UTC