PhotoCapabilities.fillLightMode
The fillLightMode
read-only property of the PhotoCapabilities
interface returns all available fill light options of the source device.
Options may include auto
, off
, or flash
.
Syntax
const lightModes = photoCapabilities.fillLightMode
Value
An Array
of available fill light modes.
auto
-
The device's fill light will be used automatically in low light conditions.
off
-
No fill light will be used.
flash
-
Always use the device's fill light.
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
fillLightMode |
59 |
≤79 |
No |
No |
46 |
No |
59 |
59 |
No |
43 |
No |
7.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/fillLightMode