I'm using the Picture in Picture feature in my application using AVPictureInPictureController and its delegate methods. I followed the APPLE documentation to implement this feature. And I'm glad that it's working fine.
But now I want to restrict the user to Play/Pause the content in some error cases. I tried hiding the controls in PIP mode(Picture in Picture mode) but I failed.
Is there any possible way to restrict the user actions ??
Or any other approach which will resolve my problem ??