parent
ab93afd2c3
commit
449b97a6c2
@ -294,10 +294,14 @@ static NSString *const statusKeyPath = @"status";
|
|||||||
{
|
{
|
||||||
if (paused) {
|
if (paused) {
|
||||||
[self stopProgressTimer];
|
[self stopProgressTimer];
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[_player pause];
|
[_player pause];
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
[self startProgressTimer];
|
[self startProgressTimer];
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[_player play];
|
[_player play];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_paused = paused;
|
_paused = paused;
|
||||||
|
Loading…
Reference in New Issue
Block a user