Thanks Paul.

With jetty and tomcat, wars that are named ROOT are supposed to take over the 
default context for the server the "/" if you will (this should allow RTMPT to 
work as expected). 


When use rtmpt,I have to deploy the war as the root context.



----- Original Message ----- 
From: Lenny Sorey 
To: red5 
Sent: 2007-08-22, 19:02:43
Subject: Re: [Red5] rtmpt not working on war version


OK, I am trying to remember if Tomcat / RED5 started to use rtmpt when I 
combined
Tomcat / Apache via mod_jk

You can see rtmpt in action at http://red5.fatdot.com

This website is running the following:

RED5 - Trunk 2228
Tomcat 6.0.13
Java 1.6_2
Apache 2.2.4
PHP 5.2.3
MySQl 5.0.47

Regards,

Lenny



 
On 8/21/07, yuanyc <[EMAIL PROTECTED]> wrote: 
Thanks for help,but the rtmpt can not work too. 

server.xml
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75" 
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value 
     to 0 -->


red5.properties

# HTTP
http.host=0.0.0.0
http.port=8080
# RTMP
rtmp.host=0.0.0.0
rtmp.port=1935
rtmp.event_threads_core=16
rtmp.event_threads_max=32
# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue 
rtmp.event_threads_queue=-1 
rtmp.event_threads_keepalive=60
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
rtmp.ping_interval=5000
rtmp.max_inactivity=60000
# RTMPT
rtmpt.host=0.0.0.0 
rtmpt.port=8080
rtmpt.ping_interval=5000
rtmpt.max_inactivity=60000
# WEBAPP
webapp.contextPath=/
webapp.virtualHosts=*,localhost, localhost:8080, 127.0.0.1:8080

ofla-context.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
       xmlns:lang="http://www.springframework.org/schema/lang";
       xsi:schemaLocation=" http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                           http://www.springframework.org/schema/lang 
http://www.springframework.org/schema/lang/spring-lang-2.0.xsd ">
 <!-- oflaDemo -->
 <bean id="ofla.context" class="org.red5.server.Context" 
  autowire="byType" />
  
 <bean id="ofla.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="ofla.context" />
  <property name="handler" ref="ofla.handler" />
  <property name="contextPath" value="/oflaDemo" /> 
  <property name="virtualHosts"
   value="*,localhost, localhost:8080, 127.0.0.1:8080" />   
 </bean>
 <bean id="ofla.handler" 
     class="org.red5.server.webapp.oflaDemo.Application" />
    <bean id="demoService.service" 
     class="org.red5.server.webapp.oflaDemo.DemoService" />

</beans>
----- Original Message ----- 
From: Lenny Sorey 
To: red5 
Sent: 2007-08-21, 19:28:16
Subject: Re: [Red5] rtmpt not working on war version

 
You need to change rtmpt port reference from  port 8088 to port 8080
in the red5.properties files located in the WEB-INF folder.

This will allow Tomcat to stream via rtmpt.

Tomcat is not configured for port 8088 by default unless you change a reference 
in the server.xml file.

Regards,

Lenny

 
On 8/21/07, yuanyc <[EMAIL PROTECTED] > wrote: 
I check out the latest version from svn,and compile success war version,and 
deploy it to the tomcat5.5.23. 
I can connect to rtmp://localhost/oflaDemo,
but I can not connect to rtmpt://localhost:8088/oflaDemo.

anyone can help?
thanks.

tom
2007-08-21
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org


 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to