File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ enum PlayerState {
694694 play_request_id : u64 ,
695695 start_playback : bool ,
696696 loader : Pin < Box < dyn FusedFuture < Output = Result < PlayerLoadedTrackData , ( ) > > + Send > > ,
697+ position_ms : u32 ,
697698 } ,
698699 Paused {
699700 track_id : SpotifyUri ,
@@ -1350,6 +1351,7 @@ impl Future for PlayerInternal {
13501351 ref track_id,
13511352 start_playback,
13521353 play_request_id,
1354+ ..
13531355 } = self . state
13541356 {
13551357 // The loader may be terminated if we are trying to load the same track
@@ -2144,6 +2146,7 @@ impl PlayerInternal {
21442146 play_request_id,
21452147 start_playback : play,
21462148 loader,
2149+ position_ms,
21472150 } ;
21482151
21492152 Ok ( ( ) )
@@ -2293,12 +2296,13 @@ impl PlayerInternal {
22932296 PlayerState :: Loading {
22942297 ref track_id,
22952298 play_request_id,
2299+ position_ms,
22962300 ..
22972301 } => {
22982302 let _ = sender. send ( PlayerEvent :: Loading {
22992303 play_request_id,
23002304 track_id : track_id. clone ( ) ,
2301- position_ms : 0 , // TODO
2305+ position_ms,
23022306 } ) ;
23032307 }
23042308 PlayerState :: Paused {
You can’t perform that action at this time.
0 commit comments