Help playing video - mp4

I’m trying to test whether I should go the spritesheet route or mp4 for some of my animations. Does anyone have any sample code for playing an mp4?

Thanks,

J [import]uid: 38758 topic_id: 9492 reply_id: 309492[/import]

Unfortunately you cant play a video outside the native videoplayer just yet. I hope ansca will add support for a video display object very soon. [import]uid: 12870 topic_id: 9492 reply_id: 34701[/import]

Thanks for the reply. You say that you can’t play video outside the native videoplayer. Does that mean there is a way to play something in a native videoplayer? (Sorry for the noob question.)

I want to package the mp4 files within the apk file.

Thanks [import]uid: 38758 topic_id: 9492 reply_id: 34702[/import]

For example: If you point to a video, it will always trigger the iOS or Android Video player and plays the video inside that. Meaning: It pops up over your app with controlbar etc. and I think you don’t want that.

Many people already asked for video support in corona directly, without having any player popping up. I also tried to embed a video with the html5 video tag inside a webpopup but apparently this wont work either :frowning:

But if you want to know how to play a mp4 file non the less, here’s an example for playing an online/remote videofile.
[lua]media.playVideo( your path/url to the online videofile, media.RemoteSource, true )[/lua]

The API: http://developer.anscamobile.com/reference/index/mediaplayvideo

[import]uid: 12870 topic_id: 9492 reply_id: 34838[/import]