Picture in Picture Crash

Hi Everyone,

I'm getting this crash frequently, could anyone please help to resolve this?

I guess the code below is the reason for the crash.

if #available(iOS 14.2, *)  {             pictureInPictureController.canStartPictureInPictureAutomaticallyFromInline = true
  }

Device Model: iPad Pro (12.9-inch, 3rd generation) Orientation: Portrait  Version:14.7.0 (20G95)

Fatal Exception: NSInvalidArgumentException -[AVPictureInPictureController setCanStartPictureInPictureAutomaticallyFromInline:]: unrecognized selector sent to instance 0x600003bbb3a0

Picture in Picture Crash
 
 
Q