Skip to main content
February 16, 2011
Question

RTMFP vs. RTMP for data application

  • February 16, 2011
  • 1 reply
  • 660 views

I have a scenario and I'm trying to determine which is the best protocol to use.

We have a server running FMS 4.

We want 1-50 'admin' client connections to the 'admin' application on the FMS

We want 50-10000 'user' client connections to the 'participant' application on the FMS.

The interactions would be limited to 1 admin -> 1 user at a time, however each admin would want to be fully aware of each users current status within our application.

Currently I am doing the following:

In the admin fms application, on app start I create a proxy connection to the participant fms application which adds a connection callback of 'receiveClientMessage and listen to a SharedObject.

When each admin connects to the admin app, I register a callback on the connection of 'sendClientMessage', and the flash client listens to the SharedObject reference that was created on appstart.

When a user connects to the participant app on the fms, I add a user entry to the SharedObject

The admin flash client is notified of the change to the SO and a user list updates, making all the user statuses available to the admin, who can then initiate the 1 -> 1 communication. The admin client calls the admin app on the fms to 'sendClientMessage' with a client id and message. The admin app uses the proxy connection to invoke 'receiveClientMessage' on the participant app, which finds the client connection with the id and invokes .call('receiveClientMessage'...) on the user flash client.

I feel like this is not very efficient, however I do want to maintain two seperate applications for security purposes, so the proxy connection is a neccessity I think.

Is there a way I can send a message from an admin client to a user client without going through the FMS? Would it be smarter to have the admin clients load a user list on connect, and receive 'onUserConnect', 'onUserDisconnect' callbacks to handle updating the list?

Also, what would be the best use of RTMP vs RMTFP in this scenario?

I would GREATLY appreciate any input on this, as it's pretty tough to find good examples and use-cases of this technology.

Thanks!!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    February 18, 2011

    Sorry i did not go through your post in details but can you check if broadcastMsg() Admin API solves your problem, you can check the doc here

    http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d12388431df580a12a34991ebc-8000.html#WS08B86469-9044-4e4d-9859-977D31EDAA86