Include mp4 file in build

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,

Bart [import]uid: 4426 topic_id: 2984 reply_id: 302984[/import]

On http://developer.anscamobile.com/content/multimedia-features I also see the the phone supports mp4, m4v etc, but nothing found about android.

Any hints please ?

Kind regards,

Bart [import]uid: 4426 topic_id: 2984 reply_id: 8596[/import]

Hi Bart,

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]

Bart,

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]

ok so its also not possible in a webpopup ?

If something is on your radar, then what does this mean? Does this mean its being looked at or is it for maybe in 1 or 2 years ?
Kind regards,

Bart [import]uid: 4426 topic_id: 2984 reply_id: 8980[/import]

Hi Bart,

I haven’t tried playing video in a web popup, that’s an interesting idea. It may work, but I don’t have an example to provide at the moment.

As far as timeline goes, I’m not able to say for certain when a given feature may appear, sorry.

Tim
[import]uid: 8196 topic_id: 2984 reply_id: 9196[/import]

The mp4 issue is fixed and should be in our next release. [import]uid: 54 topic_id: 2984 reply_id: 9230[/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.

its the

When is the release coming out with the MP4 being included in Android builds?

I need to play video local MP4 on Android App.

Remote MP4 is working on both —
media.playVideo(“http://www.testwebsite.com/test.mp4”, media.RemoteSource, true)

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.

Thanks. [import]uid: 10965 topic_id: 2984 reply_id: 11028[/import]

Yes, I am also trying to get Video to play in native.showWebPopup and it does not work.

This is a high priority for me as well and I really hope it can be a quick patch similar to being able to show remote URLs in WebView.

I have code in place to test immediately if this is able to be done.

Thank you in advance for your consideration :slight_smile:

p.s. this is because I do not want to launch the browser (system.openURL) separately because I do not want to show the user the URL.

I am trying to launch both on Android and iPhone using WebPopup to play remote video.

[import]uid: 10965 topic_id: 2984 reply_id: 12896[/import]

Ansa - thank you for latest build with fixes.

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)

local gURL = “http://www.test.com/test.mp4

This will launch the current Android video player… it works very nicely.

I hope this is helpful for someone.

[import]uid: 10965 topic_id: 2984 reply_id: 13355[/import]

Can’t play video on android device (Galaxy Tab)

i’m trying this code:

local onComplete = function(event)
print( “video session ended” )
end
media.playVideo( “111.mov”, true, onComplete )

111.mov is located in app directory.

but when i run the app on android galaxy tab this message appears:
Cannot play video
unable to play video. Error occurred.

on iPhone it works fine! [import]uid: 12728 topic_id: 2984 reply_id: 16269[/import]

.MOV (only works on Apple devices)

.MP4 and .M4V works on both

…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)

[import]uid: 10965 topic_id: 2984 reply_id: 16273[/import]

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”

path = system.pathForFile( path, system.ResourceDirectory )

media.playVideo(path, true, onComplete) [import]uid: 10965 topic_id: 2984 reply_id: 16392[/import]

same result! :frowning:
doesn’t work!

so as i understand there is no way to play video on Android? [import]uid: 12728 topic_id: 2984 reply_id: 16393[/import]

Just remotely:

media.playVideo(“http://www.testwebsite.com/test.mp4”,media.RemoteSource, true)

…so, you need to be able to store your Video files on a web server for playback on Android.

[import]uid: 10965 topic_id: 2984 reply_id: 16397[/import]

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?

this (in build.settings) doesn’t work:

settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight", }, }, } [import]uid: 12728 topic_id: 2984 reply_id: 16411[/import]

There is no way to playback video on android if that video is packed with your app?

So far goodbye for educational applications which work offline and use video then…

And what about splash videos in games? People don’t want to get that downloaded from over the internetconnection everytime they play a game?

Is there realy no way to get this playing? on android? [import]uid: 4426 topic_id: 2984 reply_id: 21398[/import]