swift5avplayerviewcontrollerxcode12.5

CALayer message while playing video (Xcode 12.5.1, Swift 5)


I'm using a stack view to hold various buttons to go to other view controllers, and one button plays a video. Whenever I press this, I get the following messages but the app works fine and the video plays properly:

CATransformLayer changing property masksToBounds in transform-only layer, will have no effect and changing property allowsGroupBlending in transform-only layer, will have no effect

Any idea? Video plays ok in simulator and on device. I'm using the view controller as player like below, Thanks!

guard let url = Bundle.main.path(forResource: "previewMovie", ofType: "m4v") else{return}
let player = AVPlayer(url: URL(fileURLWithPath: url))
let vc = AVPlayerViewController()
vc.player = player
present(vc, animated: true, completion: nil)

Can I ignore the message as it doesn't look like a warning or an error and considering the video plays and the app works fine? I have to resubmit the app. Thanks!


Solution

  • Yes, ignore it. Nothing's wrong with your code.