Don't pause streams, stop instead
Do not bother to pause streamed files, instead stop playback when pause is requested. Fixes #372 Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
20531b2d04
commit
0c934886f4
1 changed files with 4 additions and 0 deletions
|
@ -101,6 +101,10 @@ NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation";
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)pause:(id)sender {
|
- (IBAction)pause:(id)sender {
|
||||||
|
if(!([playlistController currentEntry].seekable)) {
|
||||||
|
return [self stop:sender];
|
||||||
|
}
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] setInteger:CogStatusPaused forKey:@"lastPlaybackStatus"];
|
[[NSUserDefaults standardUserDefaults] setInteger:CogStatusPaused forKey:@"lastPlaybackStatus"];
|
||||||
|
|
||||||
[audioPlayer pause];
|
[audioPlayer pause];
|
||||||
|
|
Loading…
Reference in a new issue