Saludos, he instalado el RED5 0.7.1 en centos 5.2 y no tengo problemas al correrlo me conecta y todo, luego instale los ejemplos que vienen en el RED5 para correr el oflaDemo o el SOSample, luego entro al reproductor de video me conecto localhost/oflaDemo o localhost:1935/oflaDemo y se conecta al servidor me aparece
Código:
(169) Connections: false | false
(15060) connected?: true
(16050) NetConnection.onStatus:
fmsVer = RED5/0,7,1,0
capabilities = 31
description = Connection succeeded.
code = NetConnection.Connect.Success
level = status
(16051) catchVideos: [type Function]
(16066) NetConnection.onStatus:
application = org.red5.server.service.ServiceNotFoundException
description = Service not found: demoService
code = NetConnection.Call.Failed
level = error
dentro del directorio SOSample/web-inf tengo los siguientes archivos configurados
red5-web.properties
Código:
webapp.contextPath=/SOSample
webapp.virtualHosts=*, localhost, localhost:5080
red5-web.xml
Código:
<?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>
web.xml
Código:
<?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>SOSample</display-name>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>/SOSample</param-value>
</context-param>
</web-app>
y en red5/conf/red5.properties
esta configurado de la siguiente forma:
Código:
# Socket policy
policy.host=0.0.0.0
policy.port=843
policy.port=443
# HTTP
http.host=0.0.0.0
http.port=5080
https.port=443
# RTMP
rtmp.host=0.0.0.0
rtmp.port=1935
rtmp.event_threads_core=16
rtmp.event_threads_max=64
# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
rtmp.event_threads_queue=0
rtmp.event_threads_keepalive=60
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
rtmp.ping_interval=5000
rtmp.max_inactivity=60000
rtmp.tcp_nodelay=true
# RTMPS
rtmps.host=0.0.0.0
rtmps.port=443
rtmps.ping_interval=5000
rtmps.max_inactivity=60000
# RTMPS Keystore Password
rtmps.keystorepass=password
# RTMPT
rtmpt.host=0.0.0.0
rtmpt.port=8088
rtmpt.ping_interval=5000
rtmpt.max_inactivity=60000
# MRTMP
mrtmp.host=0.0.0.0
mrtmp.server=localhost
mrtmp.port=9035
mrtmp.event_threads_core=4
mrtmp.event_threads_max=32
# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
mrtmp.event_threads_queue=0
mrtmp.event_threads_keepalive=60
mrtmp.send_buffer_size=271360
mrtmp.receive_buffer_size=65536
mrtmp.ping_interval=5000
mrtmp.max_inactivity=60000
mrtmp.tcp_nodelay=true
# Debug proxy (needs to be activated in red5-core.xml)
proxy.source_host=127.0.0.1
proxy.source_port=1936
proxy.destination_host=127.0.0.1
proxy.destination_port=1935
# JMX
jmx.rmi.port.registry=9999
jmx.rmi.port.remoteobjects=
jmx.rmi.host=0.0.0.0
jmx.rmi.ssl=false
jmx.http=false
jmx.http.port=8082
porfavor me podrian ayudar, ay alguna configuracion extra que hacer para que funcione, u otro archivo que no esta configurado. he leido y probado muchas configuraciones pero no me carga los archivos a correr, cada ves que le doy library al ofla_demo, metira este error:
Código:
(16051) catchVideos: [type Function]
(16066) NetConnection.onStatus:
application = org.red5.server.service.ServiceNotFoundException
description = Service not found: demoService
code = NetConnection.Call.Failed
level = error
pero el server si esta en linea.