Skip to main content
April 29, 2011
Answered

FMS / Apache / HTTP Interaction

  • April 29, 2011
  • 1 reply
  • 1193 views

Im building some prototype applications and i'm a bit lost on how i can let my FMS server interact with some other webservers: because i'd like to use a secondary LAMP stack to have http-based interaction with FMS.

Letting the FMS do a basic LoadVars, XML or SOAP request to the control-server is easy. But what are the options on letting the control-server connect to the FMS? Like for example if i'd wanted to poll FMS on the amount of clients its serving?

I'm digging through the manual but i see no APIs to receive that kind of request, everything is outbound. So im hoping the apache that comes with FMS can do it.. but how?

Otherwise I guess im missing something here. Can you send data to a NetConnection from PHP based socket?

All help and tips are welcome,

B.

(also: I did read http://forums.adobe.com/thread/839010 - FMS & Apache/PHP Communication but thats about port/routing issues)

    This topic has been closed for replies.
    Correct answer Nikhil_Kalyan

    Thanks for your replies.

    Yea, lets not be afraid. I think i can make this work by splitting the webserver into a public part and a seperate control server and then setting up domain zones with IP and port filters and some added autentication. Then the applications can accept broadcastmessage()-es from the control. It might need some added wrapping but it looks promising.

    Maybe i could make a seperate control-application and interlink it with the others (over local NetStream or SO), this so i can block the admin api from the others using the xml-configs. What do you think?


    Perfect !

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    April 29, 2011

    Hi,

    Did you take a look at the administration APIs that FMS exposes ?

    You can take a look at the reference guide @ http://help.adobe.com/en_US/flashmediaserver/adminapi/WS5b3ccc516d4fbf351e63e3d11a0d3ed999-7eb5.html

    The admin APIs on the FMS allows us to poll it with any frequency to get all the stats that we ever require from FMS viz, number of clients/connections/subscribers/streams etc.

    Please let us know if this is not what you are looking for.


    Thank you !

    April 29, 2011

    Hi,

    What i'd like is to be able to call or send arbitrary data (like  application-level control messages, user-data etc) to a specific FMS  application.

    I checked the administration API's and they cover a lot of what i was looking for regarding stats and server management. And upon re-reading it just now i did see some possibilities in the broadcastMessage function called over http, but that seems a bit brutishly basic but gives at least some foothold, although the security manual advises against enabling the admin API on production servers (which seems a bit odd, since it great for automation).

    Are there any other options? I was hoping on some clever apache intereraction or something.

    Nikhil_Kalyan
    Participating Frequently
    April 29, 2011

    Hi,

    Specific data to an application on FMS ? I don't think that is allowed by FMS.

    Neither the Apache that is bundled with FMS gives any extra options on FMS to use. Its a vanila Apache bundled along with FMS (though the new found HTTP Dynamic Streaming takes a lot of help ) for web applications and not for FMS extensions as such.

    So, your options confine to the Admin APs and the web services that FMS exposes.

    The security considerations for the admin APIs are to be taken care of (as any one can now hit your server on the admin ports) and are not meant for hindering you to use it . Genereally it is recommended to open Admin APIs within your domain/intranet and not to the public.

    Thank you !