The BrowserCameras can provide information about the browser's cameras in two different ways.
SLOW:
Slow but accurate.
This mode discovers camera information by starting a camera stream for each of the cameras that the
browsers offers access to. This is done because the browser offers the most accurate information about
a camera only when a stream of that camera is running.
Using this data, BrowserCameras.getMainCamera can make the best possible predictions of which
camera is the "main" one.
On most devices, this method of starting all camera streams will cause the "camera is running" indicator
light or notification to be displayed. Other effects like clicking camera lenses might also be observable.
This process can be slow. On some devices, this mode has a running time of several seconds.
FAST:
Fast but less accurate.
This mode discovers camera information by guess-parsing the browser-provided camera labels.
Using this data, BrowserCameras.getMainCamera can make good predictions of which camera is the "main" one.
However, this technique is limited and cannot provide information about the torch control capabilities.
Additionally, information about the camera resolution might be missing.
On most devices, this mode has a runtime of less than 500ms.
The BrowserCameras can provide information about the browser's cameras in two different ways.
SLOW
: Slow but accurate. This mode discovers camera information by starting a camera stream for each of the cameras that the browsers offers access to. This is done because the browser offers the most accurate information about a camera only when a stream of that camera is running. Using this data, BrowserCameras.getMainCamera can make the best possible predictions of which camera is the "main" one. On most devices, this method of starting all camera streams will cause the "camera is running" indicator light or notification to be displayed. Other effects like clicking camera lenses might also be observable. This process can be slow. On some devices, this mode has a running time of several seconds.FAST
: Fast but less accurate. This mode discovers camera information by guess-parsing the browser-provided camera labels. Using this data, BrowserCameras.getMainCamera can make good predictions of which camera is the "main" one. However, this technique is limited and cannot provide information about the torch control capabilities. Additionally, information about the camera resolution might be missing. On most devices, this mode has a runtime of less than 500ms.