ICGVideoTrimmer icon indicating copy to clipboard operation
ICGVideoTrimmer copied to clipboard

Video preview is not working

Open mladjan opened this issue 4 years ago • 0 comments

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];

mladjan avatar Apr 24 '20 19:04 mladjan