Reading an RTMP stream using HTML5 instead of Flash

4,920 views
Skip to first unread message

Zakaria

unread,
Mar 2, 2011, 4:56:03 PM3/2/11
to red5
I have the following code that allows me to publish a stream with
Flash and read it with the same technology:

sendStream = new NetStream(netConnection,
NetStream.DIRECT_CONNECTIONS);
sendStream.addEventListener(NetStatusEvent.NET_STATUS,netStreamHandler);
sendStream.publish("media");
sendStream.attachAudio(Microphone.getMicrophone());
sendStream.attachCamera(Camera.getCamera());

Of course, the stream is sent using RTMP:
netConnection.connect("rtmfp://myserver/myApp") ;

However, I wonder how can I read this stream using the HTML5 video
tag?

Thanks,

Regards

Hugo Flambó

unread,
Mar 2, 2011, 5:12:38 PM3/2/11
to red5in...@googlegroups.com

Zakaria

unread,
Mar 3, 2011, 2:18:56 PM3/3/11
to red5
Is there a tool/plugin in red5 that can output the stream as mp4/h264/
etc...
What I need is to be able to read the stream with mobile devices for
example.
Is it possible?
Thanks,

Regards.

Giuseppe Sannicandro

unread,
Mar 4, 2011, 3:23:49 AM3/4/11
to red5in...@googlegroups.com, Zakaria
Zak www.redhostpepper.com has done something try to ask info.

2011/3/3 Zakaria <zakari...@gmail.com>

Zakaria

unread,
Mar 5, 2011, 9:30:38 AM3/5/11
to red5
Thanks for the answer.
But the idea is not to use the existent.
As a developer, I'm trying to put in place a solution that fits my
needs.
For instance, what I need is pretty simple: sending a stream through
rtmp and receive it with
a standard technology (HTML5 fir example).

Thanks,

Regards.

On Mar 4, 9:23 am, Giuseppe Sannicandro <giusa...@gmail.com> wrote:
> Zakwww.redhostpepper.comhas done something try to ask info.
>
> 2011/3/3 Zakaria <zakaria.bo...@gmail.com>

Giuseppe Sannicandro

unread,
Mar 7, 2011, 3:17:40 AM3/7/11
to red5in...@googlegroups.com, Zakaria
Try with ffmpeg it's the only way and take a look to the "Live Http Streaming"

2011/3/5 Zakaria <zakari...@gmail.com>

Zakaria

unread,
Mar 8, 2011, 4:17:37 AM3/8/11
to red5
So you think that I can capture the sent stream (from flash) and then
turn it into h.264 or something else with ffmpeg (exectued from the
red5 java app)?

On Mar 7, 9:17 am, Giuseppe Sannicandro <giusa...@gmail.com> wrote:
> Try with ffmpeg it's the only way and take a look to the "Live Http
> Streaming"
>
> 2011/3/5 Zakaria <zakaria.bo...@gmail.com>
>
>
>
>
>
>
>
> > Thanks for the answer.
> > But the idea is not to use the existent.
> > As a developer, I'm trying to put in place a solution that fits my
> > needs.
> > For instance, what I need is pretty simple: sending a stream through
> > rtmp and receive it with
> > a standard technology (HTML5 fir example).
>
> > Thanks,
>
> > Regards.
>
> > On Mar 4, 9:23 am, Giuseppe Sannicandro <giusa...@gmail.com> wrote:
> > > Zakwww.redhostpepper.comhasdone something try to ask info.

Giuseppe Sannicandro

unread,
Mar 8, 2011, 4:57:51 AM3/8/11
to red5in...@googlegroups.com, Zakaria
yes that's the right way in my opinion

2011/3/8 Zakaria <zakari...@gmail.com>

davealma

unread,
Apr 7, 2011, 12:38:26 PM4/7/11
to red5
Got any progress yet, cuze with xuggler I've yet figure it out,when I
try to transform my rtpm video to a nonFlash readable protocol it just
dont work, any more suggestion would be apreciate!!
thanks beforehand!!
Reply all
Reply to author
Forward
0 new messages