This seems to have just started as it was working fine before. (or last time tested).
Using 2017.3145.
I’m using a newWebView, loading a locally stored page, that builds an iFrame and plays an embeded youtube video. The page connects and displays the initial thumbnail from the view as expected. When you press the play button, the screen goes black and the play button goes from red to white, and enlarges to the full height of the window - pixelated. It gets the normal rotating circle indicating loading and begins playing. The audio plays as normal, but the video is a black blank screen. When finished, it displays the initial thumbnail - properly - as expected.
I have confirmed that the video displays and plays properly through Chrome on the device.
Below is the loaded html file.
\<html\> \<body\> \<div style="text-align: center; align: center; background-color: black;"\> \<iframe style='width: 100%; height: 100%;' src="https://www.youtube.com/embed/4n\_s2PnnOlQ?rel=0&controls=0&showinfo=0" frameborder="1" allowfullscreen\>\</iframe\> \</div\> \</body\> \</html\>
Creation of the newWebView is:
local vWidth = 280 local vHeight = 158 wView = native.newWebView( 2000, centerY, vWidth, vHeight ) wView.y = titleText.y + (titleText.height \* 0.5) + Prefs.marginTop + (wView.height \* 0.5) wView.hasBackground = false
The call to load the file in onRowTouch is:
if(e.target.params) then local goto = e.target.params.goto or nil if (goto and goto ~= "") then wView:request( goto, system.ResourceDirectory ) end end
Any thoughts.
Thanks in advance.
Dave