Skip to main content
Participant
November 20, 2011
Question

Playing local video files, AIR on Android

  • November 20, 2011
  • 4 replies
  • 1721 views

Hi,

i want to play video files from local application folder on Android (2.3) using AIR 3.

Just a simple thing i thougt. But it does not work well.

The video only starts when it is completly loaded. And while loading the App freezes.

My first approach was using NetStream.

Then i tried Loader and NetStream.appendBytes

And i also tried FLV embedded into SWF.

All trying ends in the behavior described above.

So it is important for my app to play videos immediately. A Playlist for example. There should be no gap between the videos.

Does anybody have an idea how to solve the problem.

My next try will be an Native Extension that plays the video. Or perhaps "streams" the video via http.

I think this will work because i have seen a youttube player demo which plays the video well and start verry fast.

I am greatful for any tip.

Thanks,

Björn

This topic has been closed for replies.

4 replies

Participant
June 22, 2012

did you find the solution of

Playing local video files, AIR on Android ?????????

if you solwe this issue then let me know how it is.

bjoern_sAuthor
Participant
June 22, 2012

Hi,

It's been a while since we've built the app. Therefore, I can tell you a few hints from my memory.

- save the videos on sdcard, not in the application documents folder (if possible)

- use air 3.2

- try different gpu-modes, i think we used "direct"

- use a normal netstream player, no appendBytes or something like that

- use stageVideo if possible

i hope these hints will help you


Colin Holgate
Inspiring
November 20, 2011

What kind of files are they? FLV generally loads up quicker than H.264.

bjoern_sAuthor
Participant
November 20, 2011

i have tried both. But they load slow and also ther is no progressive streaming. The files are played only on load complete.