Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Passing Additional Param to Origin from Edge

  1. #1
    Join Date
    Jun 2013
    Posts
    11

    Smile Passing Additional Param to Origin from Edge

    Hi,

    I am looking following help from here.

    Our Origin server behind the secure protected server , so when ever edge connect with origin just getting proxy server ip instead of edge ip. We have limitation module by IP on Origin server and added all edges ip to the list. So that only edge can connect with origin.

    I have tried following way to pass edge ip to origin on play method

    public void play(IClient client, RequestFunction function,
    ---------

    AMFDataList customDataList = new AMFDataList();
    customDataList.add("play");
    customDataList.add(0.0);
    customDataList.add("null");
    customDataList.add(data[0]);
    customDataList.add(new AMFDataItem(edgeServerIp)); // start
    customDataList.add(new AMFDataItem(encodeName)); //duration
    invokePrevious(this, client, function, customDataList);
    customDataList.set(PARAM1, new AMFDataItem(data[0]));
    customDataList.set(PARAM2, new AMFDataItem(edgeServerIp));
    customDataList.set(PARAM3, new AMFDataItem(encodeName));
    invokePrevious(this, client, function, customDataList);
    -----

    }

    and tried following loop on Origin play to list params from Origin , but only getting play , 0.0, null and streamname

    for(int i=0;i<params.size();i++){
    getLogger().info("Param " + i + " = " + params.getString(i));
    }

    2013-06-12 00:29:35 EDT comment server INFO 200 - Param 0 = play - - - 881.269 - - - - - - - - - -- - - - - - - - - - - - - - -
    2013-06-12 00:29:35 EDT comment server INFO 200 - Param 1 = 0.0 - - - 881.269 - - - - - - - - - -- - - - - - - - - - - - - - -
    2013-06-12 00:29:35 EDT comment server INFO 200 - Param 2 = null - - - 881.269 - - - - - - - - - -- - - - - - - - - - - - - - -
    2013-06-12 00:29:35 EDT comment server INFO 200 - Param 3 = teststreamname - - - 881.27 - - - - - - - - - -- - - - - - - - - - - - - - -

    Please suggest me how can I achieve it?

    Thanks
    Siva

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Siva,

    What are you trying to do, exactly? What you are showing involves video on demand streaming, not live streaming.d

    Richard

  3. #3
    Join Date
    Jun 2013
    Posts
    11

    Default

    Hi

    This is for live streaming i need to pass edge ip and encoded string value to origin using params when ever edge connect to origin


    Thanks
    Siva

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Siva,

    You can set data in the edge Application.xml /Repeater /QueryString. This will be passed to the origin in a querystring when it first connects to the origin, only.

    Richard

  5. #5
    Join Date
    Jun 2013
    Posts
    11

    Default

    Hi Richard,

    Thanks for the suggestions. Query String may be final way if there is nothing we can it.

    Is there any way to get Edge Properties when it request Play on Origin? instead of querystring get value from properties will be good way we feel.

    Thanks
    Siva

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    There is quite a bit of info in the NetConnection that the edge makes to the origin. Add a Module with an onConnect method to the origin and take a look at the client object. It is stuffed full of info

    Richard

  7. #7
    Join Date
    Jun 2013
    Posts
    11

    Default

    Hi,

    As far as I have checked all the values in client object couldn't find anything

    if you have any more ideas please let me know

    Thanks
    Siva

  8. #8
    Join Date
    Jun 2013
    Posts
    11

    Default

    Hi,

    Can you any one help me on this , still we are facing problem.

    After add IP in query string can able to get it on Origin , but our origin stream being re-streamed

    We cant use RTMPE on this case , just to want to pass param from edge to origin hidden way

    Thanks
    Siva

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Siva,

    I see what are trying to do now. Take a look at the Securing the Origin section of the Live Stream Repeater guide

    Richard

  10. #10
    Join Date
    Jun 2013
    Posts
    11

    Default

    Hi Richard,

    Thanks for the response.

    We are already using ModuleSecureToken , can you say difference between ModuleRTMPAuthenticate and ModuleSecureToken. Which one exactly suit our case.

    Thanks
    Siva

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 10-10-2013, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •