Creating live video streams dynamically

♀尐吖头ヾ 提交于 2020-01-16 06:08:07

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/9894195/creating-live-video-streams-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!