I have a WKWebView which loads request with this url which is after loaded plays inline video and can be switched to full screen , when switched to full screen the native ios player appears, there is airplay button in that player letting user to stream video via airplay, there is no problem with connection to airplay and streaming play, pause etc.
The problem is that when i try to switch playback back to app from the airplay switch menu it causes bad access exception with log :
Error acquiring assertion: <NSError: 0x283cbe310; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement">
userInfo = {
RBSAssertionAttribute = <RBSLegacyAttribute: 0x108054960; requestedReason: MediaPlayback; reason: MediaPlayback; flags: PreventTaskSuspend | PreventTaskThrottleDown | WantsForegroundResourcePriority>;
}
[ProcessSuspension] 0x1183e1018 - ProcessAssertion() PID 29725 Unable to acquire assertion for process with PID 29725[![enter image description here][1]][1]
The connection indicator also looks strange when connected to airplay
Finally solved the problem was in a third part lib which has categories on NSObject which where overriding copyWithZone method and were causing BAD_ACCESS, so removing the lib and implementing its functionality on project side solved the problem.