Skip to main content
Participant
September 30, 2009
Question

How to limit who can stream live

  • September 30, 2009
  • 2 replies
  • 1125 views

Please forgive me if this question has been asked. I have looked everywhere and I'm just not finding the answer.

I'm running the Interactive Flash server 3 and I'm wondering is there a way to give people a user & password to limit who can live stream into the server.

I can do this with the Real server and Windows media fairly easily but having problems figuring out how to on the flash server.

Currently if you have the Servers IP and the flash encoder you can stream with no Username or password required. I would like to restrict this.

Thank you,

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    October 12, 2009

    Hi, i made the same question some while ago. But how do i access a database of users/passwords? can you give me a sample code?

    Thanks

    October 13, 2009

    You can't access a database directly from FMS. You'll need an HTTP webservice as an intermediary.

    The FMS application will call out to the webservice using one of the LoadVars, NetServices, XML, or XMLSocket classes. The best one to use depends on the webservice you'll develop. I tend to use PHP on the HTTP side, so my personal preference is AMFPHP and the NetServices class.

    September 30, 2009

    I like to handle authentication with server side actionscript and query string variables.

    It goes like this:

    1. Credentials are passed to the server as query variables (ex rtmp://myserver.com/myapp/myinstance?user=bob&password=12345

    2. On the server side, I pull the variables out of the query string (inspecting the client.uri property), and pass them to a webservice. I like to use Remoting and NetServices, but you could just as well use any other type of HTTP service.

    3. The webservice validates the credentials, and returns a success or failure message

    4. The FMS app accepts or rejects the connection accordingly.

    Alternately, you can use the FMS authentication addin, or you can write a C+ plugin to handle authentication.