File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -680,6 +680,7 @@ enum PlayerState {
680680 play_request_id : u64 ,
681681 start_playback : bool ,
682682 loader : Pin < Box < dyn FusedFuture < Output = Result < PlayerLoadedTrackData , ( ) > > + Send > > ,
683+ position_ms : u32 ,
683684 } ,
684685 Paused {
685686 track_id : SpotifyUri ,
@@ -1227,6 +1228,7 @@ impl Future for PlayerInternal {
12271228 ref track_id,
12281229 start_playback,
12291230 play_request_id,
1231+ ..
12301232 } = self . state
12311233 {
12321234 // The loader may be terminated if we are trying to load the same track
@@ -2021,6 +2023,7 @@ impl PlayerInternal {
20212023 play_request_id,
20222024 start_playback : play,
20232025 loader,
2026+ position_ms,
20242027 } ;
20252028
20262029 Ok ( ( ) )
@@ -2170,12 +2173,13 @@ impl PlayerInternal {
21702173 PlayerState :: Loading {
21712174 ref track_id,
21722175 play_request_id,
2176+ position_ms,
21732177 ..
21742178 } => {
21752179 let _ = sender. send ( PlayerEvent :: Loading {
21762180 play_request_id,
21772181 track_id : track_id. clone ( ) ,
2178- position_ms : 0 , // TODO
2182+ position_ms,
21792183 } ) ;
21802184 }
21812185 PlayerState :: Paused {
You can’t perform that action at this time.
0 commit comments