Skip to main content
Participant
September 21, 2011
Question

Stage Video on 3.0 rc / android

  • September 21, 2011
  • 4 replies
  • 8641 views

Has anyone gotten stagevideo to work on air 3 rc on an android device?

It works like a charm on ipad / ios, but whatever I do it keeps showing up as "unavailble" on a samsung galaxy tab. Adobe is awfully quiet about this, which

is weird considering the release documents claims it supposed to work.

I have 24 hours to solve this or otherwise I'm gonna be forced to recommend our client to develop 2 separate versions for ios and android instead. And probably

not have the patience to bother about air again.

This topic has been closed for replies.

4 replies

Inspiring
October 10, 2011

rendermode to direct on android dosen't work for me. With Flash 11 enabled in compiler settings.

i have state video: accelerated an when i close the app i can see very quickly the video on the stage before the app beeing closed

Participating Frequently
May 2, 2012

Hi, after struggling with all the parameters, finally got stageVideo working on Galaxy Tab 10.1 / Honeycomb 3.2 :

Flash Builder 4.6 Premium with a Flex Mobile application

AIR 3.1

renderMode set to direct

-swf-version=13 in compiler settings

At this point, i got the stageVideo available, but not showing on the scene, only the sound was playing and like Vincent35, i only could see the video a bit when closing the app.

Setting  backgroundAlpha="0" contentBackgroundAlpha="0" was the answer for being able to see the StageVideo with Flex !

Hope that helps,

Ben

Inspiring
June 7, 2012

Hi,

I am having the same problem with being able to hear the audio but not see the video. I'm using a ViewNavigatorApplcation mobile project. I've set the background alpha on the home view to 0, and set the content alpha to 0 on the view and the ViewNavigatorApplication tag, but still can't see the video. Was your setup similar?

thx

Participating Frequently
October 6, 2011

Has anyone had a definite results yet? I am trying under AIR3.0.0.408 (Capabilities.version = AND 11,0,1,152) with Samsung Galaxy Tab 10.1 with Honeycomb 3.1 with AIR running under GPU mode and still had no luck.

BTW, I am currently using Flex SDK 4.5.1.21328 + AIRSDK 3.0.0.4080

Participating Frequently
October 6, 2011

hoono - GPU Mode isn't supported with StageVideo on AIR Android.  Please try Direct Mode.

Participating Frequently
October 7, 2011

Hi David, thanks for your answer, I haven't tried the direct mode yet because I didn't know that direct mode was added as a valid value to the descriptor xml.

Nevertheless, I am still not getting any stage video availability with the rendermode set to direct with Galaxy Tab 10.1 =|

Maybe this device has never been tested by adobe?

Inspiring
September 29, 2011

ottocid: put the rendermode in gpu in the xml cnfig of your app, not auto or cpu

Participating Frequently
September 29, 2011

Please also note that the StageVideo API is available beginning with AIR 3.0 for Android, not 2.7.1, and it is not available in FlashPlayer for Android (there is an automatic SV we do under the hood on FP).  And, as the others have indicated, you need renderMode direct for StageVideo to work on AIR for Android.

Thanks for your feedback.  Please keep posting any other problems you're having, and we'll help clarify and point you in the right direction.

Participating Frequently
September 21, 2011

StageVideo in AIR 3.0 on Android is only available on Honeycomb tablets.  We weren't getting performance improvements on pre-HC devices using the SV path, and in some cases it was even worse than classic video, so we disabled it.  So, on devices < HC, you'll get the unavailable event - this is correct and expected.

I'll make sure the release documents are clearer.

Participating Frequently
September 21, 2011

To expand on this a bit further, another part of the rationale for this decision was to make lives easier for developers: if StageVideo is available, you know you can display a high-quality video (up to 720p usually, but could vary with video) on the device with a good frame rate.  If StageVideo isn't available, the device won't support that video, so you should fall-back on a lower-quality video in a classic Video object.  Doing this allows us to add support to certain pre-HC devices in the future without forcing content to change as well, and since the Video and StageVideo api's are so similar, it should be relatively easy for developers to dynamically switch-out which object is attached to a NetStream.

Hope this helps.