just basic module instance, no listener etc, but this does only work for rtmp. Yes the PHP stated by the forums I just put those tags around it so it stands out better. I have been told that setShutdownClient(true) is the best way to close a client as well, so this may do what you need.
[php]
package uk.org.shamrock.test;
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 PlayJingle 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() + “/”
}
public void play(IClient client, RequestFunction function, AMFDataList params) {
getLogger().info("Play called for client id was "+client.getClientId());
client.rejectConnection(“Secure connection required.”);
client.setShutdownClient(true);
}
public void onAppStop(IApplicationInstance appInstance) {
String fullname = appInstance.getApplication().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());
}
}
[/php]
Shamrock