Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

report back track progress in seconds

  • Loading branch information...
commit 0fbe729b34782d2abaa8fa764e9181b8fddfb5f8 1 parent 91bee81
@tonywok tonywok authored
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];
Please sign in to comment.
Something went wrong with that request. Please try again.