Play local mp4 or m4v on ANDROID not working

At this moment it looks like you can not include a mp4 or m4v file inside an andoid build and let your corona application playback this local video.

It seems to work with remote video on an URL, but I don’t think people like video to be always downloaded over your data bandwidth.

Can this please be solved so we can include video (doesn’t matter what format) in an android app for local playback?

  • (and this is actually a separate but related request) is there for example a possibility to playback for example a 100x100 video on a part of the screen while we have a background image on the rest of the screen? (and please don’t tell me to bake the bg into the video since thats a very cheap solution :slight_smile: )
    Thank you for looking at this request.

Kind regards,

Bart Libert [import]uid: 4426 topic_id: 7533 reply_id: 307533[/import]

is the file on a subdir? if it is - then you need to flatten the directory sturcture as it is a known bug. the other part, the play the video at x,y - duly noted. [import]uid: 24 topic_id: 7533 reply_id: 26819[/import]

Thank you for your answer. What file format should we then use sir? m4v or mp4 or do both normally work) and in what subdirectory of our application should we put the videofile?

Could you please give a little more info about this and how to access the video then in that specific location?

I can literally change all code for this, but it feels like searching for the impossible while I believe you can explain how to do it in 2-3 lines.
Thank you very very much, also for noting the x,y playback of video on part of the screen. That will be a killer feature which my publisher is actually waiting for before they want me to port a quite large library of content for them using corona.

Bart [import]uid: 4426 topic_id: 7533 reply_id: 26871[/import]

Officially, Android does play MP4 movies. But it only plays MP4 files encoded with H.263 or H.264 AVC. While MP4 is a video container format, it can contain different video codecs which may not be the Android supported one. Therefore, whether we can play MP4 on Android or not, it all depends on what the video codec is inside in MP4.

In order to solve Android doesn’t play MP4 videos and successfully play all kinds of MP4 files on Android devices; we had better convert Android unsupported MP4 to Android more supported MP4.

Officially, Android does play MP4 movies. But it only plays MP4 files encoded with H.263 or H.264 AVC. While MP4 is a video container format, it can contain different video codecs which may not be the Android supported one. Therefore, whether we can play MP4 on Android or not, it all depends on what the video codec is inside in MP4.

In order to solve Android doesn’t play MP4 videos and successfully play all kinds of MP4 files on Android devices; we had better convert Android unsupported MP4 to Android more supported MP4.

As we all know, Android does announce that MP4 is one of Android compatible formats. However, people still encounter the issue of Android won’t play MP4. Why? The reason is MP4 is a container format which means this format may contain various kinds of audio and video codecs while Android is only compatible with MP4 encoded with MPEG-4 or H.264 AVC.

The following step by step guide introduces a powerful tool to solve “Can’t Play MP4 on Android” issue so that you can play any MP4 files in Android phones and tablets.

As we all know, Android does announce that MP4 is one of Android compatible formats. However, people still encounter the issue of Android won’t play MP4. Why? The reason is MP4 is a container format which means this format may contain various kinds of audio and video codecs while Android is only compatible with MP4 encoded with MPEG-4 or H.264 AVC.

The following step by step guide introduces a powerful tool to solve “Can’t Play MP4 on Android” issue so that you can play any MP4 files in Android phones and tablets.