Hello,
I’d like to create a custom module
I’ve followed the instructions of the Wowza IDE Guide http://www.wowza.com/uploads/developers/WowzaIDE_UsersGuide.pdf and the module compiles and start the server perfectly but… two questions…
-
Why the server don’t start 8088 port for Streaming Engine Manager?
-
Why I don’t get any info in the console or the log files with the following code requesting a live stream?
package com.mycompany.wms.module; import com.wowza.wms.application.*; import com.wowza.wms.amf.*; import com.wowza.wms.client.*; import com.wowza.wms.module.*; import com.wowza.wms.request.*; import com.wowza.wms.stream.*; import com.wowza.wms.rtp.model.*; import com.wowza.wms.httpstreamer.model.*; import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.*; import com.wowza.wms.httpstreamer.smoothstreaming.httpstreamer.*; public class live extends ModuleBase { public void doSomething(IClient client, RequestFunction function, AMFDataList params) { getLogger().info("doSomething"); sendResult(client, params, "Hello Wowza"); } public void onAppStart(IApplicationInstance appInstance) { String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName(); getLogger().info("onAppStart: " + fullname); } public void onAppStop(IApplicationInstance appInstance) { String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName(); getLogger().info("onAppStop: " + fullname); } public void onConnect(IClient client, RequestFunction function, AMFDataList params) { getLogger().info("onConnect: " + client.getClientId()); } public void onConnectAccept(IClient client) { getLogger().info("onConnectAccept: " + client.getClientId()); } public void onConnectReject(IClient client) { getLogger().info("onConnectReject: " + client.getClientId()); } public void onDisconnect(IClient client) { getLogger().info("onDisconnect: " + client.getClientId()); } public void onStreamCreate(IMediaStream stream) { getLogger().info("onStreamCreate: " + stream.getSrc()); } public void onStreamDestroy(IMediaStream stream) { getLogger().info("onStreamDestroy: " + stream.getSrc()); } public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) { getLogger().info("onHTTPSessionCreate: " + httpSession.getSessionId()); } public void onHTTPSessionDestroy(IHTTPStreamerSession httpSession) { getLogger().info("onHTTPSessionDestroy: " + httpSession.getSessionId()); } public void onHTTPCupertinoStreamingSessionCreate( HTTPStreamerSessionCupertino httpSession) { getLogger().info( "onHTTPCupertinoStreamingSessionCreate: " + httpSession.getSessionId()); } public void onHTTPCupertinoStreamingSessionDestroy( HTTPStreamerSessionCupertino httpSession) { getLogger().info( "onHTTPCupertinoStreamingSessionDestroy: " + httpSession.getSessionId()); } public void onHTTPSmoothStreamingSessionCreate( HTTPStreamerSessionSmoothStreamer httpSession) { getLogger().info( "onHTTPSmoothStreamingSessionCreate: " + httpSession.getSessionId()); } public void onHTTPSmoothStreamingSessionDestroy( HTTPStreamerSessionSmoothStreamer httpSession) { getLogger().info( "onHTTPSmoothStreamingSessionDestroy: " + httpSession.getSessionId()); } public void onRTPSessionCreate(RTPSession rtpSession) { getLogger().info("onRTPSessionCreate: " + rtpSession.getSessionId()); } public void onRTPSessionDestroy(RTPSession rtpSession) { getLogger().info("onRTPSessionDestroy: " + rtpSession.getSessionId()); } public void onCall(String handlerName, IClient client, RequestFunction function, AMFDataList params) { getLogger().info("onCall: " + handlerName); } }
Best regards