Set player rate on main thread
This commit is contained in:
parent
bcecb6ed81
commit
c985957dd5
@ -375,7 +375,9 @@ 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];
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
[_player setRate:_rate];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setRepeat:(BOOL)repeat {
|
- (void)setRepeat:(BOOL)repeat {
|
||||||
|
Loading…
Reference in New Issue
Block a user