Skip to main content
Participant
Nov 28, 2012 2:49 PM UTC
Question

HLS from flash & cam to iOS

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Participating Frequently
Aug 8, 2013 11:49 AM UTC

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.

Translate
Nov 28, 2012 4:40 PM UTC

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.

Translate
Participant
Nov 28, 2012 6:04 PM UTC

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

Thanks!

Translate
Nov 29, 2012 4:50 AM UTC

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

Translate