Skip navigation
Currently Being Moderated

Problem playing back HLS in an AIR for IOS app

Nov 8, 2011 6:57 AM

I have a basic AIR for IOS app that attempts to play back the sample HLS file included with FMS 4.5. The file I am requesting is at "http://10.173.5.150/hls-vod/sample1_1500kbps.f4v.m3u8"

When I request this file directly in the Safari browser on my Ipad 1, it plays back fine as expected. When I request the same file in an AIR for IOS app on the same Ipad I get a NetStream.Play.StreamNotFound Info event and no playback. OSMF Log pasted below.

 

Any ideas on what could be wrong here?

I must add that the same AIR app deployed to a Glalaxy Tab 10.1 (Android) plays back the HDS streams fine from "http://10.173.5.150/hds-vod/sample1_1500kbps.f4v.f4m"

 

Thx

- Abey

 

 

 

Tue Nov 8 2011 09:49:17 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

Tue Nov 8 2011 09:49:17 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

Tue Nov 8 2011 09:49:17 AM [INFO] [org.osmf.media.videoClasses.VideoSurface] switchRenderer. currentVideoRenderer = null; the new renderer = [object StageVideo]

Tue Nov 8 2011 09:49:17 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

Tue Nov 8 2011 09:49:17 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

Tue Nov 8 2011 09:49:17 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Pause.Notify

Tue Nov 8 2011 09:49:20 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.StreamNotFound

Tue Nov 8 2011 09:49:20 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Pause.Notify

 
Replies
  • Currently Being Moderated
    Nov 9, 2011 5:02 AM   in reply to abeymg

    Hi,

     

    The HLS workflow is supposed to be working for HTML5 video tags, in Apple supported format m3u8. I doubt if this format is supported by AIR (on iOS). Can you please give a try of the same HDS workflow on AIR on iOS too ?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 7:13 PM   in reply to abeymg

    Hi Abey

    OSMF can't play HLS out of the box, only Adobe's HDS;

    If you want to get HLS playing back in OSMF, extra code is needed.

    Matthew Kaufman has a project started for this here: http://code.google.com/p/apple-http-osmf/

    However it hasn't been ported to the latest version of OSMF yet, and from what I can tell still needs some dev.

    This is really only necessary if you want to play HLS within flash, on non-Apple devices, or in some modified way.

    Otherwise it's pretty easy to just use the native Apple players e.g. in a <video> tag.

    Cheers

    Nick

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 7:56 PM   in reply to abeymg

    Yep, I would try Adobe's standard for HTTP adaptive streaming, which is called "HTTP Dynamic Streaming" or HDS

    To be honest, in my experience it's a little more complex than HLS (e.g. I had problems even with the media packager)

    but since it's Adobe you should get better support and workiness ootb .... should ....

    It is implemented in OSMF, it seems to work quite well, and you can run that in AIR.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 8:19 PM   in reply to abeymg

    Nope I haven't tried yet.

    You know what I just found, is jwplayer with in-flash HLS support:

    http://developer.longtailvideo.com/player/branches/adaptive/test/provi der.html

     
    |
    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