Package com.wowza.wms.module
Class ModuleCore
- Object
- 
- com.wowza.wms.module.ModuleBase
- 
- com.wowza.wms.module.ModuleCore
 
 
- 
 public class ModuleCore extends ModuleBase ModuleCore includes all the basic commands support by the NetStream and NetConnection client side objects. Any of these methods can be overwritten in a custom module. Below is an example of custom module that overrides the play method to modify the name of the file to be played: package com.wowza.wms.plugin.overrideexample; import com.wowza.wms.amf.*; import com.wowza.wms.client.*; import com.wowza.wms.module.*; import com.wowza.wms.request.*; public class ModuleOverrideExample extends ModuleBase { public void play(IClient client, RequestFunction function, AMFDataList params) { if (params.get(PARAM1).getType() == AMFData.DATA_TYPE_STRING) { String playName = params.getString(PARAM1); params.set(PARAM1, new AMFDataItem(playName+"_newname")); } this.invokePrevious(client, function, params); } }
- 
- 
Field Summary- 
Fields inherited from class com.wowza.wms.module.ModuleBaseCALLBACK_PARAM1, CALLBACK_PARAM10, CALLBACK_PARAM2, CALLBACK_PARAM3, CALLBACK_PARAM4, CALLBACK_PARAM5, CALLBACK_PARAM6, CALLBACK_PARAM7, CALLBACK_PARAM8, CALLBACK_PARAM9, PARAM1, PARAM10, PARAM2, PARAM3, PARAM4, PARAM5, PARAM6, PARAM7, PARAM8, PARAM9, PARAMMETHODNAME, PLAYTRANSITION_APPEND, PLAYTRANSITION_APPEND_IMMEDIATE, PLAYTRANSITION_RESET, PLAYTRANSITION_RESET_IMMEDIATE, PLAYTRANSITION_STOP, PLAYTRANSITION_SWAP, PLAYTRANSITION_SWITCH, PLAYTRANSITION_UNKNOWN, PLAYTRANSITIONSTR_APPEND, PLAYTRANSITIONSTR_RESET, PLAYTRANSITIONSTR_STOP, PLAYTRANSITIONSTR_SWAP, PLAYTRANSITIONSTR_SWITCH, PLAYTRANSITIONSTR_UNKNOWN
 
- 
 - 
