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

Re: [mediacapture-image] Implementation status using torch on chrome under Windows 10 (#202)

From: Alexander via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 Jan 2019 10:30:54 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-454343572-1547548253-sysbot+gh@w3.org>
I can enable torch mode on android in this way:
```
    try {
      const track = stream.getVideoTracks()[0];
      const torch = !torchMode;
      track.applyConstraints({
        advanced: [{ torch }],
      });
    } catch (_) {
      // torch is not available
    }
```

-- 
GitHub Notification of comment by xelaz
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/202#issuecomment-454343572 using your GitHub account
Received on Tuesday, 15 January 2019 10:30:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:54 UTC