1 Reply Latest reply: Jun 29, 2014 10:28 PM by angelo lapus RSS

    Flash IOS StageWebView has no sound

    angelo lapus

      Hi guys,

       

      I would like just to ask if you have encountered rendering an html5 with video tag on your air application and ending up with no sound.

      I'm just wondering because when a deployed it on my ipad, the video works perfectly but theres no sound playback.

       

      I hope you could help me guys. I'm already in pain for the past 2 days.

       

      Heres my code:

      protected function onAddedToStage(evt:Event):void

        {

             var webView = new StageWebView();

             webView.stage = this.stage;

             webView.viewPort = new Rectangle( 0, 0, 500, 400);

             var path:String = new File(new File("app:/html/test.html").nativePath).url;

             webView.loadURL(path);

      }

       

      html file:

      <html>

      <head>

      <title>Test</title>

      </head>

      <body>

        <video width="500" height="500" controls>

         <source src="Eh_1.mp4" type="video/mp4">

        Your browser does not support the video tag.

        </video>

       

       

      </body>

      </html>

       

      Thank you so much guys.