Heisenbug
Heisenbug

Reputation: 970

WKWebView WebGL performance is lower than Safari

I'm trying to show this stream in my app using WKWebView, but the frame rate is less than 1 FPS. Stream is using webGL. When I open the same stream in Safari, it works beautifully. I'm planning to use SFSafariViewController and insert it as subview into my view. Is that possible? Do you think the performance will be better? Can my app get rejected because of doing so? Can editing client JavaScript improve performance?

Upvotes: 3

Views: 3606

Answers (1)

Heisenbug
Heisenbug

Reputation: 970

I kept searching and I knew, that there must be somewhere some acceleration in WebView Config. Just allow inline media playback and enjoy speed. https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebViewConfiguration_Ref/index.html#//apple_ref/doc/c_ref/WKWebViewConfiguration

Upvotes: 3

Related Questions