Skip to main content
Participating Frequently
March 26, 2010
Question

flash media server with sun webserver

  • March 26, 2010
  • 2 replies
  • 2713 views

Hi,

I have a application which will record the user voice using flash media server 3.5. My application and flash media servers are in two different servers. I am using sun java webserver to serve my website, is there any plugin or way to communicate the fms via webserver? can i you reverse proxy plugin to proxy the request from flash client to fms server via sun webserver? like below example?

<Object name="flash">
#ObjectType fn="check-passthrough" type="magnus-internal/passthrough"
Service fn="service-passthrough" servers="http://<fms server ip>:1935"

</Object>

Another question is, why do we need apache installed along with fms what is the purpose of apache? can i just install the fms standalone listining on 1935 and use reverse proxy plugin to proxy the request from client to fms server?

One more, when i do rtmpt, the client will directly hit the http://fms:80? or

Thanks

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    April 6, 2010

    In order to see where this huge time is going on, we can have logging in the webserver and FMS to see when the connection are coming.

    By this we would figure out where the time is going.

    Participating Frequently
    April 8, 2010

    Thanks for your sugession, i actually captured the logs when i my flash client communicate with FMS via webserver and  i observed that when i click record button on flashplayer i saw the request in webserver access logs right away,but it took more than 30s to make connection with fms . below is the sample logs from webserver and fms. One more thing, it is actually behaving differently in IE and FF browsers, in IE it took more time than FireFox

    Webserver logs

    xx.xx.xx.xx - - [07/Apr/2010:04:17:32 +0000] "POST /fcs/ident2 HTTP/1.1" 200 13 ( this is the first request when i click the record button in flashplayer)
    xx.xx.xx.xx.- - [07/Apr/2010:04:21:02 +0000] "POST /open/1 HTTP/1.1" 200 17     (this is the next request when flash player connect to FMS)

    FMS access log:

    connect-pending session 2010-04-07      04:21:02        GMT  ( this is the request from webserver to FMS when flashplayer made connection)

    Also my FMS is only listining on port 1935

    ADAPTOR.HOSTPORT = :1935

    also i disable the http proxy

    HTTPPROXY.HOST =

    Please advice if any config changes necessary to FMS server

    Participating Frequently
    April 9, 2010

    Sorry i did not get time to look at your query today, can you add 80 to ADAPTOR.HOSTPORT i.e. ADAPTOR.HOSTPORT = :1935,80 and see if you get same issue.

    Participating Frequently
    March 29, 2010

    ganap wrote:

    Hi,

    I have a application which will record the user voice using flash media server 3.5. My application and flash media servers are in two different servers. I am using sun java webserver to serve my website, is there any plugin or way to communicate the fms via webserver? can i you reverse proxy plugin to proxy the request from flash client to fms server via sun webserver? like below example?

    <Object name="flash">
    #ObjectType fn="check-passthrough" type="magnus-internal/passthrough"
    Service fn="service-passthrough" servers="http://<fms server ip>:1935"

    </Object>

    Any specific reason why you want to proxy request from flash client to fms server via sun webserver - i mean why do you want to do it at first place or I am not getting your question right. I have not tried it but I suppose you can configure http requests to external server. Can you check documentation related to HttpProxy tag in Adaptor.xml.

    Another question is, why do we need apache installed along with fms what is the purpose of apache? can i just install the fms standalone listining on 1935 and use reverse proxy plugin to proxy the request from client to fms server?

    You need not install Apache when you install FMS. You can install it as Standalone.

    One more, when i do rtmpt, the client will directly hit the http://fms:80? or

    What do you mean by client directly hitting http://fms:80? Sure the rtmp packet wrapped in http will come to fms:80 , but it would be processed as rtmp packet and not http packet.

    Participating Frequently
    March 29, 2010

    Thanks for your quick reply,

    Thing is  i have a application running on one server and we are using the iplanet webserver infront of application server to be accessable from publick internet, when user try to access  the webserver URL first it will go o the webserver and from then we are proxying  the request to respected server/application  based on the URI, when we click on embeded flashplayer to record the voice, the webserver will send this request to the fms server ( i am using reverse proxy plugin for iplanet to proxy the request to fms server as i mentioned before). Now my problem is it is actyally taking 5 to 6 sec to make a connection to fms server from internal private network, but when i try to do the same from public internet it is actually taking 30+ sec to make a connection, i am wondering do you have any idea about this issue.

    Thanks

    Ganap

    Participating Frequently
    March 30, 2010

    HI Ganap,

    I have never tried such scenario so do not have much clue but before we investigate further on it, i want to understand why you want to proxy your flash player requests via web server - why are you not allowing them to directly connect to FMS? I mean is it any security implications you are worried about and if yes what are they?