Skip to main content
Participating Frequently
May 27, 2011
Answered

Video on the iPhone OS

  • May 27, 2011
  • 4 replies
  • 2430 views

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?

This topic has been closed for replies.
Correct answer Colin Holgate

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.

4 replies

Parkerrita
Participant
June 2, 2011

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.

Participating Frequently
May 28, 2011

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?

Colin Holgate
Inspiring
May 28, 2011

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.

Participating Frequently
May 29, 2011

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?

Colin Holgate
Colin HolgateCorrect answer
Inspiring
May 27, 2011

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.

relaxatraja
Inspiring
May 28, 2011

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

Colin Holgate
Inspiring
May 28, 2011

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.

Participating Frequently
May 27, 2011

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.