There was no problem at all for webView to play a YouTube video inside a web page.
Since a few days ago, webView cannot play YouTube videos at all. I thought it was just temporary due to my own network connection problem.
Now I started to get user complaints about my app cannot play YouTube videos.
Following is a testing code,
local webView = native.newWebView(0, 0, display.contentWidth, display.contentHeight) webView.x = display.contentWidth \* 0.5 webView.y = display.contentHeight \* 0.5 webView:request("http://www.upworthy.com/matt-damon-asked-a-cheery-13-year-old-what-shell-do-with-her-free-time-her-answer-gave-him-pause?c=reccon1")
You can request any webpage that contains a YouTube video in it, and you will see when you click on Play, the loading indicator spins a bit, and then nothing happens (all black), no matter how long you wait.
This only happens in iOS devices, not Android devices nor Simulator.
Even if I build the app with earlier Corona build, the problem still exists.
What do you think that made this happen? YouTube? And even if it’s YouTube, can Corona do something about it?
PS. If you go to YouTube website via webView, the videos can be played over there. However, this problem happens for a webpage that contains (embeds) a YouTube video.