mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-12 04:22:37 +00:00
casting: update lastTimeChanged when receiving time update
This commit is contained in:
parent
ab4924408b
commit
e8c7860774
1 changed files with 4 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue