Sony Xperia + webStageView + youtube = bug ?
Hi there,
Im using StageWebView (AIR 3.5+) to display youtube-videos in an iFrame, wrapped in a fairly simple html-body.
On older android versions (2.x), the youtube player fits itself into the StageWebView perfectly.
On newer android version (3.x & 4.x), the OS "inspects" the html and replaces the youtube-player with a custom-os-player.
This works just fine on all tested android-devices - except Sony xperia.
Here, the video of the os-player is cropped and the about 15%on the right side is missing.
This is the html im using:
var htmlString:String =
'<!DOCTYPE HTML>' +
'<html>' +
'<style>body{padding:0;margin:0;background-color: transparent;}</style>' +
'<body>' +
'<iframe class="youtube-player" ' +
'style="border: 0; width: 100%; height: 100%; padding:0px; margin:0p;" ' +
'scrolling="no" frameBorder="0" marginheight="0" align="top" hspace="0" vspace="0" ' +
'id="ytplayer" ' +
'type="text/html" ' +
'src="http://www.youtube.com/embed/' +
videoId +
'?fs=1&rel=0&showinfo=0&modestbranding=1&autoplay=1"> ' +
'</iframe>' +
'</body>' +
'</html>';
I already tried absolute pixels, fullscreen http://www.youtube.com/v/VID_ID, and several other variations.
Some of them worked too, but again: not on the xperia.
Its a pretty specific bug and might well be sony/vodaphone-related and not an AIR-bug.
Any help (or bug confirmation) is welcome.
verdave
