mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
connect: always handle player seek event
This commit is contained in:
parent
b13ab3aa1b
commit
932c6fa25f
1 changed files with 6 additions and 2 deletions
|
@ -607,9 +607,13 @@ impl SpircTask {
|
||||||
trace!("==> Loading");
|
trace!("==> Loading");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
PlayerEvent::Seeked { position_ms, .. } => {
|
||||||
|
trace!("==> Seeked");
|
||||||
|
self.connect_state
|
||||||
|
.update_position(position_ms, self.now_ms())
|
||||||
|
}
|
||||||
PlayerEvent::Playing { position_ms, .. }
|
PlayerEvent::Playing { position_ms, .. }
|
||||||
| PlayerEvent::PositionCorrection { position_ms, .. }
|
| PlayerEvent::PositionCorrection { position_ms, .. } => {
|
||||||
| PlayerEvent::Seeked { position_ms, .. } => {
|
|
||||||
trace!("==> Playing");
|
trace!("==> Playing");
|
||||||
let new_nominal_start_time = self.now_ms() - position_ms as i64;
|
let new_nominal_start_time = self.now_ms() - position_ms as i64;
|
||||||
match self.play_status {
|
match self.play_status {
|
||||||
|
|
Loading…
Reference in a new issue