Set volume and muted properties on main queue
This commit is contained in:
parent
3b53194839
commit
e8e3ffec89
@ -365,11 +365,15 @@ static NSString *const statusKeyPath = @"status";
|
||||
- (void)applyModifiers
|
||||
{
|
||||
if (_muted) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[_player setVolume:0];
|
||||
[_player setMuted:YES];
|
||||
});
|
||||
} else {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[_player setVolume:_volume];
|
||||
[_player setMuted:NO];
|
||||
});
|
||||
}
|
||||
|
||||
[self setResizeMode:_resizeMode];
|
||||
|
Loading…
Reference in New Issue
Block a user