Red5 webapp配置
生活随笔
收集整理的這篇文章主要介紹了
Red5 webapp配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
例:MyStream應用程序
訪問地址:rtmp://localhost/MyStream
webapps/MyStream/WEB-INF/red5-web.properties
webapp.contextPath=/MyStream webapp.virtualHosts=*, localhost, localhost:8088, 127.0.0.1:8088webapps/MyStream/WEB-INF/red5-web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="/WEB-INF/red5-web.properties" /> </bean> <bean id="web.context" class="org.red5.server.Context"? autowire="byType" /> <bean id="web.scope" class="org.red5.server.WebScope" init-method="register"> <property name="server" ref="red5.server" /> <property name="parent" ref="global.scope" /> <property name="context" ref="web.context" /> <property name="handler" ref="web.handler" /> <property name="contextPath" value="${webapp.contextPath}" /> <property name="virtualHosts" value="${webapp.virtualHosts}" /> </bean>
<bean id="web.handler"? class="org.red5.server.adapter.ApplicationAdapter"? singleton="true" />
</beans>
webapps/MyStream/WEB-INF/web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <web-app? xmlns="http://java.sun.com/xml/ns/j2ee"? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"? version="2.4">?
<display-name>MyStream</display-name> <context-param> <param-name>webAppRootKey</param-name> <param-value>/MyStream</param-value> </context-param>
</web-app>
總結
以上是生活随笔為你收集整理的Red5 webapp配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: greenplum gpfdist应用
- 下一篇: JavaScript笔记(3)