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