-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
On iOS13, video player preview is not working. UIView is there, play is called, but no video... Added AVPlayerLayer manually solves the problem.
AVPlayerLayer *avPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player]; avPlayerLayer.frame = CGRectMake(0, 100, self.view.frame.size.width, 400); [avPlayerLayer setBackgroundColor:[UIColor clearColor].CGColor]; [self.view.layer addSublayer:avPlayerLayer];
Metadata
Metadata
Assignees
Labels
No labels