mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
parent
e275f0a80d
commit
e8ec5feb22
1 changed files with 2 additions and 1 deletions
|
@ -1191,10 +1191,11 @@ impl SpircTask {
|
|||
self.play_request_id = Some(self.player.load(track, start_playing, position_ms));
|
||||
|
||||
self.update_state_position(position_ms);
|
||||
self.state.set_status(PlayStatus::kPlayStatusLoading);
|
||||
if start_playing {
|
||||
self.state.set_status(PlayStatus::kPlayStatusPlay);
|
||||
self.play_status = SpircPlayStatus::LoadingPlay { position_ms };
|
||||
} else {
|
||||
self.state.set_status(PlayStatus::kPlayStatusPause);
|
||||
self.play_status = SpircPlayStatus::LoadingPause { position_ms };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue