SvenTiigi / YouTubePlayerKit

A Swift Package to easily play YouTube videos 📺
https://sventiigi.github.io/YouTubePlayerKit/
MIT License
717 stars 64 forks source link

Support Parental Control #104

Open kiddosai opened 2 months ago

kiddosai commented 2 months ago

Is your feature request related to a problem?

When parental control is enabled on device, YouTubePlayerKit remains stuck in progress.

What solution would you like?

At the minimum it would be great if it can catch the following error and propagate up to the API client: 0x158c23e18 - [pageProxyID=15, webPageID=16, PID=1373] WebPageProxy::didFailProvisionalLoadForFrame: frameID=20, isMainFrame=0, domain=WebKitErrorDomain, code=105, isMainFrame=0, willInternallyHandleFailure=0

An ideal solution would be to make it work with parental control. Enabling youtube.com does not seem to be sufficient...

What alternatives have you considered?

I have not found a workaround

Any additional context?

No response

SvenTiigi commented 1 month ago

Hi @kiddosai,

Please check out the develop branch which contains a new commit which added a didFailProvisionalNavigation case to the YouTubePlayer.Error