我無法用Red5服務器創建我的應用程序。我有一個錯誤Red5。沒有範圍與我的項目
NetConnection.Connect.Rejected: No scope 'TestEcho' on this server.
NetConnection.Connect.Closed
我做了類似ping應用程序來測試一切工作正常。我的階級是這樣的:
package org.red5.core;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.service.ServiceUtils;
public class Application extends ApplicationAdapter {
public void appDisconnect(IConnection conn)
{
super.appDisconnect(conn);
}
public boolean appStart()
{
return true;
}
public void appStop()
{}
public boolean appConnect(IConnection conn, Object[] params)
{
return true;
}
public Object echo(Object p)
{
return p;
}
}
我也有RED5-web.xml和red5-web.properties
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!--
Defines a properties file for dereferencing variables
-->
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="/WEB-INF/red5-web.properties" />
</bean>
<!--
Defines the web context
-->
<bean id="web.context" class="org.red5.server.Context"
autowire="byType" />
<!--
Defines the web scopes
-->
<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>
<!--
Defines the web handler which acts as an applications endpoint
-->
<bean id="web.handler"
class="org.red5.core.Application"
singleton="true" />
</beans>
而且
webapp.contextPath=/TestEcho
webapp.virtualHosts=127.0.0.1
所以,這是奇怪,但在迴音演示應用程序我無法連接到rtmp:// localhost:1935/TestEcho 而我想要注意的是演示應用程序很好用,例如,oflaDemo。問題在哪裏?......
文件名?另一個-1 – David 2013-02-17 06:47:14