Skip to main content
February 14, 2013
Question

Sony Xperia + webStageView + youtube = bug ?

  • February 14, 2013
  • 1 reply
  • 629 views

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

This topic has been closed for replies.

1 reply

chris.campbell
Legend
February 15, 2013

Hi Verdave,

Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include your sample code (or an application) so we can quickly test this out internally.  Once added, please post back with the URL so that others affected can add their comments and votes and I'll ask the team to follow up internally.

Thanks,

Chris