SvenTiigi / YouTubePlayerKit

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

Does not work on macOS Sonoma Version 14.0 (23A339) (Release Candidate) #72

Closed stormychel closed 11 months ago

stormychel commented 12 months ago

What happened?

White or black screen and no video playing, no sound either. Could extract error from YouTubePlayerView state: webContentProcessDidTerminate

What are the steps to reproduce?

SwiftUI:

YouTubePlayerView(URL)

What is the expected behavior?

Show video instead of white or black screen.

SvenTiigi commented 12 months ago

Hi @stormychel,

Thanks for opening up an issue. As the bug occurred on an unofficially released version of macOS, I will try to reproduce the problem as soon as the official version of macOS Sonoma is released.

stormychel commented 12 months ago

Hello @SvenTiigi,

It's an RC, out since September 12th so I don't expect them to change anything before release on September 26th. Let me know if you need any more info on steps to reproduce or if I can help in any other way.

SvenTiigi commented 11 months ago

Hi @stormychel,

I have just tested YouTubePlayerKit on macOS 14.0 (Sonoma) and wasn't able to reproduce your issue. Could you please provide a minimal example project where the issue can be easily reproduced?

stormychel commented 11 months ago

Hello @SvenTiigi thanks for following up and sorry for the late reply.

Here's a quick example: YouTubePlayerKitTest: https://github.com/stormychel/YouTubePlayerKitTest

edit: Ok I am confused now, I forgot to enable outgoing connections in the YouTubePlayerKitTest, after doing so everything is working, BUT in my real application outgoing connections is enabled as well, but I get the same error. Any clue would be greatly appreciated...

SvenTiigi commented 11 months ago

As the YouTubePlayer.Error.webContentProcessDidTerminate is derived from the WKNavigationDelegate callback function webViewWebContentProcessDidTerminate it might be a good idea to use the Console.app to inspect the underlying WebKit logs 🤔

stormychel commented 11 months ago

Thanks Sven, will start there!