W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > September 2016

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

From: Dan Dascalescu via GitHub <sysbot+gh@w3.org>
Date: Fri, 30 Sep 2016 19:26:19 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issues.opened-180383345-1475263577-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:30 UTC