Load movie from external SD card

Hello there

I have ofAndroid-Eclipse running and am able to transfer androidVideoExample to my tablet.

Now, instead of fingers.mp4 I wish to play a much longer movie (1GB). I’ve added my “long.mp4” to bin/data and canged the code accordingly. But the transfer of the .apk aborts either because of a timeout or because there is not enough memory. Even though there is plenty of memory available…

So I thought, why not upload the “long.mp4” to the external sd card and load it in my androidVideoExample.apk ?
To read/write from the sd card, I changed the AndroidManifest.xml with the following line:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

in testApp.cpp i am loading the movie like this:

player.loadMovie("long.mp4");

Though it doesn’t work…
What am I missing?
Thanks for your help

where did you put the video?

if you are using 0.8 it should be in sdcard/Android/data/cc.openFrameworks.androidVideoExample/

if you are using latest from master usually in sdcard/Android/data/cc.openFrameworks.androidVideoExample/files/

i’m on 0.8 and had the video on the top level…
now tried

lowecase “android/…” and uppercase “Android/…”
sdcard/android/data/cc.openFrameworks.androidVideoExample/

without success… the error must be somewhere else then…

ok, worked
my long movie is fishy…

not all formats supported by the desktop versions of OF will be supported by android so you’ll probably need to convert your video to some specific format