[RESOLVED] media.playVideo not working with local file

I’m trying to play a video after it has been downloaded to the system.CachesDirectory with the following command:

media.playVideo( filename, system.CachesDirectory, true)

But the player starts and immediately quits.

A few things to note:

  • It works on Corona Simulator

  • It works on Android device

  • It works on iOS if I open the video directly with media.RemoteSourcespan

  • The problem is happening on iOS devices with version 6 or 7 and on iOS Simulator as well

I am using the latest daily build: 2013-1219.

What might be wrong?

Thanks,

-a

Just found the solution!
 
It turns out you have to keep the file extension (in this case ‘.mp4’) to keep the player working.

Just found the solution!
 
It turns out you have to keep the file extension (in this case ‘.mp4’) to keep the player working.