Copy link to clipboard
Copied
I am trying to deploy a Flash application to the iphone. My application works when run locally but does not run on the ipod.
Program uses FLVPlayer 2.5, and loads the video using the load() function.
Video's are .mp4 filesand are stored in the root folder.
Anyone got advice on using video on the iPhone OS?
H.264 files won't play with FLVPlayback on iOS. If you're using AIR 2.6 you can play them using a StageWebView. Or you can play them with the FLVPlayback component, but as On2 VP6 FLV files.
Copy link to clipboard
Copied
More information.
The mp4 files I am trying to play in the app can be viewed when played standalone on the ipod.
I added some error checking:
video1.addEventListener(VideoEvent.STATE_CHANGE, HandleStateChange);
function HandleStateChange(e:VideoEvent):void
{
ErrorText.text=e.state;
}
The ErrorText displays "Playing" when the video is supposed to be playing, although the screen is otherwise completely black.
Copy link to clipboard
Copied
H.264 files won't play with FLVPlayback on iOS. If you're using AIR 2.6 you can play them using a StageWebView. Or you can play them with the FLVPlayback component, but as On2 VP6 FLV files.
Copy link to clipboard
Copied
How to identify the video is H.264 and On2 VP6 FLV files? becoz I too tried AIR 2.6 video with the flv component itz not working for me on Ipad also used stagewebview itz working fine with the native player
Copy link to clipboard
Copied
If the file is named .mp4, and it plays with the native player, then it's most likely H.264, and won't work on iOS with FLVPlayback. If it's named .flv, it won't work with the native player, will work with FLVPlayback, and it's most likely On2 VP6.
Anything that plays with the native player should work in StageWebView, but you have to get the syntax exactly right.
Copy link to clipboard
Copied
Makes no sense but you are right.
Thanks!
Copy link to clipboard
Copied
One additional question.
What are the best parameters to encode FLV video to play smoothly on the iphone?
Deinterlace? or not
Best bitrate?
Best Framerate?
Copy link to clipboard
Copied
Under AIR 2.0 or 2.6 you're unlikely to get smooth playback, but you could try 300 kbps. The iPhone shows progressive video, any interlacing in the source will end up being averaged. So use a non-interlaced source if you have one, and deinterlace if you need to.
Match the source frame rate, usually that would be 24, 25, or 30 fps.
If this isn't urgent, I would compress at higher data rates, so that the video looks good, and then hope for AIR 2.7 to come out sooner rather than later.
Copy link to clipboard
Copied
Even at 360 kbps playback is jerky.
Do you think that will be improved in FLVPlayback in the new version of Air?
When will the new version be coming out?
Copy link to clipboard
Copied
Yes, dramatically better. I don't know a release date, but others here have referred to "sometime in June".
Copy link to clipboard
Copied
To take advantage of the newest version of Air, do I need to compile the App with the new version, or is the new version updated on the users' phone?
Copy link to clipboard
Copied
Has anyone been able to run Stage Video on the iPad or iPhone?
I tried running this sample on the iPad and nothing happens.
http://www.adobe.com/devnet/flashplayer/articles/stage_video.html
I tried with a .MOV file, a FLV file and an MP4 file
Is it supported on the iPhone?
I am using Flash CS 5.5
Copy link to clipboard
Copied
That is total bull. If you jailbreak your iPhone 3G, you can record video very well with applications like the iPhone Video Recorder. Apple is wrong to make promised updates to the software update 3.0 just to try to boost sales in a new model of iPhone is not much better than 3G. I'm about done with Apple. Microsoft and Apple both are run by criminals.If this solution will not solve your problem then take help of http://www.arcapps.com.