Results 1 to 3 of 3

Thread: run after start

  1. #1

    Default run after start

    Hi,

    I made the server side program.

    This program should initialize it before the access.

    I want to know a method to run a program after WowzaMediaServer start.

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

    Default

    You can use a serverlistener

    myServerListener.java
    Code:
    package com.lakesidetechnical;
    
    import com.wowza.wms.server.*;
    
    public class ServerPublisherServerListener implements IServerNotify
    {
    	public void onServerCreate(IServer server)
    	{
    		
    	}
    
    	public void onServerInit(IServer server)
    	{
    		// Your init code here.
    	}
    
    	public void onServerShutdownComplete(IServer server)
    	{
    	}
    
    	public void onServerShutdownStart(IServer server)
    	{
    	}
    
    }
    Then, add the server module to wowza_install/conf/Server.xml

    <ServerListeners>
    <ServerListener>
    <BaseClass>com.lakesidetechnical.myServerListene r</BaseClass>
    </ServerListener>
    </ServerListeners>
    Last edited by rrlanham; 04-10-2008 at 11:00 AM.

  3. #3

    Default

    Thank you.

    I was able to program.

Posting Permissions

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