Power Saving Process Overview
In this section, the power saving process of GIZO SDK is explained in more details.
Monitoring Battery Levels on iOS Devices
On iOS devices, the battery level is reported with a granularity of 5%. This means each range of battery levels from pβ2
to p+2
is represented by p
, where p
is a multiple of 5 (e.g., p = 0, 5, 10, ..., 100
). For example, battery levels between 8% and 12% are reported as 10%. Consequently, the selection of battery thresholds for the power-saving mode in the SDK is constrained to p+2
values, as the reported battery level only updates when it crosses these thresholds.
Monitoring Battery Levels on Android Devices
On Android devices, battery levels are reported with a 1% granularity. This allows unrestricted selection of battery thresholds for the power-saving mode up to 1% precision.
Monitoring Battery Levels in the GIZO SDK
To ensure consistency across iOS and Android devices, the GIZO SDK maps the reported battery levels on Android to mimic the behavior of iOS devices. As a result, on both platforms, the choice of battery level thresholds for power-saving mode is uniformly limited to p+2
values.
NOTE: The stopRecordingOnLowBatteryLevel
parameter value must be set to p
, but the recording will actually stop at p+2
.
Last updated