dailymotion / dailymotion-swift-player-sdk-ios

Dailymotion Player SDK for iOS in Swift
MIT License
34 stars 15 forks source link

Player initialization notification may differ from "apiready" on olde… #35

Closed romainbiard closed 6 years ago

romainbiard commented 6 years ago

Player initialization notification may differ from "apiready" on older OSes

For now on iOS 11+, Dailymotion Player completed its loading state and we got notified through func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) callback from WKWebview.

But on older devices and more specifically older versions of iOS, some SDK users might have faced an issue when they are trying to load a video just after creating the player.

Solution: we consider now the player completely loaded when we receive an "apiready" event. It might fix a lot of "black player" issue which occured in the past on iOS 9

romainbiard commented 6 years ago

Underlying bug #34