Constructor SummaryConstructors Constructor Description ModuleCore()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcloseStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.close();static voidcreateStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Create new server side NetStream object (internal to Flash workings).static voiddeleteStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Delete server side stream object (internal to Flash workings).static voidFCPublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)FCPublish method called by FME 2.5static voidFCSubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)FCSubscribe subscribes to a live stream (if origin edge will start the stream from the origin to the edge)static voidFCUnpublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidFCUnPublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)FCUnpublish method called by FME 2.5static voidFCUnsubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)FCUnSubscribe to a live streamstatic voidFCUnSubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidgetClientID(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the clientId for a client connection NetConnection.call("getClientID", resultObj);static voidgetLastStreamId(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the id for the last created stream NetConnection.call("getLastStreamId", resultObj);static voidgetLiveStreamPacketizer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the live stream packetizer list for a client connection NetConnection.call("getLiveStreamPacketizer", resultObj);static voidgetMediaList(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidgetPageUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)getPageUrl returns the pageUrl from the onConnect metadatastatic voidgetReferrer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)getReferrer returns the referrer from the onConnect metadatastatic voidgetRepeaterOriginUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the Repeater Origin URL for this clientvoidgetStreamBitrate(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get stream bitrate in bits-per-second for a video on demand stream (will not work for live).static voidgetStreamLength(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get stream length in seconds NetConnection.call("getStreamLength", resultObj, streamName); If you pass in an array of streamNames it will return an array of durations.static voidgetStreamType(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the default stream type for a client connection NetConnection.call("getStreamType", resultObj);static voidgetVersion(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Get the Wowza Pro server version and build number NetConnection.call("getVersion", resultObj);static voidinitLiveStreamRepeating(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Initialize a stream for live stream repeatingstatic voidinitStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Create new server side NetStream object (internal to Flash workings).static voidpause(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.pause([ flag : Boolean]);static voidpauseRaw(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)pauseRaw method introduced in Flash player 10static voidplay(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.play(name : Object [,start : Number[, len : Number[, reset : Object]]]);static voidplay2(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.play(playOptions : NetStreamPlayOptions);static voidpublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.publish(name : String [, howToPublish : String]);static voidreceiveAudio(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.receiveAudio(receive : Boolean);static voidreceiveVideo(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.receiveVideo(receive : Boolean | FPS : Number); FPS does not work the same as FMS.static voidreleaseStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidseek(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.seek(offset : Number);static voidsetBandwidthLimit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidsetBufferTime(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Server side implementation of NetStream.setBufferTime(bufferTime : Number);static voidsetLiveStreamPacketizer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Set the live stream packetizer for a streamstatic voidsetRepeaterOriginUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Set the Repeater Origin URL for this clientstatic voidsetStreamType(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)Set the default stream type for a client connection NetConnection.call("setStreamType", null, streamType);static voidstartTransmit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)static voidstopTransmit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)- 
Methods inherited from class com.wowza.wms.module.ModuleBasegetAppInstance, getApplication, getCallbackParamCount, getLogger, getLogger, getLogger, getParam, getParamBoolean, getParamBoolean, getParamCount, getParamDate, getParamDouble, getParamDouble, getParamInt, getParamInt, getParamLong, getParamLong, getParamMixedArray, getParamObj, getParamString, getParamString, getParamType, getStream, getVHost, invokePrevious, invokePrevious, isSendResult, sendClientOnStatusError, sendResult, sendResult, sendResult, sendResult, sendResult, sendStreamOnStatusError
 
- 
 
- 
- 
- 
Method Detail- 
createStreampublic static void createStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Create new server side NetStream object (internal to Flash workings).- Parameters:
- client- client
- function- function
- params- parameters (no params)
 
 - 
initStreampublic static void initStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Create new server side NetStream object (internal to Flash workings).- Parameters:
- client- client
- function- function
- params- parameters (streamIndex, boolean)
 
 - 
releaseStreampublic static void releaseStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
getLastStreamIdpublic static void getLastStreamId(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the id for the last created stream NetConnection.call("getLastStreamId", resultObj);- Parameters:
- client- client
- function- client
- params- params (no params)
 
 - 
deleteStreampublic static void deleteStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Delete server side stream object (internal to Flash workings).- Parameters:
- client- client
- function- function
- params- params
 
 - 
publishpublic static void publish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.publish(name : String [, howToPublish : String]);- Parameters:
- client- client
- function- function
- params- params (name [if name = "false" or "null" stop publishing], howToPublish ["record", "live", "append"])
 
 - 
setBandwidthLimitpublic static void setBandwidthLimit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
play2public static void play2(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.play(playOptions : NetStreamPlayOptions);- Parameters:
- client-
- function-
- params-
 
 - 
playpublic static void play(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.play(name : Object [,start : Number[, len : Number[, reset : Object]]]);- Parameters:
- client- client
- function- function
- params- params (name, start, len, reset)
 
 - 
closeStreampublic static void closeStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.close();- Parameters:
- client- client
- function- function
- params- params (no params)
 
 - 
seekpublic static void seek(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.seek(offset : Number);- Parameters:
- client- client
- function- function
- params- params (offset)
 
 - 
pausepublic static void pause(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.pause([ flag : Boolean]);- Parameters:
- client- client
- function- function
- params- params (flag)
 
 - 
setBufferTimepublic static void setBufferTime(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.setBufferTime(bufferTime : Number);- Parameters:
- client- client
- function- function
- params- params (bufferTime)
 
 - 
getClientIDpublic static void getClientID(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the clientId for a client connection NetConnection.call("getClientID", resultObj);- Parameters:
- client- client
- function- function
- params- params (no params)
 
 - 
getVersionpublic static void getVersion(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the Wowza Pro server version and build number NetConnection.call("getVersion", resultObj);- Parameters:
- client- client
- function- function
- params- params (no params)
 
 - 
setLiveStreamPacketizerpublic static void setLiveStreamPacketizer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Set the live stream packetizer for a stream- Parameters:
- client- client
- function- function
- params- params (liveStreamPacketizer)
 
 - 
initLiveStreamRepeatingpublic static void initLiveStreamRepeating(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Initialize a stream for live stream repeating- Parameters:
- client- client
- function- function
- params- params (liveStreamPacketizer, liveStreamRepeater)
 
 - 
getLiveStreamPacketizerpublic static void getLiveStreamPacketizer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the live stream packetizer list for a client connection NetConnection.call("getLiveStreamPacketizer", resultObj);- Parameters:
- client- client
- function- function
- params- params (no params)
 
 - 
setStreamTypepublic static void setStreamType(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Set the default stream type for a client connection NetConnection.call("setStreamType", null, streamType);- Parameters:
- client- client
- function- function
- params- params (streamType)
 
 - 
getStreamTypepublic static void getStreamType(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the default stream type for a client connection NetConnection.call("getStreamType", resultObj);- Parameters:
- client- client
- function- function
- params- params (no params)
 
 - 
receiveAudiopublic static void receiveAudio(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.receiveAudio(receive : Boolean);- Parameters:
- client- client
- function- function
- params- params (receive)
 
 - 
receiveVideopublic static void receiveVideo(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Server side implementation of NetStream.receiveVideo(receive : Boolean | FPS : Number); FPS does not work the same as FMS. Wowza Pro accepts the following values:- true: Send all video frames
- false: Send no video
- -1: Send all video frames
- -2: Send half the frames (remove B frames) (Note: only works with Sorenson Spark video with B-frames)
- -3: Send only key frames
 - Parameters:
- client- client
- function- function
- params- params (receive | FPS)
 
 - 
getStreamBitratepublic void getStreamBitrate(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get stream bitrate in bits-per-second for a video on demand stream (will not work for live). To call, NetConnection.call("getStreamBitrate", resultObj, streamName);- Parameters:
- client- client
- function- function
- params- params (streamName:String)
 
 - 
getStreamLengthpublic static void getStreamLength(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get stream length in seconds NetConnection.call("getStreamLength", resultObj, streamName); If you pass in an array of streamNames it will return an array of durations.- Parameters:
- client- client
- function- function
- params- params (streamName:String or streamNames:Array)
 
 - 
getRepeaterOriginUrlpublic static void getRepeaterOriginUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Get the Repeater Origin URL for this client- Parameters:
- client- client
- function- function
- params- params
 
 - 
setRepeaterOriginUrlpublic static void setRepeaterOriginUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) Set the Repeater Origin URL for this client- Parameters:
- client- client
- function- function
- params- params (repeaterOriginUrl)
 
 - 
FCPublishpublic static void FCPublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) FCPublish method called by FME 2.5- Parameters:
- client- client
- function- function
- params- params
 
 - 
FCUnPublishpublic static void FCUnPublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) FCUnpublish method called by FME 2.5- Parameters:
- client- client
- function- function
- params- params
 
 - 
FCUnpublishpublic static void FCUnpublish(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
pauseRawpublic static void pauseRaw(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) pauseRaw method introduced in Flash player 10- Parameters:
- client- client
- function- function
- params- params
 
 - 
getReferrerpublic static void getReferrer(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) getReferrer returns the referrer from the onConnect metadata- Parameters:
- client- client
- function- function
- params- params
 
 - 
getPageUrlpublic static void getPageUrl(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) getPageUrl returns the pageUrl from the onConnect metadata- Parameters:
- client- client
- function- function
- params- params
 
 - 
FCSubscribepublic static void FCSubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) FCSubscribe subscribes to a live stream (if origin edge will start the stream from the origin to the edge)- Parameters:
- client- client
- function- function
- params- params (streamName:String, [mediaCasterType:String])
 
 - 
FCUnsubscribepublic static void FCUnsubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) FCUnSubscribe to a live stream- Parameters:
- client- client
- function- function
- params- params (streamName:String)
 
 - 
FCUnSubscribepublic static void FCUnSubscribe(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
startTransmitpublic static void startTransmit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
stopTransmitpublic static void stopTransmit(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 - 
getMediaListpublic static void getMediaList(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params) 
 
- 
 
-