Merge dpeek/fix/paused-resumes-after-seek into master
Fixes #73 as well
This commit is contained in:
commit
0429094d74
@ -80,7 +80,7 @@ static NSString *const statusKeyPath = @"status";
|
|||||||
{
|
{
|
||||||
if (!_paused) {
|
if (!_paused) {
|
||||||
[self stopProgressTimer];
|
[self stopProgressTimer];
|
||||||
[_player pause];
|
[_player setRate:0.0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,10 +292,10 @@ static NSString *const statusKeyPath = @"status";
|
|||||||
{
|
{
|
||||||
if (paused) {
|
if (paused) {
|
||||||
[self stopProgressTimer];
|
[self stopProgressTimer];
|
||||||
[_player pause];
|
[_player setRate:0.0];
|
||||||
} else {
|
} else {
|
||||||
[self startProgressTimer];
|
[self startProgressTimer];
|
||||||
[_player play];
|
[_player setRate:_rate];
|
||||||
}
|
}
|
||||||
|
|
||||||
_paused = paused;
|
_paused = paused;
|
||||||
@ -365,7 +365,6 @@ static NSString *const statusKeyPath = @"status";
|
|||||||
[self setResizeMode:_resizeMode];
|
[self setResizeMode:_resizeMode];
|
||||||
[self setRepeat:_repeat];
|
[self setRepeat:_repeat];
|
||||||
[self setPaused:_paused];
|
[self setPaused:_paused];
|
||||||
[_player setRate:_rate];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setRepeat:(BOOL)repeat {
|
- (void)setRepeat:(BOOL)repeat {
|
||||||
|
Loading…
Reference in New Issue
Block a user