youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

Player only plays for one second.

Open doriansgithub opened this issue 4 years ago • 21 comments
trafficstars

Player only plays for one second. If I pause the process, it plays normal. Any ideas?

UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)}

doriansgithub avatar Oct 25 '21 16:10 doriansgithub

I'm having a very similar problem, the player will load up fine but once I try to play the content I get a bunch of errors.

[assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)}>

[ProcessSuspension] 0x10a3b30f0 - ProcessAssertion: Failed to acquire RBS assertion 'WebKit Media Playback' for process with PID=74905, error: Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)}

steven-worrall avatar Nov 10 '21 21:11 steven-worrall

Exactly the same here.

Sent from my iPhone

On Nov 10, 2021, at 1:56 PM, steven-worrall @.***> wrote:

 I'm having a very similar problem, the player will load up fine but once I try to play the content I get a bunch of errors.

[assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)}>

[ProcessSuspension] 0x10a3b30f0 - ProcessAssertion: Failed to acquire RBS assertion 'WebKit Media Playback' for process with PID=74905, error: Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

doriansgithub avatar Nov 11 '21 00:11 doriansgithub

Im getting the same errors about entitlements. This is on iOS 15.

developingbrian avatar Nov 17 '21 17:11 developingbrian

Same problem. Solution? iOS 15.1

gondp avatar Nov 22 '21 14:11 gondp

Same problem. Solution? iOS 15.1

Im seeing the same errors on 15.1 unfortunately.

developingbrian avatar Nov 23 '21 20:11 developingbrian

Same here

schradeyannik avatar Dec 20 '21 14:12 schradeyannik

same problem here

numerized avatar Jan 28 '22 10:01 numerized

Same problem for me, with this library and with another project that use plain web audio api.

dj-fiorex avatar Feb 14 '22 17:02 dj-fiorex

Did anyone find any solution to this problem? I am also facing the same.

themcaguy avatar Feb 18 '22 07:02 themcaguy

Any updates?

saltyskip avatar Feb 25 '22 04:02 saltyskip

My app is having these problems playing videos inside a web view running on a webpage supplied by a 3rd party.

While researching this issue and not finding any answers, only questions, I have run into this article. It directly addresses the apparent culprit - "RunningBoard: a new subsystem in Catalina to detect errors".

I am going over it now. Perhaps others also can try to make sense of it.

CanfieldMobileDev avatar Mar 17 '22 21:03 CanfieldMobileDev

same here

Skylark4Sky avatar Apr 21 '22 03:04 Skylark4Sky

Same problems

villyGreen avatar May 18 '22 02:05 villyGreen

Solution: set NSAllowsArbitraryLoadsInWebContent to true.

In your Info.plist file, enable the property list key NSAllowsArbitraryLoadsInWebContent as follows:

	<key>NSAllowsArbitraryLoadsInWebContent</key>
	<true/>

If that doesn't work, try going overboard and disabling all relevant App Transport Security restrictions (and then, of course, re-enabling all non-breaking security measures once the problem is isolated):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSAllowsArbitraryLoadsForMedia</key>
	<true/>
	<key>NSAllowsArbitraryLoadsInWebContent</key>
	<true/>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
	<key>NSAllowsLocalNetworking</key>
	<true/>
</dict>
</plist>

daniellivingston avatar Jun 02 '22 00:06 daniellivingston

Solution: set NSAllowsArbitraryLoadsInWebContent to true.

In your Info.plist file, enable the property list key NSAllowsArbitraryLoadsInWebContent as follows:

	<key>NSAllowsArbitraryLoadsInWebContent</key>
	<true/>

If that doesn't work, try going overboard and disabling all relevant App Transport Security restrictions (and then, of course, re-enabling all non-breaking security measures once the problem is isolated):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSAllowsArbitraryLoadsForMedia</key>
	<true/>
	<key>NSAllowsArbitraryLoadsInWebContent</key>
	<true/>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
	<key>NSAllowsLocalNetworking</key>
	<true/>
</dict>
</plist>

@daniellivingston Enabled all, but still getting the assertion.

shto avatar Jun 08 '22 20:06 shto

@shto Sorry, I misspoke. They should be in your Entitlements.plist, not Info.plist. If you don't have an Entitlements file, you can add & manipulate one under Target -> Capabilities: https://stackoverflow.com/a/32547306/5150303

daniellivingston avatar Jun 08 '22 21:06 daniellivingston

@daniellivingston setting these entitlements will get your App rejected unless you provide a justification during submission

See details here: https://developer.apple.com/documentation/security/preventing_insecure_network_connections

andypotato avatar Jun 17 '22 07:06 andypotato

@daniellivingston setting these entitlements will get your App rejected unless you provide a justification during submission

See details here: https://developer.apple.com/documentation/security/preventing_insecure_network_connections

Yes, but AFAIK they're the only officially sanctioned way to address this issue.

At the very least, it's an unblocker.

daniellivingston avatar Jun 20 '22 14:06 daniellivingston

Attempted the above in both info.plist and entitlements with no luck.

robm92 avatar Jun 28 '22 12:06 robm92

having the same issue here @daniellivingston. Also, when I try and add the NSAllowsArbitraryLoadsForMedia, etc. to my entitlement files, I can't get it to run on my device because it errors with a provisioning profile error: Screen Shot 2022-06-30 at 11 57 54 PM Any solutions?

danielchangsoojones avatar Jul 01 '22 06:07 danielchangsoojones

What helped me was adding this to my Info.plist: image

RaffiRincon avatar Apr 01 '23 02:04 RaffiRincon