CRTMPSERVER behind proxy

461 views
Skip to first unread message

jszczepankiewicz

unread,
Nov 25, 2011, 5:53:36 AM11/25/11
to C++ RTMP Server
Hi,

I am trying to run crtmpserver streaming f4v stream from file behind
apache running on port 80. Flash client should see rtmpt. I have no
problem with rtmp on 1935 directly connnected from flash player to
crtmpserver. But using solutions that should work for wowza / red5
does not work for me. My apache virtual host configuration is as:

--------------------------------------------------------------

<VirtualHost *:80>

ServerName xxx.pl
ServerAlias xxx.pl

# needed for named virtual hosts
UseCanonicalName Off


ProxyPass /open http://127.0.0.1:8088/open
ProxyPassReverse /open http://127.0.0.1:8088/open
ProxyPass /send http://127.0.0.1:8088/send
ProxyPassReverse /send http://127.0.0.1:8088/send
ProxyPass /idle http://127.0.0.1:8088/idle
ProxyPassReverse /idle http://127.0.0.1:8088/idle
ProxyPass /close http://127.0.0.1:8088/close
ProxyPassReverse /close http://127.0.0.1:8088/close
ProxyPass /fcs http://127.0.0.1:8088/fcs
ProxyPassReverse /fcs http://127.0.0.1:8088/fcs


</VirtualHost>
-------------------------------------------------------------------------

and i have the following ports on crtmpt
127.0.0.1:1936 - inboundRtmp (this is intentionally changed to 1936 in
order to make sure that the flash player does not use 1935 but tries
to fallback to 80 port)
127.0.0.1:8088 - inboundRtmpt

I have two flash players with urls:
rtmpt://myapachedomain:80/flvplayback
rtmp://myapachedomain/flvplayback

both claims error: application (flvplayback) not defined

if I change the port in crtmpserver to 1936 (for inboundRtmp) and ip
to
and change the urls in flash client to:
rtmp://myapachedomain/flvplayback
rtmp://myapachedomain/flvplayback

It seems that the communication between apache and crtmpserver is some
broken, on the console there is something like:
Client connected 127.0.0.1:37139 -> 0.0.0.0:8088
and below i again client connection (with different source port)
althrough I have only one flash player connecting to server
Client connected 127.0.0.1:37140 -> 0.0.0.0:8088

Could someone share knowledge of running rtmpt behind apache?
Thanks in advance

both urls works ok.

C++ RTMP Server

unread,
Nov 27, 2011, 6:02:47 PM11/27/11
to c-rtmp...@googlegroups.com
Hi,

I have no knowledge of what it might go wrong because I never tried it like that. I will try it as soon as I have some time.

But, right from the very beginning, let me tell you that VOD over RTMPT is not properly implemented and I don't think it will ever be.


See my explanation here:
http://groups.google.com/group/c-rtmp-server/browse_thread/thread/ab7efa7cb7b5155d/923d4925d83e46cf?lnk=gst&q=RTMPT+VOD#923d4925d83e46cf

Cheers,
Andrei

> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

jszczepankiewicz

unread,
Nov 28, 2011, 8:14:38 AM11/28/11
to C++ RTMP Server
Hi,
thanks for the answer. I confirm that this problem is about lack of
support for vod over RTMPT :(. Direct connection to crtmptserver on
port 80 does the same behaviour as being proxied by apache. It is very
bad news for me. RTMP works here like a charm with lightning fast seek
and was ideal solution for streaming. But for my usage I have to have
fallback on port 80 because viewers are often after firewalls. I will
try to use crtmpserver on 1935 and red5 for rtmpt on port 80. I hope
you will change the way rtmpt is implemented and you will have the
best open source solution for streaming.
regards,
jarek
Reply all
Reply to author
Forward
0 new messages