动态创建实时视频流 [英] Creating live video streams dynamically

查看:149
本文介绍了动态创建实时视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我熟悉在Adobe Flash Media Server上发布/订阅预定义的实时视频供稿. 我如何允许用户动态创建新的流?意思是,用户无需提供固定的供稿,而是单击创建供稿",输入名称,然后任何人都可以发布/订阅该供稿.提要.

我不是在寻找源代码(尽管显然这会很好).而是,我想了解我需要做一个高层次的工作才能使它工作.

解决方案

回答我自己的问题:

还有一个名为 Wowza 的备用服务器,它使您可以与Adobe Flash Media Server进行相同的操作服务器端代码是用Java而不是Actionscript或Flex编写的.

动态创建新流(实际上是聊天室)就像创建一个新目录[wowza]/conf/[application-name]并用您可以随时生成的Application.xml填充目录一样简单(Application.xml在其常规手册中进行了描述). /p>

换句话说,您客户端只是通过请求访问您的Web服务器,该请求创建了上述配置文件,然后客户端可以自由发布/订阅刚创建的新房间的视频流.

有关更多信息,请参见用户手册第37页(应用程序和应用程序"部分实例").

应用程序配置在Application.xml文件中定义.当一个应用程序实例 加载后,它将在以下位置查找Application.xml文件(其中[application]是 应用程序名称):

[install-dir]/conf/[application]/Application.xml
[install-dir]/conf/Application.xml

使用找到的第一个Application.xml文件.

I'm familiar with publishing/subscribing to predefined live video feeds on Adobe Flash Media Server. How can I allow users to create new streams dynamically? Meaning, instead of providing fixed feeds, users click on "Create Feed", enter a name, and then anyone would be able to publish/subscribe to that feed.

I'm not looking for a source-code (though obviously that would be nice). Rather, I'd like to understand what I need to do a high-level to get this to work.

解决方案

Answering my own question:

There is an alternative server called Wowza that lets you do the same thing as Adobe Flash Media Server except that server-side code is written in Java instead of Actionscript or Flex.

Creating new streams (actually chat rooms) dynamically is as simple as creating a new directory [wowza]/conf/[application-name] and populating it with Application.xml which you can generate on the fly (Application.xml is described by their usual manual).

In other words, you a client simply hits your web server with a request, the request creates the aforementioned configuration files and the client is then free to publish/subscribe to video streams off the new room you just created.

For more information, see the User Manual page 37 (section "Applications and Application Instances").

Application configuration is defined in an Application.xml file. When an application instance is loaded, it looks in the following locations for an Application.xml file (where [application] is the application name):

[install-dir]/conf/[application]/Application.xml
[install-dir]/conf/Application.xml

The first Application.xml file that's found is used.

这篇关于动态创建实时视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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