You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmediaStream=awaitnavigator.mediaDevices.getUserMedia({video: true});const[track]=mediaStream.getVideoTracks();try{awaittrack.applyConstraints({advanced: [{torch: on}]});// Do something with the track such as using the Image Capture API.}catch((e){// The constraints could not be satisfied by the available devices.}
Is your feature request related to a problem?
La règle no-torch repose actuellement sur une lib React Native. Telle quelle, cette version devrait avoir un lable react + potentiellement un label react-native.
Alternatives you've considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Solution you'd like
La règle no-torch devrait detecter l'utilisation de la contrainte
torch
de l'API HTML5 MediaTrackConstraints (torch)Is your feature request related to a problem?
La règle no-torch repose actuellement sur une lib React Native. Telle quelle, cette version devrait avoir un lable
react
+ potentiellement un labelreact-native
.Alternatives you've considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: