Is there any sample app (source) that shows how to play HLS streams using AIR for IOS, that the OSMF team can make available?
I am running into issues trying to get this to work as outlined here. http://forums.adobe.com/message/4013821#4013821
TIA,
- Abey
I have a sample but will need to dig it out.
In general there are a couple things you need to do.
First is OSMF 1.6 did not have it enabled, you need something after 1.6 release.
Also in your app descriptor you need to set the render mode to "direct".
Aside from that you need to make sure all the normal StageVideo requirements are set for you compiling.
Hi David,
Thanks for the reply. I would really appreciate it if you could dig out the sample.
I am using OSMF 1.6.1, AIR 3.1, Flex 4.6 and FMS 4.5. From my tests so far it does not seem like its possible to stream H264 from FMS to AIR for IOS. Not just HLS, any kind of H264 streaming does not seem to work.
If I switch to using progressive download, that seems to work. Below is the matrix I have arrived at from my tests. Would love to be proven wrong on this one.
| FMS 4.5 H.264 Streaming test matrix | ||||
| RTMP | HDS | HLS | HTTP Progressive Download | |
| AIR for Android | Yes | Yes | No | Yes |
| AIR on Windows (Desktop) | Yes | Yes | No | Yes |
| AIR on IOS | No | No | No | Yes |
| Safari Browser on IOS | No | No | Yes | No |
- Abey
I wrote an extremely simple AIR app for mobile that is basically a list of videos, if you touch/select one it will play it.
I was able to stream h264 dynamic streams via rtmp no problem, and the app ran fine on both a Nexus One Android phone and a first generation iPad running iOS v4.something (whatever the minimum was to run AIR, I believe).
EDIT: I even have a video of it! http://www.youtube.com/watch?v=1xImrP_ljq8
Cheers,
mark
Thanks to everyone who replied.
The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
(more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/net/NetStream.html#play%28%29)
1. Progressive download
2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works)
Updated Matrix is :
| FMS 4.5 H.264 Streaming test matrix | ||||
| RTMP | HDS | HLS | HTTP Progressive Download | |
| AIR for Android | Yes | Yes | No | Yes |
| AIR on Windows (Desktop) | Yes | Yes | No | Yes |
| AIR on IOS | No | No | Yes | Yes |
| Safari Browser on IOS | No | No | Yes | No |
just to be clear. to support H.264 (progessive or HLS) for AIR for iOS the following conditions must be met.
AIR 3.0 or later
iOS 4 (5 in the future hopefully - issues at the moment)
renderMode must be set to "direct" in the app descriptor.
OSMF 1.6.1 or an ActionScript equivalent that requires the use of StageVideo
abeymg wrote:
Thanks to everyone who replied.
The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
(more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/net/NetStream.html#play%28%29)
1. Progressive download
2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works.
Are you saying StageVideo works in iOS or this is just some sort of hack?
AFAIK StageVideo does not work in Adobe Air, desktop or ios.
I am saying that StageVideo works on the IOS device. (at least the IPad 2, which is what I used to test)
See here for sample code http://forums.adobe.com/message/4087245#4087245
abeymg wrote:
I am saying that StageVideo works on the IOS device. (at least the IPad 2, which is what I used to test)
See here for sample code http://forums.adobe.com/message/4087245#4087245
You are right, I just saw it in the documentation. The only Air application with no StageVideo is the desktop (sadly).
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/StageVideo.html
So I'm running into trouble adding a .mp4 H.264 file to my Flash CS5.5 project as part of the air applicationDirectory, and the iPad not being able to play the video. Can it not play back locally stored files? OSMF will happily play back a .flv file, but I can't get .mp4 format in 264 to play back on the native devices for the life of me.
Suggestions?
North America
Europe, Middle East and Africa
Asia Pacific