In my app, I play a video from a WebView
and I don't want to allow the users to stop the video, so I don't show any video control. But the controls still appear in NSNotification
and in Control Center. Is there any way to hide them?
WebView core functions are handled by the OS, so i think its not possible but you should implement the video/audio handling natively using these classes:
MPNowPlayingInfoCenter (currenlty playing items)
MPRemoteCommandCenter (observe different events, play/pause/next.. )