Skip to main content
Participant
November 28, 2012
Question

HLS from flash & cam to iOS

  • November 28, 2012
  • 2 replies
  • 1625 views

I've been puzzling over this for a few days now.

I want to do a simple proof of concept with a live feed published from a webcam using Flash, via FMS 4.5, to an iOS device using HLS.

Is this even possible?  Here's what I've done so far.

1. Installed FMS 4.5 on new server with all defaults.

2. Proved that it's working OK by browsing the "start page" (http://(myserver):8134/index.html) on both flash and iOS devices.

Now I've tried to use the example "interactive" demo to publish my live cam feed. 

I've published to rtmp:/livepkgr

And I've called the stream livestream?adbe-live-event=liveevent

It's published and picked up OK by the Flash player on the "interactive" demo on the start page.

So that's working OK.

I then try and consume it on an iOS device.  I point the URL to

http://(myserver):8134/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8

I don't get a 404 so I know I've hit a live URL but on my iPad in Safari it simply comes up with a black (not blank) page and "The operation could not be completed" popup.

I'm obviously missing one or more steps here.  Help

(do I need to code the flash publisher to encode as h.264?)

Thanks,

Puzzled

This topic has been closed for replies.

2 replies

Participating Frequently
August 8, 2013

Can someone confirm that this works? Anybody tried stream camera via rtmp to iOS HLS?

So far I've seen tutorials with FMLE, but not with as3 Camera.

November 28, 2012

Live feed published using flash can be played back by an iOS device using HLS. For Apple HTTP Live Streaming Adobe Media Server supports H.264 and AAC/HE-AAC codec for audio-video content and AAC/HE-AAC for audio-only content.

Participant
November 28, 2012

I'm not entirely sure what you're saying here.  What do I need to do to make this work?

Thanks!

November 29, 2012

For HLS Streaming, the video codec should be H.264 and audio codec should be AAC/HE-AAC. So, if you are publishing from your webcam using flash player then you will have to encode camera feed to H.264 codec and if you are publishing from FMLE then you will have to select video format as H.264 and audio format as AAC.

For more details about converting camera feed to H.264 codec using flash player, you can check the following link:

http://www.adobe.com/devnet/adobe-media-server/articles/encoding-live-video-h264.html