Skip to main content
Inspiring
June 2, 2012
Question

Video lag at start and stability problems in Android 4 (ICS) when using Video and StageVideo

  • June 2, 2012
  • 19 replies
  • 6090 views

I'm experiencing some problems with video playback in a Samsung Galaxy Tab 2 tablet, which comes with Android 4 (Ice Cream Sandwich).

In Android 3 (Honeycomb) and 2 (Gingerbread and Froyo) video playback worked perfectly and started with no lag, but in Android 4 video takes like a couple of seconds to start, showing nothing during that time.

This problem happens when using either Video and StageVideo objects, but when using StageVideo, there's also another problem: When playing back a second video after having closed the first, even after some minutes, when starting the next video I can see during those couple of seconds a still image of the previous video, in the part where it was stopped. Why?

None of this happened in Android 3 and 2, so I don't think it's something related to my code (and I've reviewed it several times to try and find a solution). This seems to be an Android 4 specific issue with AIR, since I've tried several Android 4 tablets of different brands and all of them show this behaviour. I've tried with AIR 3.1, 3.2 and 3.3 beta, and this problem happens in all three.

Also, there are some random stability problems if the app goes to sleep while playing a video. Sometimes, it doesn't wake up properly and freezes, giving you a "force close" Android message. Sometimes it wakes up properly but the video doesn't show or it's paused. All of this in "CPU" mode. In "Direct" mode it seems to work a little better.

BTW, can someone explain what's exactly the new "Direct" mode. I know it's needed for Stage3D, but I don't know why there's that specific mode, when there's GPU mode. Isn't Stage3D supposed to use the device's GPU? Well, Direct mode seems to be "better" than GPU in that filter effects work, whereas GPU mode doesn't support filters, so if you can use Stage3D while using filter effects, that's great.

This topic has been closed for replies.

19 replies

Participant
January 3, 2013

Is there any news about this issue ? I'm also very annoyed by this problem, since having a still image of the previous video, when lauching the new, looks like a big bug to the users of my mobile application !

Participant
September 11, 2012

Same setup, same issue here... Nexus 7 (JellyBean).

I have another strange behaviour of my application: I use StageVideo that is overlayed by some UI component. Whenever the device goes to sleep mode and wakes up the StageVideo is no longer underneath the flash content but on top! I tried the whole day to get the video back to its default depth, with no success. Seems that android does somehow swap the layers of the StageVideo and the flash content.

Does anybody else has the same problem?

Participant
September 11, 2012

That is very strange, I haven't seen that yet. Especially because I thought StageVideo is ALWAYS on the bottom layer. There's no way to get it above the regular stage layer, at least not intentionally. Sounds like a bug.

I like Android, but StageVideo is very buggy (for now). iOS has some bugs too, but it's not as bad (no dealbreakers).

chris.campbell
Legend
September 13, 2012

I'm trying to find out the status on this.  We did close 3205172 regarding the video delay due to OS limitations but the last email I saw on this thread mentioned a new being created regarding the crash.  I'm looking for the new bug number and status.

@kalimba_rama - Could you open a new bug on the overlay/sleep issue at http://bugbase.adobe.com?

OMA2kAuthor
Inspiring
June 4, 2012

I can't believe no one is getting this problem since it seems to happen in nearly all Android 4 devices...

If someone is also experiencing this problem, please vote for this bug:

https://bugbase.adobe.com/index.cfm?event=bug&id=3205172

chris.campbell
Legend
June 7, 2012

Thanks for opening the bug report.  I've also passed this along to our Android team.

OMA2kAuthor
Inspiring
June 27, 2012

I've attached some adb traces in the above BugBase entry so you can try to debug the crash. It happens mostly when stopping a video (that's the case with the VideoCrash_Traces.txt file; I'm running CPU mode in that crash), but also sometimes it crashes just when waking up from idle.

Sometimes it even crashes when waking from idle when no video is in the screen, so the wake up crash might be a different kind of crash.