casting: update lastTimeChanged when receiving time update

This commit is contained in:
Marcus Hanestad 2025-09-10 09:31:42 +02:00
commit e8c7860774

View file

@ -254,7 +254,10 @@ class ExpCastingDevice(val device: RsCastingDevice) : CastingDevice() {
}
}
eventHandler.onPlayChanged.subscribe { isPlaying = it }
eventHandler.onTimeChanged.subscribe { time = it }
eventHandler.onTimeChanged.subscribe {
lastTimeChangeTime_ms = System.currentTimeMillis()
time = it
}
eventHandler.onDurationChanged.subscribe { duration = it }
eventHandler.onVolumeChanged.subscribe { volume = it }
eventHandler.onSpeedChanged.subscribe { speed = it }