Results 1 to 7 of 7

Thread: HTTPProvider that returns detail server info per application

  1. #1

    Default HTTPProvider that returns detail server info per application

    http://[wowza-address]:8086/serverinfo - what can I change in the source code listed in http://www.wowza.com/forums/content.php?182 to only show data of a specific application?

    This?

    import com.wowza.wms.application.NAMEOFAPPLICATION;

    Have you not a resumed code where I can pass the application name by a get variable and only list a per application serverinfo?

  2. #2

    Default

    Hi del-mt,

    You can edit the module to accept HTTP parameters using:
    Map<String, List<String>> params = req.getParameterMap();

    There's an example using this here:
    http://www.wowza.com/forums/showthre...rding-Instance

    If you want to edit this module to only show info about a specific application, the part you're concerned with is:
    String applicationName = appNameIterator.next();

    You'll want to set that to the value of the App Name that you pass in on the URL.

  3. #3

    Default

    I made that changes in original serverinfo code:

    added:

    Map<String, List<String>> params = req.getParameterMap();
    String app = "";
    if (params.containsKey("app"))
    {
    app = params.get("app").get(0);
    }else
    {
    report +="<BR>" + "app is required";
    }

    CHANGED:

    FROM: String applicationName = appNameIterator.next();
    TO: String applicationName = app;

    But I think this is not the right sets, because the code not works after that changes...

    I want call the httpprovider from this way:

    http://localhost:8086/teste?app=teste

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

    Default

    Take a look at this example:

    http://www.wowza.com/forums/content....post-variables

    Richard

  5. #5

    Default

    have not a way to that serverinfo show too the ips connecteds from rtsp connections? because it seems only to show more informations from flash player listeners....

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

    Default

    What version of Wowza are you using? serverinfo has been updated in recent versions. Try 3.0.5
    http://www.wowza.com/forums/content....oduction-Build

    Also, connectioncounts has more of that kind of detail, maybe that is what you are looking for.

    Richard

  7. #7

    Default

    I tested a 3.0.3 version.... I will see that new version.

Posting Permissions

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