W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > October 2019

Re: [mediacapture-main] A privacy concern of "Media Capture and Streams" (#630)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Wed, 23 Oct 2019 23:14:14 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-545674441-1571872453-sysbot+gh@w3.org>
The other object is kept alive by `video.srcObject = otherStream;` in @guest271314's example.

All clones are equal; there's no original. E.g. there's no functional difference between:
```js
const [track1] = (await navigator.mediaDevices.getUserMedia({audio:true})).getTracks();
const [track2] = (await navigator.mediaDevices.getUserMedia({audio:true})).getTracks();
```
and
```js
const [track1] = (await navigator.mediaDevices.getUserMedia({audio:true})).getTracks();
const track2 = track1.clone();
```
`track1` and `track2` are for all intents and purposes concurrent and independent uses of the microphone. The microphone necessarily has to stay on until both tracks are either stopped or gone.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/630#issuecomment-545674441 using your GitHub account
Received on Wednesday, 23 October 2019 23:14:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:29 UTC