Skip to main content
March 31, 2011
Question

fmscheck passing token

  • March 31, 2011
  • 1 reply
  • 542 views

rtmp connect takes a token. My connect looks like below.

connect(server,"123456789");

Using fmscheck I am not able to pass token in the query string so that in my connect I can access the token.

How would I use fmscheck to pass a token so that my connect so that onConnect will have a token.

application.onConnect = function(new_client,token) //  token -> 123456789

{

}

Thanks

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 1, 2011

    Are you saying you are not able to pass query string?

    I mean you can pass it this way : rtmp://serverip/appName/instName?token=123456789 - are you saying this is not working?

    Once you pass query string - you can access it in server-side code using Client.uri

    April 1, 2011

    On the server side.

    application.onConnect = function(client,token)

    {

    // use the authentication token that got passed

    }

    On the client side - i pass the token as parameter.

    connect(servername,"123456768");

    Using fmscheck I could not pass the token as argument of connect.

    I don't have complete understanding how it is different from passsing token

    as argument vs query string fmscheck needs.

    Thanks

    Participating Frequently
    April 1, 2011

    I am not sure if fmscheck allows passing arguments to connect method - i will check on that front and if it does and you think it needs to there - i will see if i can raise ER on behalf of you. Hope that helps