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)
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.
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]
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.
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.