Skip to main content
Participating Frequently
March 25, 2014
Question

Video playback issues in Air for Android

  • March 25, 2014
  • 5 replies
  • 9058 views

Hello everybody

I am developing an advertisement application which plays multiple videos. I have faced a very strange problem: nor the simple Video nor the StageVideo are not visible when I run the app on target android device. I can hear the audio but the only way to get the video is to press back button and then get back to app but in this case the video goes over the UI. This happens only on a target device which is a chinese sibo android tablet. It has android 4.1 on board. I have seen a lot of people had the similar issues:

http://forums.adobe.com/message/5429125

but the solution mentioned there - adding <containsVideo>true</containsVideo> to the manifest xml doesnt help

I am using adobe air 4.0 sdk and the air 4.0 runtime on the device.  I have tried to change renderMode to CPU/Direct/Auto but it doesn change anything.

The other three android devices I have - toshiba thrive tablet(4.0.4)/ eken tablet(4.2.2)/ htc desire c(4.0.3) play all the video content without any problem.

Any advice will be highly appreciated,

Max

This topic has been closed for replies.

5 replies

Participating Frequently
June 21, 2015

Hello,

I had this bug for a long time in Android, waited patiently for the new Adobe Air 18, and now with the VideoTexture it still flickers after calling netStream.play()

It switches render states to "software" and sometimes get stuck there. So another play() call is needed, then it flickers through "software" and then to "accelerated" and the movie plays.

On iOS it plays the clips almost instantly. I wish to have the same behavior on Android please as it limits my creative flexibility tremendously.

Thanks

jt12312312312
Participant
August 11, 2015

OSMFSettings.enableStageVideo = false;

Inspiring
October 24, 2014

Can you try to add the following to you app.xml?

  <application android:hardwareAccelerated="true"/>

rue

  <manifestAdditions>

        <![CDATA[

            <manifest android:installLocation="auto">

            <application android:hardwareAccelerated="true"/>

Participating Frequently
October 24, 2014

Hi,

I have added that already. As for me it seems to be a problem which is related somehow with hardware the as the few other tablets and smartphones play videos just fine. The target device is android 4.1 chinese brand tablet so I think the problem is with their hardware or with their custom android firmware. Well at least I have found that versions 3.2 and 3.3 play videos well so we were able to continue working with our clients.

Howard_Wang4
Participating Frequently
October 24, 2014

The flag was always added.

  <application android:enabled="true" android:hardwareAccelerated="true">

To my knowledge from research on Google, 3 things affect black screen,

1)   <application android:enabled="true" android:hardwareAccelerated="true">

2)   <containsVideo></containsVideo>

3)   <renderMode>direct</renderMode>

I tried the combinations of those 3 flags, still does not work for me with the very latest Oct air runtime. Sometimes there is no black screen, sometimes it shows black screen. The chances are 50/50 on my Samsung Galaxy S3 phone.

Again, as a former member of Flash player team and a loyal Flash fan, I think currently AIR really lags behind in both quality and speed.

Regards,

Howard

Howard_Wang4
Participating Frequently
October 23, 2014

I experienced the same issue, just downloaded the Oct 14th AIR SDK, and still see the same issue.

As a former member of the Flash player team, I am not happy. Adobe AIR team, that's a very serious issue, please fix it as soon as possible. Otherwise, why do we need AIR?

Thanks,

Howard

Participant
September 26, 2014

Hi,

I have the same problem..Have you fixed it somehow?

It makes me crazy...can't understand why i just hear the audio and can't see the video!!

If anyone knows how to solve this problem please answer me!!

Thanks to everyone

Tkart Staff

Participating Frequently
September 26, 2014

Hi,

try uninstall the latest air then disable auto update from play store and then find and install old air 3.2/3.3

It helped in my case

Cheers,

Max

Participant
September 26, 2014

sorry but i didn't get..

i have adobe AIR 4.0.0.1390.. so you suggest to reinstall the old version?

and what does it mean "i have to disable auto update from play store"?

thank you so much for your advice!

Participating Frequently
March 27, 2014

Videos are h.264 mp4 files encoded via adobe media encoder. I have tried ecoding it as flv/f4v, change the bitrate and size but nothing helps. I have just tested embedding videos into swf using flash pro but still the same issue. It seems this hardware has a conflict with adobe air video player.

Update:

I have got a positive result when embedding video into an swf using flash pro and setting <containsVideo>false</containsVideo> into app descriptor

The quality and performance is poor but I think its possible to do something by playing with flv encoder settings.