mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Properly set isStartingRecording
for video recording
This commit is contained in:
parent
e719c0f8fb
commit
12311d392b
@ -42,8 +42,12 @@ class VideoRecorderModel :
|
|||||||
// so we only want to actually start the recording if the service is idle and thus
|
// so we only want to actually start the recording if the service is idle and thus
|
||||||
// not already recording
|
// not already recording
|
||||||
if (service.state == RecorderState.IDLE) {
|
if (service.state == RecorderState.IDLE) {
|
||||||
|
isStartingRecording = true
|
||||||
|
|
||||||
service.clearAllRecordings()
|
service.clearAllRecordings()
|
||||||
service.startRecording()
|
service.startRecording()
|
||||||
|
} else {
|
||||||
|
isStartingRecording = false
|
||||||
}
|
}
|
||||||
|
|
||||||
service.onCameraControlAvailable = {
|
service.onCameraControlAvailable = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user