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

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

问题描述

我是 flex 的新手 &第一次使用 red5 服务器.有人可以帮助我在网页上使用 red5 服务器流式传输实时摄像头.还有如何在运行 ubuntu 11.04 的服务器上安装应用程序.

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.

首先创建一个 Flash,它将在其舞台上显示网络摄像头视频.然后将 flash 嵌入到网页中的 div 中.

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.

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

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");

然后将相同的 Flash 嵌入网页 div.您可以看到您的网络摄像头,并且您的流已发布到 Red5 服务器.

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天全站免登陆