Package com.wowza.wms.mediacaster
Class MediaCasterStreamItem
- Object
-
- com.wowza.wms.mediacaster.MediaCasterStreamItem
-
public class MediaCasterStreamItem extends Object
-
-
Constructor Summary
Constructors Constructor Description MediaCasterStreamItem(long uniqueId)
Media caster item constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
Increment acquire lock count for this media caster itemvoid
acquireAndRelease()
Increment then decrement acquire lock count for this media caster itemboolean
doWatchdog()
Do idle processingString
getLiveStreamPacketizer()
Get the live stream packetizer for this media caster stream itemString
getLiveStreamRepeater()
Get the live stream repeater for this media caster stream itemObject
getLock()
int
getLockCount()
Get the current number of acquire locks on this media caster itemIMediaCaster
getMediaCaster()
Get the underlying IMediaCaster interface for this MediaCasterString
getMediaCasterId()
Get this media caster item idint
getPlayerCount()
Get the current number of players associated with this media caster itemString
getStreamExt()
long
getUniqueId()
void
init(String mediaCasterId, String streamExt, MediaCasterItem mediaCasterDef, MediaCasterStreamMap parent, String liveStreamPacketizer, String liveStreamRepeater)
Initialize the media caster item (internal use)boolean
isShutdownOnRelease()
On last release shutdown the stream even if clients are connectedboolean
isValid()
void
registerPlayer(IMediaStreamPlay player)
Register a player with a media caster item (internal use)void
release()
Decrement acquire lock count for this media caster itemvoid
reset()
Force a reconnect or reset for this media caster itemvoid
setLiveStreamPacketizer(String liveStreamPacketizer)
Set the live stream packetizer for this media caster stream itemvoid
setLiveStreamRepeater(String liveStreamRepeater)
Set the live stream repeater for this media caster stream itemvoid
setShutdownOnRelease(boolean shutdownOnRelease)
On last release shutdown the stream even if clients are connectedvoid
setStreamExt(String streamExt)
void
setValid(boolean isValid)
void
shutdown(boolean isAppInstanceShutdown)
Shutdown this media caster itemvoid
unregisterPlayer(IMediaStreamPlay player)
Unregister a player with a media caster item (internal use)
-
-
-
Method Detail
-
getLock
public Object getLock()
-
getUniqueId
public long getUniqueId()
-
isValid
public boolean isValid()
-
setValid
public void setValid(boolean isValid)
-
init
public void init(String mediaCasterId, String streamExt, MediaCasterItem mediaCasterDef, MediaCasterStreamMap parent, String liveStreamPacketizer, String liveStreamRepeater)
Initialize the media caster item (internal use)- Parameters:
mediaCasterId
- media caster idstreamExt
- stream extension or prefixmediaCasterDef
- media caster definitionparent
- parent map
-
getMediaCasterId
public String getMediaCasterId()
Get this media caster item id- Returns:
- media caster item id
-
getMediaCaster
public IMediaCaster getMediaCaster()
Get the underlying IMediaCaster interface for this MediaCaster- Returns:
- underlying IMediaCaster interface
-
registerPlayer
public void registerPlayer(IMediaStreamPlay player)
Register a player with a media caster item (internal use)- Parameters:
player
- player to register
-
unregisterPlayer
public void unregisterPlayer(IMediaStreamPlay player)
Unregister a player with a media caster item (internal use)- Parameters:
player
- player to unregister
-
doWatchdog
public boolean doWatchdog()
Do idle processing- Returns:
- return true if caused shutdown of item
-
reset
public void reset()
Force a reconnect or reset for this media caster item
-
shutdown
public void shutdown(boolean isAppInstanceShutdown)
Shutdown this media caster item- Parameters:
isAppInstanceShutdown
- is this due to application shutdown
-
getPlayerCount
public int getPlayerCount()
Get the current number of players associated with this media caster item- Returns:
- current number of players associated with this media caster item
-
getLockCount
public int getLockCount()
Get the current number of acquire locks on this media caster item- Returns:
- current number of acquire locks on this media caster item
-
acquireAndRelease
public void acquireAndRelease()
Increment then decrement acquire lock count for this media caster item
-
acquire
public void acquire()
Increment acquire lock count for this media caster item
-
release
public void release()
Decrement acquire lock count for this media caster item
-
getStreamExt
public String getStreamExt()
-
setStreamExt
public void setStreamExt(String streamExt)
-
isShutdownOnRelease
public boolean isShutdownOnRelease()
On last release shutdown the stream even if clients are connected- Returns:
- true if shutting down on release
-
setShutdownOnRelease
public void setShutdownOnRelease(boolean shutdownOnRelease)
On last release shutdown the stream even if clients are connected- Parameters:
shutdownOnRelease
- true if shutting down on release
-
getLiveStreamPacketizer
public String getLiveStreamPacketizer()
Get the live stream packetizer for this media caster stream item- Returns:
- live stream packetizer
-
setLiveStreamPacketizer
public void setLiveStreamPacketizer(String liveStreamPacketizer)
Set the live stream packetizer for this media caster stream item- Parameters:
liveStreamPacketizer
- live stream packetizer
-
getLiveStreamRepeater
public String getLiveStreamRepeater()
Get the live stream repeater for this media caster stream item- Returns:
- live stream repeater
-
setLiveStreamRepeater
public void setLiveStreamRepeater(String liveStreamRepeater)
Set the live stream repeater for this media caster stream item- Parameters:
liveStreamRepeater
- live stream repeater
-
-