Skip to main content
Known Participant
October 19, 2011
Question

live stream to html 5 <video> tag in IOS devices (iPHone,Ipad)

  • October 19, 2011
  • 3 replies
  • 22280 views

working with FMS 3.5

I have a webcam live video chat system with many users

working only on browsers how support flash.

I want to work with FMS 4.5

in order to upgrade my system to be able to use it with html 5 <video> tag

in safari browser in IOS devices (iPHone,Ipad).

I do not find any simple example or tutorial

that show how it need to be done.

What changes i have to make in my actionscript server code

in my main.asc file in my live chat appliction folder?

it seys:

"Important: You do not need to write server-side code for HTTP Dynamic Streaming.

The livepkgr application has a Server-Side ActionScript file that assigns streams

to a live event."

but is it done automatically to any stream or do i have to write some server-side code

to start it - or do i need this event at all?

What is the url i have to write in the src atribute of the html 5 <video> tag

in order that the user in safary browser on iPHone,Ipad will see the stream?

this link is not halpfull to me:

http://help.adobe.com/en_US/flashmediaserver/devguide/WSd391de4d9c7bd609-52e437a812a3725dfa0-8000.html

because it is working with: Flash Media Live Encoder and my users work only with browsers.

this link is not halpfull to me either:

http://help.adobe.com/en_US/flashmediaserver/devguide/WSeb6b7485f9649bf23d103e5512e08f3a338-8000.html

because it do not show simple example or tutorial how to work with html 5 <video> tag

It do not give working simple example - the more you read the more you get confused...

I am really desperate for any halp...

big thanks for any

cheinan

This topic has been closed for replies.

3 replies

flashdictionary
Inspiring
January 27, 2014

I believe that there are many people who wish they could publish microphone audio from a NetStream using the AAC audio codec. This isnt yet supported in the ActionScript AIR runtimes, so lets add our votes to the Adobe bugbase to get the feature implemented.

By doing so, we could stream audio from any AIR supported device to any other AIR supported device with conjunction of StageVideo, hardware acceleration, etc. And then Adobe could natively support HLS, HDS with AAC audio without any need for transcoding (wasted processor power, difficult to implement), and wasting developers time trying to figure out how to do so.

Also by implementing AAC audio at the microphone source, the audio (audio/video) latencies would be at their minimums.

Add your vote here:

https://bugbase.adobe.com/index.cfm?event=bug&id=3694393

December 2, 2011

Hi,

In this moment i can boroadcast live for all platforms excepts one "Windows Phone 7". Can you help me? or give me directions?

Using Flash Media Live Encoder 3.2

Nikhil_Kalyan
Participating Frequently
December 6, 2011

I guess Windows phone does not support either HTML5 or Flash.

Adobe Employee
October 20, 2011

Remember, that you need to publish video as H264 codec and audio as AAC/HEAAC for it to work with ios player.. Flash player may not yet support this combination..

Anyways from the publishing perspective and for your understanding .. here's what one need to do..

From the publisher you will have to :

  nc = new NetConnection();

    nc.connect("rtmp://example.com/livepkgr");

    ns = new NetStream(nc);

    ns.publish("livestream?adbe-live-event=liveevent");

This will publish your stream in livepkgr app with name livestream and on event liveevent.

Once you have tried this.. just look for live stream content being recorded in <livepkgr>/streams/_definst_/liveevent folder ..  and content size is growing..

Once you are sure that content is being recorded and growing with time, you are ready to subscribe the content from the ios player.

To subscribe to this particular stream, you may use the URL http://example.com:8134/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8

Here, livestream, liveevent are variables that you can replace according to your wish .. example.com is your server.. you may use server's ip too..

cheinanAuthor
Known Participant
October 21, 2011

thanks for your reply

I will appreciate if you can halp me to clear some things

when you says:

"

From the publisher you will have to:

  nc = new NetConnection();

  nc.connect("rtmp://example.com/livepkgr");

  ns = new NetStream(nc);

  ns.publish("livestream?adbe-live-event=liveevent");

"

you mean from the flash media server actionscript 2 code

or from the user swf actionscript 3 code

that broadcast live (asume the user who broadcast do not use apple devices),

and in case its from the user side - very important!!! - do i not have to use

my old application folder with all its main.asc logic code on server?

and where do i put this main.asc logic code i need?

when you says:

"Once you are sure that content is being recorded and growing with time, you are ready to subscribe the content from the ios player."

you mean when i broadcast live - one of the things in order to check if its working

is to set Interval in my actionscript 2 server code who check that recorded file size is growing with time?

And last end very important

when you says:

"you may use the URL http://example.com:8134/hls-live/livepkgr/_definst_/liveevent/livestre am.m3u8"

in the url

what dose: "8134" mean?

what dose: "hls-live" mean?

what dose: "livestre am.m3u8" mean?

big thanks for your effort and halp

cheinan

Nikhil_Kalyan
Participating Frequently
October 23, 2011

Hi,

I can clarify some the points above.

The code snippet is to be used on the user side, in AS3, for publishing the live content first to the server, which will then be streamed to iOS.

You need to use the application 'livepkgr' to be able to stream to iOS. You can make similar applications as well, though.

To check the recording, Nitin above , must meant to just manually confirm whether the recording has indeed started. I do not recommend a script based confirmation. As long as the playback is happening, recording is confirmed

8134 is the port on which apache that's bundled on FMS is listening on. The rest of the items are specific keywords and extensions used. You should check the documentation for many other details @ http://help.adobe.com/en_US/flashmediaserver/devguide/WSeb6b7485f9649bf23d103e5512e08f3a338-8000.html

Thank you !