Permalink
Browse files

report back track progress in seconds

  • Loading branch information...
1 parent 91bee81 commit 0fbe729b34782d2abaa8fa764e9181b8fddfb5f8 @tonywok tonywok committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 CoccoaSpotbox/SpotboxPlayer.m
View
2 CoccoaSpotbox/SpotboxPlayer.m
@@ -61,7 +61,7 @@ - (void) stop_track {
- (void) zmqDispatchDidReceiveData:(ZmqDispatch *)dispatcher {
if ([playback_manager isPlaying]) {
NSTimeInterval pos = [playback_manager trackPosition];
- NSString *track_position = [[NSString alloc] initWithFormat:@"%d", ((long)pos % 60)];
+ NSString *track_position = [[NSString alloc] initWithFormat:@"%d", (long)pos];
NSString *message = [NSString stringWithFormat:@"%@::%@::%@", @"spotbox:server", @"track_progress", track_position];
NSData* data = [message dataUsingEncoding:NSUTF8StringEncoding];

0 comments on commit 0fbe729

Please sign in to comment.