Skip to content

Commit

Permalink
connect: always handle player seek event
Browse files Browse the repository at this point in the history
  • Loading branch information
photovoltex committed Dec 12, 2024
1 parent b13ab3a commit 932c6fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions connect/src/spirc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,13 @@ impl SpircTask {
trace!("==> Loading");
}
},
PlayerEvent::Seeked { position_ms, .. } => {
trace!("==> Seeked");
self.connect_state
.update_position(position_ms, self.now_ms())
}
PlayerEvent::Playing { position_ms, .. }
| PlayerEvent::PositionCorrection { position_ms, .. }
| PlayerEvent::Seeked { position_ms, .. } => {
| PlayerEvent::PositionCorrection { position_ms, .. } => {
trace!("==> Playing");
let new_nominal_start_time = self.now_ms() - position_ms as i64;
match self.play_status {
Expand Down

0 comments on commit 932c6fa

Please sign in to comment.