使用red5服务器实时视频流的应用程序 [英] Application for Live video streaming using red5 server

查看:196
本文介绍了使用red5服务器实时视频流的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的 flex &第一次使用 red5服务器。有人可以帮助我在网页上使用red5服务器流式传输实况摄像机。另外如何在ubuntu 11.04上运行的服务器上安装应用程序。

解决方案



首先创建一个闪光灯,在其舞台上显示网络摄像机视频。
然后将Flash嵌入到网页中的div上。

使用代码在屏幕上显示视频并同时将其发布到red5服务器

p>

  _camera = Camera.getCamera(); 
_camera.setMode(320,240,10000);
_camera.setQuality(0,85);
_video = new Video();
_video.x = 0;
_video.y = 0;
_video.height = _height;
_video.width = _width;
_video.attachCamera(_camera);
uiComp.addChild(_video);

_stream = new NetStream(_connection);
_stream.attachCamera(_camera);
_stream.publish(_streamName,live);

然后在网页div中嵌入相同的闪光。您可以看到您的网络摄像头,也可以看到您的流已发布到Red5服务器。



现在,您可以将网络摄像头流式传输到网页上。我已经做了很多次了。
如果您有其他困难,我可以帮助您。

I am new to flex & first time using red5 server. can someone help me in streaming a live cam using red5 server on a web page. Also how to install application on server running on ubuntu 11.04.

解决方案

For streaming Live web cam on Web page.

First create a flash which will display the web cam video on its stage. Then embed the flash onto a div in the web page.

Use the code for showing the video on the screen and simultaneously publishing it to red5 server

    _camera = Camera.getCamera();
    _camera.setMode(320,240,10000);
    _camera.setQuality(0,85);
    _video = new Video();
    _video.x=0;
    _video.y=0;
    _video.height= _height;
    _video.width = _width;
    _video.attachCamera(_camera);
    uiComp.addChild(_video);

    _stream = new NetStream(_connection);
    _stream.attachCamera(_camera);
    _stream.publish(_streamName,"live");

Then embed the same flash to the web page div.You can see your web cam and also your stream is been published to the Red5 server.

Here you go .You can now stream the web cam to the web page.I have done it many times. If you have any other difficulty ,i can help you.

这篇关于使用red5服务器实时视频流的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