-
-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Milestone
Description
Versions affected
Cordova version: 10.0.0
Cordova iOS version:
Plugin version (e.g 6.0.12): 8.0.0
iOS version (e.g 10.2): 14.4.2
Xcode version (e.g 11.1 - 11A1027): 12.2
WebRTC-adapter version (e.g. 7.4.0): latest
WebRTC Framework version (e.g. JSSip 3.1.2): ?
Description
Hi there,
I need to enable the flashlight (torch) while showing the camera preview in order to scan barcodes.
In Android, it is possible with the following code according to the media capture API:
const track = stream.getVideoTracks()[0];
track.applyConstraints({
advanced: [{torch: true}]
});I wonder if it is possible to add such a flashlight control.
Thanks.