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

iOS embed in WKWebView earned error #433

Closed YouZoudeFish closed 3 years ago

YouZoudeFish commented 3 years ago

Here is the app sence: VC A loads WKWebView(webview),webview loads urlRequest to play a video. But when video starts playing, Xcode console outputs errors like this: image but it does not affect video to play, it affects when App entering backgroud, and reactive in foreground. the effect is the video can't continue playing. So...How to resolve this problem...... Thanks for comment firstly......

YouZoudeFish commented 3 years ago

The develop environment is: Xcode 12.3 & iOS 14.3 Has tried add : configuration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone; but it doesn't work.

YouZoudeFish commented 3 years ago

Finally, find a way to solved the problem....although the solution seems to be weird, but it actually works....Fwords

misterhtmlcss commented 2 years ago

@YouZoudeFish dude what was the solution? Saying you solved it, but not saying how is really harsh. Please share if you still recall.