Is there a reason why an mp3 file in my folder is included in the builds I make but an mp4 file gets excluded ?
I was trying to find out if I could playback html5 video using a weboverlay, but it looks like the video doesn’t even get packaged into the build.
Any ideas? Can I change this so the mp4 file gets inserted anyway ?
Kind regards,
I’m seeing the same issue and will file a bug. This is not a problem it seems with .m4v files or .mov files, so if you can re-encode your files in one of those formats it should work. Even just renaming the file extension on your .mp4 file to, say, .m4v includes the file in the build.
Thanks for the report.
Tim [import]uid: 8196 topic_id: 2984 reply_id: 8974[/import]
Tim, and should I be able to show a 100x100 pixel m4v file on a local webpage inside a webpopup ?
I’m trying to figure out if I can somehow display a smaller video on top of corona content , but with the video not fullscreen. [import]uid: 4426 topic_id: 2984 reply_id: 8976[/import]
Currently it’s not possible to overlay video with other Corona content; for now video plays in the device-specific popup media player. This is a much requested feature so it’s definitely on our radar.
thanks,
Tim [import]uid: 8196 topic_id: 2984 reply_id: 8979[/import]
@Tim, would it be difficult to create a little test for this playing back inside a webpopup? I mea that I tried the demo wit webpopup in it on top of the fishies, but don’t really know what tags I need to use for testing video in html5.
Note: I had to update the Mime types on the webserver to recognize the MP4 extension
FEATURES that I am trying to get working on both devices:
Local MP4 play (not working on Android)
Is the remote video option working on Android?
When video is done playing, the player auto-closes (is there a way to keep player open?)
(if user wants to play the video again immediately then have option to have player stay open and they can use the built-in ‘done’ button to close player)
I am currently using Version 2010.109 (2010.9.30)
Please help… playing Video locally is very important in my next App using Android.
I tested and I have found the following with Android (iPhone is fine)
MP4 is now copied into build (so is M4V)
Local mediaPlayVideo is not working
Remote mediaPlayVideo is working on Android (still some minor memory issues for stability) — I have logged a support issue and Ansca could duplicate and said that they would try to take a look and fix on Android
Just for anyone else trying to play video on Android — what I have successfully done is use:
system.openURL(gURL) — the gURL variable equals your website path directly to the MP4 file (Note: you will have to have a webserver that allows Mime Type “video/mp4” to be setup for your website to play the MP4 videos directly in the web browser)
…or you will need two copies if you want to keep the .MOV
But .MOV does not work on Android.
There is also good documentation for the correct Video and compression settings (but on Android it gets tricky with all the different devices that are out there)
still have the problem even with changing to .mp4 and .m4v file!
the same error message appears!!!
Is there any compression settings for Android device (to make video play on android)??
and can i play video from local, not from remote source (on android)? [import]uid: 12728 topic_id: 2984 reply_id: 16370[/import]
Sorry, from my 12/08/2010 post — local remote is not working on Android and I have logged an issue — I hope it is fixed in next build.
However, you can try this because Android does need the full path qualified when referring to a file which is different than iOS:
local function onComplete()
print(“video finished playing”)
end
local path = “test.mp4”
that is sad…
One more question.
video on iPhone. I want it to play only in landscape orientation.
How can I prevent video from auto rotating to portrait orientation?