Set video gravity on main thread
This commit is contained in:
parent
f83da614cf
commit
bcecb6ed81
@ -287,7 +287,9 @@ static NSString *const statusKeyPath = @"status";
|
||||
- (void)setResizeMode:(NSString*)mode
|
||||
{
|
||||
_resizeMode = mode;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
_playerLayer.videoGravity = mode;
|
||||
});
|
||||
}
|
||||
|
||||
- (void)setPaused:(BOOL)paused
|
||||
|
Loading…
Reference in New Issue
Block a user