Skip to main content
Known Participant
November 8, 2011
Question

Problem playing back HLS in an AIR for IOS app

  • November 8, 2011
  • 1 reply
  • 4927 views

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

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    November 9, 2011

    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 ?

    abeymgAuthor
    Known Participant
    November 9, 2011

    Thanks for the reply Nikhil.

    I tried playing HDS on AIR on IOS and the OSMF logs indicate it's attempting to playback, but I dont see any video or hear any audio. Log below

    - Abey

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

    Wed Nov 9 2011 09:15:55 AM [INFO] [org.osmf.media.videoClasses.VideoSurface] switchRenderer. currentVideoRenderer = null; the new renderer = [object StageVideo]

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] NetStatus event:NetStream.Seek.Notify

    Wed Nov 9 2011 09:15:55 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Seek.Notify

    Wed Nov 9 2011 09:15:55 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] State = play

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] NetStatus event:NetStream.Play.Start

    Wed Nov 9 2011 09:15:56 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Start

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamSource] State = load

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamSource] Quality level switch completed. The current quality level [0] with stream [/sample1_1500kbps.f4v ].

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] onScriptData called with mode [immediate].

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] onMetaData invoked.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.f4f.HTTPStreamF4FIndexHandler] Bootstrap reports that content is complete. If this is a live stream, then the publisher stopped it.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.f4f.HTTPStreamF4FIndexHandler] Quality changed from -1 to 0.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.f4f.HTTPStreamF4FIndexHandler] The url for ( time=0, quality=0) = [url=http://10.173.5.150/hds-vod/sample1_1500kbps.f4vSeg1-Frag1, quality = -1, truncateAt = -1, retryAfter = -1, unpublishNotify = false]

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamDownloader] Loading (timeout=4000, retry=0):http://10.173.5.150/hds-vod/sample1_1500kbps.f4vSeg1-Frag1

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamSource] State = beginFragment

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamDownloader] Loaded 1134 bytes from 900004 bytes.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Detected begin fragment for stream [http://10.173.5.150/hds-vod/sample1_1500kbps.f4v].

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Dropped frames=0.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Initialize the FLV Parser ( seekTime = -1, initialTime = -1, playForDuration = -1 ).

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Script tags available (1) for processing.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamSource] State = read

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamDownloader] Loading complete. It took 0.489 sec and 0 retries to download 900004 bytes.

    Wed Nov 9 2011 09:15:56 AM [DEBUG] [org.osmf.net.httpstreaming.f4f.HTTPStreamF4FIndexHandler] Bootstrap box inside media stream found. Trying to update the bootstrap

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Consume all queued script data tags ( use timestamp = 0 ).

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102552 bytes ( buffer = 1.3 )

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 2.136 )

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 2.936 )

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 3.204 )

    Wed Nov 9 2011 09:15:57 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 3.808 )

    Wed Nov 9 2011 09:15:58 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 4.318 )

    Wed Nov 9 2011 09:15:58 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] NetStatus event:NetStream.Buffer.Full

    Wed Nov 9 2011 09:15:58 AM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Buffer.Full

    Wed Nov 9 2011 09:15:58 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 4.876 )

    Wed Nov 9 2011 09:15:58 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPNetStream] Processed 102400 bytes ( buffer = 5.221 )

    Wed Nov 9 2011 09:15:59 AM [DEBUG] [org.osmf.net.httpstreaming.HTTPStreamSource] State = endFragment