0 Replies Latest reply on Oct 2, 2014 1:29 AM by repaper

    StageWebView rendering issues

    repaper

      Hi,

      I’m struggling with some problems in my flex mobile project.
      On the Sony Experia S there are some rendering issues while interact with the StageWebView. As soon as I initialize a website or playback a video the whole screen around the webview area starts to flicker. To verify the problem I build a clean mobile app.

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"

      creationComplete="view_creationCompleteHandler ( event )">

       

      <fx:Script>

      <![CDATA[

            import mx.events.FlexEvent;

       

            public static const URL:String = "http://www.youtube.com";

       

            private var webview : StageWebView;

            private var r : Rectangle;

       

            protected function view_creationCompleteHandler ( event:FlexEvent ) : void {

                var ww:StageWebView = new StageWebView ( true );

             

           r = new Rectangle ( 100, 100, 800, 500 );

       

           ww.stage = systemManager.stage;

           webview = ww;

           webview.viewPort = r;

           webview.loadURL ( URL );

         }

      ]]>

      </fx:Script>

       

      <s:Image id="backgroundTabBar" left="0" bottom="0" width="100%" height="68"  scaleMode="stretch" source="@Embed('assets/img/background_tabbar.png')"/>

      </s:View>


      I recognized as soon as I set the android:hardwareAccelerated parameter to false the flickering stops. But I can’t set this parameter to false because the StageWebView is used to play videos.

       

      Is there any known workaround or can someone give me a hint to solve the problem?

       

      If it helps I can capture some video of the flickering effect.