Skip navigation
Currently Being Moderated

Playing HLS stream using OSMF in Air for IOS

Nov 9, 2011 3:31 AM

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

 
Replies
  • Currently Being Moderated
    Nov 30, 2011 10:09 AM   in reply to abeymg

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2011 8:59 AM   in reply to abeymg

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2011 11:47 AM   in reply to abeymg

    Sure, drop me a line @ rossman at therossman dot org, I'll send an archive of the whole project over.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 13, 2011 3:52 PM   in reply to abeymg

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 13, 2011 8:27 PM   in reply to abeymg

    I do have a sample but not with me. If you contact me via this forum next week I can post a link.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 23, 2011 12:16 AM   in reply to abeymg

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 23, 2011 9:30 AM   in reply to abeymg

    Sorry for the dealy. I have a bunch of samples and hands on directions from our MAX presentation. Including a sample for ios HLS streaming.

    http://info.realeyes.com/max2011-byod-lab-files/

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 23, 2011 12:03 PM   in reply to abeymg

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 15, 2012 2:35 PM   in reply to abeymg

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 15, 2012 2:38 PM   in reply to abeymg

    Are you using StageVideo? it is required. I know progressive H.264 with stage video works as well as HLS, and I assume local should be fine as long as you resolve the path properly.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 15, 2012 2:42 PM   in reply to David_RealEyes

    Well, I assume I am.  I have everything set up for 3.1 and set up a working StageVideo example to work with my android table.  The iPad chokes on the same code.

     

    Any easy way to get trace output of if iOS is actively using StageVideo?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points