com.wowza.wms.mediacaster
Class ModuleMediaCaster

Object
  extended by com.wowza.wms.module.ModuleBase
      extended by 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
ModuleMediaCaster()
           
 
Method Summary
 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 stream
 void getPlayerCount(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
          Get the numbers of players associated with a particular media caster
 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)
 void onAppStart(IApplicationInstance appInstance)
          onAppStart
 void onAppStop(IApplicationInstance appInstance)
          onAppStop
 void releaseMediaCaster(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
          Decrement the lock count of a media caster stream
 void resetStream(IClient client, com.wowza.wms.request.RequestFunction function, AMFDataList params)
          Reset a media caster stream
 void 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, 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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleMediaCaster

public ModuleMediaCaster()
Method Detail

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 exists create it and connect.

Parameters:
client - client
function - function
params - {streamName, streamType [optional]}

getLockCount

public void getLockCount(IClient client,
                         com.wowza.wms.request.RequestFunction function,
                         AMFDataList params)
Get the current lock count for a stream

Parameters:
client - client
function - function
params - {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 - client
function - function
params - {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 - client
function - function
params - (no params)

onAppStart

public void onAppStart(IApplicationInstance appInstance)
onAppStart

Specified by:
onAppStart in interface IModuleOnApp
Parameters:
appInstance - application instance

onAppStop

public void onAppStop(IApplicationInstance appInstance)
onAppStop

Specified by:
onAppStop in interface IModuleOnApp
Parameters:
appInstance - application instance

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 - client
function - function
params - {streamName}

resetStream

public void resetStream(IClient client,
                        com.wowza.wms.request.RequestFunction function,
                        AMFDataList params)
Reset a media caster stream

Parameters:
client - client
function - function
params - {streamName}

shutdownStream

public void shutdownStream(IClient client,
                           com.wowza.wms.request.RequestFunction function,
                           AMFDataList params)
Force shutdown a media caster stream

Parameters:
client - client
function - function
params - {streamName}