Results 1 to 3 of 3

Thread: Need help on Wowza web-service over http

  1. #1
    Join Date
    May 2010
    Posts
    3

    Default Need help on Wowza web-service over http

    I have been trying to develop a web-service in Wowza Media Server which should accept the request over http rather than rtmp and respond to the request whether given a client id the stream is live or not, in addition to it I would like to disconnect the client stream if required. Basically I want to call this web-service from my php code.

  2. #2
    Join Date
    Dec 2007
    Posts
    25,645

    Default

    The easiest way is with HTTProvider. Here is an example to get started:
    http://www.wowzamedia.com/forums/showthread.php?t=7200

    If you call an httprovider with querystring "?app=[appName]&id=[clientID]", you can do something like this:

    Code:
    id = Integer.parseInt(params.get("id").get(0));
    app = params.get("app").get(0);
    IApplicationInstance appInstance = vhost.getApplication(app).getAppInstance("_definst_");
    IClient client = appInstance.getClientById(id);
    client.setShutdownClient(true);
    You can add a web service also. This is a .net example you can adapt:
    http://www.wowzamedia.com/forums/showthread.php?t=3646

    Richard
    Last edited by rrlanham; 06-28-2010 at 07:29 AM.

  3. #3
    Join Date
    Dec 2007
    Posts
    25,645

    Default

    I changed the last line of the snip to:
    Code:
    client.setShutdownClient(true);
    Richard

Tags for this Thread

Posting Permissions

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