playing video on iPad

I need to be able to play a video on an iPad. I am able to play other apps (hello world, fishies) on it so I know it’s able to run my apps. I also have written it in objective-c using the iPhone SDK and it works, but for some reason, the Corona SDK on the iPad doesn’t seem to want to play video. Here’s my code:

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

Can someone please help me. I don’t want to have to write this entire program in objective-c!!!

Also, when I look in the device logs in xcode, it shows that the app had crashed. Can anyone explain this? [import]uid: 5885 topic_id: 738 reply_id: 300738[/import]

Did you run the simulator through the debugger or the terminal? Usually during my Corona adventures, it always gave me good hints if I made a scripting mistake.

Is the video in one of these formats?

• H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. Note: B frames are not
supported in the Baseline profile.
• MPEG-4 Part 2 video (Simple Profile)

[import]uid: 5712 topic_id: 738 reply_id: 1471[/import]

No I haven’t, I just built it and put it on the iPad. I’ll try that but the code is so simple, I don’t know how there could be a big mistake. Also, when I tried playing a video with sound, it would play the sound but not the video. They have all been mp4

Here’s what I found in the console…

Tue Apr 6 13:23:57 iPad playvideo[852] : UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist.

[import]uid: 5885 topic_id: 738 reply_id: 1472[/import]

I GOT IT!!! For some reason, when you open for build with a video, you have to select iPhone OS 3.0 NOT iPad. [import]uid: 5885 topic_id: 738 reply_id: 1474[/import]

Maybe you should report this as a bug. Its a bug in the functionality or the documentation needs to be updated. [import]uid: 5712 topic_id: 738 reply_id: 1475[/import]

Hi,all there

Maybe you can try this program: Pavtube Video Converter(Windows OS/Mac OS).

I just wanted to tell you that I love this program!The software is working perfectly on my Mac (intel, OS X v.10.4). Thanks very much, it’s a handy tool and I have already converted several items to run on my iPhone 3GS and my new iPad. The crop and trim functions are very useful.

Follow the optimal settings to get excellent playback quality on iPad.

Video:

Codec: h264

Size: 640*480

Bitrate: 2500kbps

Frame rate: 30fps

Audio:

Codec: aac

Sample rate: 48khz

Bitrate: 160kbps

Channels: Stereo

How to convert Video to MP4 for playback on Apple iPad [import]uid: 6344 topic_id: 738 reply_id: 2020[/import]

Is the video problem solved in iPad ?

I’ll check out Pavtube… I use Handbrake.

Carlos [import]uid: 24 topic_id: 738 reply_id: 2023[/import]

You can try iPad Video Converter. Converting of video for iPad consists in transformation of any format or the container for the further playing on other device. The given converter can convert DVD to iPad. Try it.

http://ipad-dvd-video-converter.com/
[import]uid: 8976 topic_id: 738 reply_id: 5916[/import]

I need to play a video in background, like a background image.
So I can put images and physical objects in the front of that video.

when I use:
media.playVideo( “test1.mp4”, true)

the video starts in the front and hides all other objects.

I need this video to play only in landscape orientation,i.e. independent of interface orientation.

this doesn’t work:

settings =  
{  
 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeLeft", "landscapeRight"  
 }  
 }  
}  

how can I fix it? [import]uid: 12728 topic_id: 738 reply_id: 16551[/import]