Embedded Video not playing in WebView with iOS 13

Several of our apps put tutorial videos in a webview inside the app. These always worked great before iOS 13. User would tap on the embedded video, it would expand to full screen and play the video. Now, with iOS 13, this no longer works. You tap the embedded video and nothing happens. If you tap it over and over, eventually you might get lucky and the video starts playing.


Anyone else seeing this? Any work around?


Thanks

I know this is a little old by now, but if you hadn't found a solution to the issue yet (or anyone who stumbles across this from Google), iPadOS appears to have changed the default User-Agent to be a desktop User-Agent.. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko)". You can try and either set the customUserAgent on the webview to something closer to the iPhone's default User-Agent so the HTML5 video player you're using detects an iPad and modifies itself accordingly. The following worked for me and fixed up other websites that were having issues playing videos.


webview.customUserAgent = "Mozilla/5.0 (iPad; CPU iPhone OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)"

Thank you. Worked for me.

Thanks @swemoney!
This worked for me and it saved my lot of time.

Thank you very much It worked for us!

Embedded Video not playing in WebView with iOS 13
 
 
Q