mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
fix: Add pause method to VideoRecorderService
This commit is contained in:
parent
79b33ced2e
commit
c40361aced
@ -129,6 +129,14 @@ class VideoRecorderService :
|
|||||||
closeCamera()
|
closeCamera()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun pause() {
|
||||||
|
super.pause()
|
||||||
|
|
||||||
|
stopActiveRecording()
|
||||||
|
}
|
||||||
|
|
||||||
|
// `resume` override not needed as `startNewCycle` is called by `IntervalRecorderService`
|
||||||
|
|
||||||
private fun stopActiveRecording() {
|
private fun stopActiveRecording() {
|
||||||
activeRecording?.stop()
|
activeRecording?.stop()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user