Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass current track along with reportProgress

  • Loading branch information...
commit 778d856b22561f5e3297958f513fd5e6e1fab110 1 parent 856f576
Tony Schneider tonywok authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cocoa_spotify/SpotboxPlayer.m
4 cocoa_spotify/SpotboxPlayer.m
View
@@ -91,7 +91,9 @@ - (void) reportTrackProgress:(NSNotification *) notification {
if ([playbackManager isPlaying]) {
NSTimeInterval pos = [playbackManager trackPosition];
NSString *trackPosition = [[NSString alloc] initWithFormat:@"%d", (long)pos];
- [self sendMessage:[NSString stringWithFormat:@"%@::%@", @"spotbox:server::trackProgress", trackPosition]];
+ NSString *currentTrack = [[[playbackManager currentTrack] spotifyURL] absoluteString];
+
+ [self sendMessage:[NSString stringWithFormat:@"%@::%@::%@", @"spotbox:server::trackProgress", trackPosition, currentTrack]];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.