ICGVideoTrimmer
ICGVideoTrimmer copied to clipboard
Video preview is not working
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];