google-code-export / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

RTMPT issue in a network #486

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello Red5 team,

No doubt red5 is a great server but as I am using it, facing some problems 
using it to stream live video from my web camera....

As tomcat is included in this server and its only accessible in local system
as localhost. cant access the server from another computer in the same network.

after doing some search in google i came to know that rtmpt should be used to 
stream with the help of apache http server with proxy config...

this is the guide i followed: 
http://ashwinrayaprolu.wordpress.com/2011/04/04/red5-server-rtmpt-with-apache-as
-webserver-and-flowplayer-configuration/

as mentioned in the guide 
1. added rtmpt.server bean in red5-core.xml
2. added proxy config in apache with mod_proxy enabled
3. added this in my html file as player config
" <script type='text/javascript' src='jwplayer.js'></script>
<b>RTMPT</b>
<div id='mediaspace2'>This text will be replaced</div>
<script type='text/javascript'>
  jwplayer('mediaspace2').setup({
    'flashplayer': 'player.swf',
    'file': 'hobbit_vp6.flv',
    'streamer': 'rtmpt://localhost/oflaDemo',
    'controlbar': 'bottom',
    'width': '848',
    'height': '360'
  });
</script> "

its working in my localhost (local system) but when accessed the same page from 
another pc on the same network its shows " Server not found: 
rtmpt://localhost/oflaDemo "

tried to search this in google from past 3 days but not getting any solution.

It would be great if i get a solution from u.
Please do help me.
Thanx in advance....

This is my proxyconfig in apache httpd.conf

ProxyRequests Off

<Proxy *>
      Order deny,allow
      Allow from localhost # Or whatever your network is if you need an ACL
</Proxy>

ProxyPass /demos http://localhost:5080/demos
ProxyPassReverse /demos http://localhost:5080/demos
ProxyPass /open http://localhost:5080/open
ProxyPassReverse /open http://localhost:5080/open
ProxyPass /send http://localhost:5080/send
ProxyPassReverse /send http://localhost:5080/send
ProxyPass /idle http://localhost:5080/idle
ProxyPassReverse /idle http://localhost:5080/idle
ProxyPass /close http://localhost:5080/close
ProxyPassReverse /close http://localhost:5080/close
ProxyPass /fcs http://localhost:5080/fcs
ProxyPassReverse /fcs http://localhost:5080/fcs

Original issue reported on code.google.com by vishwanathptl on 14 Feb 2014 at 10:59

Attachments:

GoogleCodeExporter commented 9 years ago
Your proxy directives will only work on port 5080; if you enabled the 
rtmpt.server bean then you should be using port 8088 which is specified in your 
red5.properties file: rtmpt.port=8088

Original comment by mondain on 5 Mar 2014 at 4:38