Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Restart Wowza

  1. #11

    Default

    Excellent! Thanks for the update, glad you got this sorted out and happy to help!

    Salvadore

  2. #12

    Default

    You are Welcome!

    I just have one more question Salvadore. When I restart the Wowza streams in the "Live Application" disappear. How do I prevent this from happening?

  3. #13

    Default

    Guilherme,

    I am not sure what you mean, can you please explain exactly what you are doing when this happens, and exactly what is happening.

    Thanks.
    Salvadore

  4. #14

    Default

    Then it happens when I restart the server in Wowza Streaming Engine Manager. All .streams in the live Application disappear. Do i need to configure StartupStreams file? How can I make a startup of a Application like live or vod?

    Thank you too.
    Guilherme.
    Last edited by guinoz; 07-21-2014 at 03:31 PM.

  5. #15
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    HI,
    Yes, correct. You need to configure StartupStreams, guide here, so that the streams are started automatically when the Wowza Streaming Engine is restarted.

    Daren

  6. #16

    Default

    Hey Daren. Thank you for reply.

    Right! And there any method in the Wowza API that with the stream name publishes automatically the stream to come up with the server? Or maybe startup a VHost, Application or Application Instance automatically?

  7. #17
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can start a MediaCaster stream in a ServerListener, which runs when Wowza starts.

    Something like this:

    package test;
    
    import com.wowza.wms.application.IApplicationInstance;
    import com.wowza.wms.logging.*;
    import com.wowza.wms.mediacaster.IMediaCaster;
    import com.wowza.wms.mediacaster.MediaCasterStreamItem;
    import com.wowza.wms.mediacaster.MediaCasterStreamMap;
    import com.wowza.wms.server.*;
    import com.wowza.wms.vhost.IVHost;
    import com.wowza.wms.vhost.VHost;
    import com.wowza.wms.vhost.VHostSingleton;
    
    public class ServerListenerMediaCasterExample implements IServerNotify2 {
    
    	public void onServerInit(IServer server) {
    		WMSLoggerFactory.getLogger(null).info("onServerInit");
    		
    		IVHost vhost = VHostSingleton.getInstance(VHost.VHOST_DEFAULT);
    		
    		IApplicationInstance appInstance = vhost.getApplication("live").getAppInstance("_definst_");
    		
    		MediaCasterStreamMap mediaCasterMap = appInstance.getMediaCasterStreams();
    
    		MediaCasterStreamItem mediaCasterItem = mediaCasterMap.acquire("mystream.stream", "rtp-live");
    				
    	}
    		
    	public void onServerConfigLoaded(IServer server) {
    		WMSLoggerFactory.getLogger(null).info("onServerConfigLoaded");
    	}
    
    	public void onServerCreate(IServer server) {
    		WMSLoggerFactory.getLogger(null).info("onServerCreate");
    	}
    
    	public void onServerShutdownStart(IServer server) {
    		WMSLoggerFactory.getLogger(null).info("onServerShutdownStart");
    	}
    
    	public void onServerShutdownComplete(IServer server) {
    		WMSLoggerFactory.getLogger(null).info("onServerShutdownComplete");
    	}
    
    }
    Richard

  8. #18

    Default

    All right. I'll try here.

    Thank you Richard.

    Best Regards,
    Guilherme.

  9. #19
    Join Date
    Feb 2013
    Posts
    2

    Default

    Are you sure you restarted the stream upon Wowza restart? How are you starting the stream? /conf/StartupStreams.xml or from Stream Manager?

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Wowza restart during nDVR operation
    By cnfcnf in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 12-12-2011, 07:56 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
  •