youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 680 forks source link

Support for Xcode 12 and iOS 14 #401

Open ElenaVielva opened 4 years ago

ElenaVielva commented 4 years ago

I'm testing my app on Xcode 12 and iOS 14. I'm using the 1.0.2 version of the pod

When I try to play the video in the simulator (iOS 14), I am getting this error and the video does not start:

[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}>
2020-07-14 16:50:11.276431+0200 Chordify[34913:9878656] [ProcessSuspension] 0x127dbe1b0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 34916, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}

When I run the app on a device (iOS 13.5.1), the video does play, however I still see errors:

[assertion] Error acquiring assertion: <NSError: 0x281998b40; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement"> {
    userInfo = {
        RBSAssertionAttribute = <RBSLegacyAttribute: 0x105e77f60; requestedReason: MediaPlayback; reason: MediaPlayback; flags: PreventTaskSuspend | PreventTaskThrottleDown | WantsForegroundResourcePriority>;
    }
}

EDIT: On Xcode 12 beta 2 and 3, the video starts also for iOS 14, but I get the same error messages. Since it is now only error messages it is not critical anymore, however, not desired 🤔

Senocico commented 3 years ago

The same issue...

jollyvideos commented 3 years ago

Hi @ElenaVielva
I have the same problem with my app on Xcode 12 and with iOS 14. Were you able to solve? I'm going crazy

this is what is returned to me:

Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}> 2020-09-19 18:18:34.285359+0200 Sample[38448:1057848] [ProcessSuspension] 0x10a977fc0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 38456, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing} 2020-09-19 18:18:34.286328+0200 Sample[38448:1057848] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}> 2020-09-19 18:18:34.286475+0200 Sample[38448:1057848] [ProcessSuspension] 0x10a977300 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 38448, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}

djmckee commented 3 years ago

+1 – I'm seeing this on iOS 14 and Xcode 12 too...

Abhi0725 commented 3 years ago

Any solution you found @ElenaVielva ?

ElenaVielva commented 3 years ago

No news. I still get the error/warning. Playing the video is not a problem anymore since beta 2

zifeiyu666 commented 3 years ago

same issue....

johncodeos commented 3 years ago

Still no solution for that?

Pasoul commented 3 years ago

same issue....

ykws commented 2 years ago

@ElenaVielva Hi, have you solved this issue yet? I can now play Xcode12/13 and iOS14/15. But on iOS13 Simulator can not play.