Skip to main content
Inspiring
January 10, 2012
Question

How to view local videos on iOS mobile device

  • January 10, 2012
  • 1 reply
  • 3062 views

How do I view local videos on my iOS device running an Adobe Air app? I know how to view the CameraRoll for iOS in Flex on Adobe Air, but the CameraRoll class only brings up photos, no videos.  When I use:

if (CameraRoll.supportsBrowseForImage) {

                                                  var roll:CameraRoll = new CameraRoll();

                                                  roll.browseForImage();

 

                                        } else {

  trace("Camera Browsing not available");

                                        }

The cameraRoll instance that is brought up only shows photos, no videos.  Any ideas?

This topic has been closed for replies.

1 reply

Jeff__Ward
Inspiring
January 11, 2012

+1  I need this as well.

It looks like it's simply not available in CameraRoll - is support planned?  What are other possibilities - File?  Navtive extension?

Would AIR even be able to play typical phone video formats?  From a quick search, it seems that the iPhone captures h.264 in a mov container, while at least one Android phone captures MPEG-4 in a 3gp container.  I'll try transferring such videos to my computer and embedding them in a test app just to see if they play.

Thanks for any insight!

ETA: The docs for NetStream list h.264 and 3gp as supported formats.  From my testing, however, NetStream does play the iPhone .mov file, but does not play the Android .3gp file.  A Loader plays neither.

Inspiring
January 11, 2012

I can play local files just fine -- IF I can get to them.  The problem I'm having is that the CameraRoll only brings up photos -- not videos.  I can't for the life of me figure out how get access to local videos.

I'm beginning to think that this actually isn't possible, due to some underlying conflict with how Air runs on iOS and the access priveleges it has to the underlying files.

I believe that Air should be able to play a .mov file with no problem.  I feel like I've done this numerous times in a flash desktop prototype apps I've built -- but right now I can't absolutely confirm this.

Participating Frequently
August 11, 2012

Any new information on this? I can't seem to find out if it's possible to browse for video on iOS.