From 1f81f88c4fdb15a7815f7d194a6601f1f346b7a6 Mon Sep 17 00:00:00 2001 From: Philip Brechler Date: Tue, 20 Jan 2015 13:56:11 +0100 Subject: [PATCH] Trying to fix errors when skipping tracks --- SoundcloudPlayer.xcodeproj/project.pbxproj | 4 ++-- SoundcloudPlayer/SharedAudioPlayer.m | 3 +-- SoundcloudPlayer/SoundcloudPlayer-Info.plist | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/SoundcloudPlayer.xcodeproj/project.pbxproj b/SoundcloudPlayer.xcodeproj/project.pbxproj index cff6506..d3087e1 100644 --- a/SoundcloudPlayer.xcodeproj/project.pbxproj +++ b/SoundcloudPlayer.xcodeproj/project.pbxproj @@ -836,7 +836,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = SoundcloudPlayer/SoundcloudPlayer.entitlements; - CODE_SIGN_IDENTITY = "Mac Developer"; + CODE_SIGN_IDENTITY = "Developer ID Application"; COMBINE_HIDPI_IMAGES = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -867,7 +867,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = SoundcloudPlayer/SoundcloudPlayer.entitlements; - CODE_SIGN_IDENTITY = "Mac Developer"; + CODE_SIGN_IDENTITY = "Developer ID Application"; COMBINE_HIDPI_IMAGES = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", diff --git a/SoundcloudPlayer/SharedAudioPlayer.m b/SoundcloudPlayer/SharedAudioPlayer.m index 798701c..fbe8c1d 100644 --- a/SoundcloudPlayer/SharedAudioPlayer.m +++ b/SoundcloudPlayer/SharedAudioPlayer.m @@ -81,9 +81,8 @@ - (void)nextItem { } - (void)previousItem { + [self advanceToTime:0]; if (CMTimeGetSeconds(self.audioPlayer.currentTime) > 5) { - [self advanceToTime:0]; - } else { if (self.positionInPlaylist >= 1) { if (self.shuffleEnabled){ [self jumpToItemAtIndex:[self.shuffledItemsToPlay indexOfObject:[self.itemsToPlay objectAtIndex:self.positionInPlaylist]]-1 startPlaying:self.audioPlayer.rate]; diff --git a/SoundcloudPlayer/SoundcloudPlayer-Info.plist b/SoundcloudPlayer/SoundcloudPlayer-Info.plist index 2e6d422..46ae2d9 100644 --- a/SoundcloudPlayer/SoundcloudPlayer-Info.plist +++ b/SoundcloudPlayer/SoundcloudPlayer-Info.plist @@ -34,7 +34,7 @@ CFBundleVersion - 313 + 316 LSApplicationCategoryType public.app-category.music LSMinimumSystemVersion