Search code examples
iosiphonewebviewjwplayerhttp-live-streaming

iOS - HLS video no longer played in WebView after iOS 10.2 update


So I need to play HLS video inside a webview, everythings work well until recent 10.2 update (this also happens in 10.2.1). I display the video using standard <video> tag, and on some page I use JWPlayer to play the video too.

Currently this only occurs in iPhone 5 (10.2), everything works well in iPhone 5S, 6, 7, 7 Plus, iPad Pro and even iPhone 5 with old OS (9.3.2)

Anyone have any idea what's the cause of this?


Solution

  • So I solved this problem with switching from UIWebView to WKWebView.
    I guess like what apple wrote in their documentation we should switch to WKWebView for future support.

    reference