Results 1 to 6 of 6

Thread: kick live stream ?

  1. #1

    Default kick live stream ?

    i want to kick a stream ?
    example there are 3 streams running on a wowza server 2,
    a,b,c
    i only want to kick stream b without restarting the wowza server how i can do it, by just deleting conf file its not kick still live, i want to proper ban the stream so it cant come back

    any idea ?

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

    Default

    Like this:

    Code:
    IClient client = appInstance.getClientById(id);
    client.shutdownClient();
    Richard

  3. #3

    Default

    Quote Originally Posted by rrlanham View Post
    Like this:

    Code:
    IClient client = appInstance.getClientById(id);
    client.shutdownClient();
    Richard
    what you actually mean by this code i cant understand, please detail

  4. #4
    Join Date
    Dec 2007
    Posts
    25,661

    Default

    Correction:
    Code:
    client.setShutdownClient(true);
    The meaning is that you are shutting down a client at some point after the connection has been accepted. If you did it in onConnect you can do
    Code:
    client.rejectConnection();
    This does not "ban". You will have to have an authentication system to implement ban.
    http://www.wowzamedia.com/forums/showthread.php?t=230

    Richard

  5. #5
    Join Date
    Aug 2010
    Posts
    5

    Default

    Hi there,

    How would I get
    IClient client = appInstance.getClientById(id);
    client id ? Is that ID returned somewhere when client does connect ? For example if I want to store all live streams id's in external storage ?

    Thanks

  6. #6
    Join Date
    Dec 2007
    Posts
    25,661

    Default

    You can get ClientID for a connection in onConnect:

    Code:
    public void onConnect(IClient client, RequestFunction function,
    		AMFDataList params) {
    	
    	getLogger().info("ClientID: " + client.getClientId());
    }
    Richard

Posting Permissions

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