Air for Android -playing movies from the sdcard

If you’re having trouble reading files from the sdcard using Air for android you can’t simply hardcode a path because the location of the file can vary from device to device.You need to use the filesystem package to help you out.

Specifically you need the documentsDirectory.resolvePath method of the File Object to get a full path.

example:



		

For more info about the spark video player go here:

Spark VideoPlayer – Flex SDK – Adobe Open Source.

1 comment on “Air for Android -playing movies from the sdcard”

Leave a Reply

Your email address will not be published. Required fields are marked *