Package com.wowza.wms.mediacaster
Class ModuleMediaCaster
- Object
-
- com.wowza.wms.module.ModuleBase
-
- com.wowza.wms.mediacaster.ModuleMediaCaster
-
- All Implemented Interfaces:
IModuleOnApp
public class ModuleMediaCaster extends ModuleBase implements IModuleOnApp
ModuleMediaCaster: Module for manipulating media casters through a Flash UI.
-
-
Field Summary
-
Fields inherited from class com.wowza.wms.module.ModuleBase
CALLBACK_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 Summary
Constructors Constructor Description ModuleMediaCaster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquireMediaCaster(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Increment the lock count of a media caster stream.void
getLockCount(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get the current lock count for a streamvoid
getPlayerCount(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get the numbers of players associated with a particular media castervoid
getStreamNames(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get an array of stream names that are media casters associate with this application instance (returned as AMFDataArray)void
onAppStart(IApplicationInstance appInstance)
onAppStartvoid
onAppStop(IApplicationInstance appInstance)
onAppStopvoid
releaseMediaCaster(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Decrement the lock count of a media caster streamvoid
resetStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Reset a media caster streamvoid
shutdownStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Force shutdown a media caster stream-
Methods inherited from class com.wowza.wms.module.ModuleBase
getAppInstance, 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
-
onAppStart
public void onAppStart(IApplicationInstance appInstance)
onAppStart- Specified by:
onAppStart
in interfaceIModuleOnApp
- Parameters:
appInstance
- application instance
-
onAppStop
public void onAppStop(IApplicationInstance appInstance)
onAppStop- Specified by:
onAppStop
in interfaceIModuleOnApp
- Parameters:
appInstance
- application instance
-
getLockCount
public void getLockCount(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get the current lock count for a stream- Parameters:
client
- clientfunction
- functionparams
- {streamName}
-
getPlayerCount
public void getPlayerCount(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get the numbers of players associated with a particular media caster- Parameters:
client
- clientfunction
- functionparams
- {streamName}
-
getStreamNames
public void getStreamNames(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Get an array of stream names that are media casters associate with this application instance (returned as AMFDataArray)- Parameters:
client
- clientfunction
- functionparams
- (no params)
-
resetStream
public void resetStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Reset a media caster stream- Parameters:
client
- clientfunction
- functionparams
- {streamName}
-
shutdownStream
public void shutdownStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Force shutdown a media caster stream- Parameters:
client
- clientfunction
- functionparams
- {streamName}
-
acquireMediaCaster
public void acquireMediaCaster(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Increment the lock count of a media caster stream. If the media caster does not exist create it and connect.- Parameters:
client
- clientfunction
- functionparams
- {streamName, streamType [optional]}
-
releaseMediaCaster
public void releaseMediaCaster(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Decrement the lock count of a media caster stream- Parameters:
client
- clientfunction
- functionparams
- {streamName}
-
-