Embed a video in iPad2 app?, not url streaming!

Hell

This is my first post here!!!

Is it posible to embed a video in my app, I need it to be inside the app and not stream from a web server.

Best Regards
Mikael
Sweden [import]uid: 64729 topic_id: 10550 reply_id: 310550[/import]

[lua]local onComplete = function(event)
print( “video session ended” )
end
media.playVideo( “Movie.m4v”, true, onComplete )[/lua]

The above is directly from the API section. So look at the media.playVideo API. The above is saying play the video Movie.m4v controls show is true and calls the onComplete function when done.

Matt
[import]uid: 18783 topic_id: 10550 reply_id: 38402[/import]

Thanx Matt

Just to be sure!!, It won’t need a internet conection and the mp4 file will stick inside the app, when people buy the app from store?

Best Regards
Mikael [import]uid: 64729 topic_id: 10550 reply_id: 38403[/import]

Yes. You can try it after you build for device since the video playback won’t work in the sim. That said, yes place the mp4 file in the same dir as the main.lua file you have for the project and you should be good. [import]uid: 18783 topic_id: 10550 reply_id: 38548[/import]

I hate to reopen a 4 month old thread, but is it possible to place and limit the video in a certain section of the screen with navigation buttons to the side. I’m thinking along the lines of an iPad app with 6 or 7 buttons stacked vertically on the left that will play different videos which would appear on the right while the navigation buttons remain in view. [import]uid: 39859 topic_id: 10550 reply_id: 55799[/import]