Skip to main content
Inspiring
June 11, 2013
Question

Stage Video on Android

  • June 11, 2013
  • 1 reply
  • 657 views

Hi,

I'm developing for Air for Android and testing on a Samsung Galaxy 7, but after hours of researching and coding, I continue to get the same results... no video.

This is my code:

     var path:String = "http://www.marmamedia.com/LearnSQL/video/Day1_1.mp4";

     webView = new StageWebView();

     webView.stage = this.stage;

     webView.viewPort = new Rectangle((0,0, stage.stageWidth, stage.stageHeight));

     webView.loadURL(path);

Has anyone had success in implementing video in Air for Android? Could you share your code?

This topic has been closed for replies.

1 reply

June 19, 2013

Does it work on desktop alright? I came across someone setting renderMode in the application.xml to gpu and setting hardwareAccelerated=true under the android tags, didn't work for me, cpu does but I needed direct as renderMode for starling. Inside the <android> tag place <containsVideo>true</containsVideo> it fixed my video issue but I was using new Video() on the traditional display list not stageWebView.