- From: shieldsyWRH55 via GitHub <sysbot+gh@w3.org>
- Date: Mon, 15 Mar 2021 16:42:46 +0000
- To: public-webrtc@w3.org
shieldsyWRH55 has just created a new issue for https://github.com/w3c/mediacapture-image: == Inability to turn off torch with track applyConstraints == I had been using a video stream in a QR code scanner web application. Originally the user could toggle the torch on mobile devices. Recently this has become broken and now I am no longer able to turn the torch off after it has been turned on. Setting the torch constraint to false using this piece of javascript code no longer works. However, will work the very first time when setting the torch to true. this.$video.srcObject.getVideoTracks()[0].applyConstraints({ advanced: [{ torch: on }] }); _**on** is a passed in boolean_ Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/275 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 15 March 2021 16:42:48 UTC