public interface IMediaCaster
| Modifier and Type | Field | Description |
|---|---|---|
static int |
MEDIACASTERTYPE_CUPERTINO |
|
static int |
MEDIACASTERTYPE_LIVEREPEATER |
|
static int |
MEDIACASTERTYPE_MPEGTSTCP |
|
static int |
MEDIACASTERTYPE_RTPLIVE |
|
static int |
MEDIACASTERTYPE_SHOUTCAST |
|
static int |
MEDIACASTERTYPE_SRTRECEIVER |
|
static int |
MEDIACASTERTYPE_UNKNOWN |
|
static int |
STREAMTIMEOUTREASON_GOOD |
|
static int |
STREAMTIMEOUTREASON_MISSING |
|
static int |
STREAMTIMEOUTREASON_NORTSPSESSION |
|
static int |
STREAMTIMEOUTREASON_NOSESSION |
|
static int |
STREAMTIMEOUTREASON_NOSTREAM |
|
static int |
STREAMTIMEOUTREASON_NOTIMEOUT |
|
static int |
STREAMTIMEOUTREASON_NOURL |
|
static int |
STREAMTIMEOUTREASON_RECONNECTRUNNING |
|
static int |
STREAMTIMEOUTREASON_UNKNOWN |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
doWatchdog() |
Idle processor
|
void |
forceReset() |
Force a reset/reconnect of this media caster
|
IApplicationInstance |
getAppInstance() |
Get the application instance this media caster is associated with
|
long |
getConnectLastAttempt() |
Get system time in milliseconds of last connection attempt
|
long |
getConnectLastForceReset() |
Get system time in milliseconds of last time forceReset was called
|
long |
getConnectLastSuccess() |
Get system time in milliseconds of last connection success
|
int |
getIdleTimeout() |
Get the idle timeout for this media caster (milliseconds)
|
Object |
getLock() |
Get the MediaCaster lock for an individual MediaCaster item.
|
MediaCasterItem |
getMediaCasterDef() |
Get the media caster definition
|
String |
getMediaCasterId() |
Get the media caster id
|
MediaCasterStreamItem |
getMediaCasterStreamItem() |
Get the media caster item associated with this media caster
|
int |
getMediaCasterType() |
Get the media caster type.
|
int |
getReconnectWaitTime() |
Get the minimum time between reconnect attempts (milliseconds)
|
IMediaStream |
getStream() |
Get the underlying stream being used by this media caster
|
long |
getStreamLastSeq() |
Get the AMFPacket sequence number of last watchdog processed packet
|
long |
getStreamMissingTime() |
Get the time in milliseconds the stream has been missing
|
long |
getStreamRunningIndex() |
Each time a MediaCaster stream switches from not running to running this value is incremented
|
int |
getStreamTimeout() |
Get the watchdog stream timeout (milliseconds)
|
long |
getStreamTimeoutLastReset() |
Get system time in milliseconds of last time stream was reset due to stream timeout (debug)
|
long |
getStreamTimeoutLastTime() |
Get system time in milliseconds of last time stream was considered in missing state (debug)
|
int |
getStreamTimeoutReason() |
Get the reason the stream is in timeout condition (debug)
|
IVHost |
getVHost() |
Get the virtual host associated with this media caster
|
void |
init(MediaCasterStreamItem mediaCasterStreamItem,
MediaCasterItem mediaCasterDef,
IApplicationInstance appInstance,
String mediaCasterId,
String streamExt) |
Initialize the media caster
|
boolean |
isSession() |
Is there current a session attached to this MediaCaster
|
boolean |
isStream() |
Is there a stream associated with this MediaCaster
|
boolean |
isStreamIsRunning() |
Return true if stream is currently running
|
void |
registerPlayer(IMediaStreamPlay player) |
Register a player with this media caster
|
void |
sessionClosed(org.apache.mina.common.IoSession session) |
sessionClosed callback
|
void |
sessionOpened(org.apache.mina.common.IoSession session) |
sessionOpened callback
|
void |
setAppInstance(IApplicationInstance appInstance) |
Set the application instance this media caster is assoicated with
|
void |
setMediaCasterDef(MediaCasterItem mediaCasterDef) |
Set the media caster definition
|
void |
setMediaCasterId(String mediaCasterId) |
Get the media caster id
|
void |
setMediaCasterType(int mediaCasterType) |
Set the media caster type.
|
void |
setReconnectWaitTime(int reconnectWaitTime) |
Set the minimum time between reconnect attempts (milliseconds)
|
void |
setStream(IMediaStream stream) |
Set the underlying stream being used by this media caster
|
void |
setStreamRunning(boolean streamRunning) |
Called internally to track when streams are running or are stopped.
|
void |
setStreamTimeout(int streamTimeout) |
Set the watchdog stream timeout (millseconds)
|
void |
shutdown(boolean isAppInstanceShutdown) |
Shutdown media caster
|
void |
unregisterPlayer(IMediaStreamPlay player) |
Unregister a player with this media caster
|
static final int MEDIACASTERTYPE_CUPERTINO
static final int MEDIACASTERTYPE_LIVEREPEATER
static final int MEDIACASTERTYPE_MPEGTSTCP
static final int MEDIACASTERTYPE_RTPLIVE
static final int MEDIACASTERTYPE_SHOUTCAST
static final int MEDIACASTERTYPE_SRTRECEIVER
static final int MEDIACASTERTYPE_UNKNOWN
static final int STREAMTIMEOUTREASON_GOOD
static final int STREAMTIMEOUTREASON_MISSING
static final int STREAMTIMEOUTREASON_NORTSPSESSION
static final int STREAMTIMEOUTREASON_NOSESSION
static final int STREAMTIMEOUTREASON_NOSTREAM
static final int STREAMTIMEOUTREASON_NOTIMEOUT
static final int STREAMTIMEOUTREASON_NOURL
static final int STREAMTIMEOUTREASON_RECONNECTRUNNING
static final int STREAMTIMEOUTREASON_UNKNOWN
boolean doWatchdog()
void forceReset()
IApplicationInstance getAppInstance()
long getConnectLastAttempt()
long getConnectLastForceReset()
long getConnectLastSuccess()
int getIdleTimeout()
Object getLock()
MediaCasterItem getMediaCasterDef()
String getMediaCasterId()
MediaCasterStreamItem getMediaCasterStreamItem()
int getMediaCasterType()
int getReconnectWaitTime()
IMediaStream getStream()
long getStreamLastSeq()
long getStreamMissingTime()
long getStreamRunningIndex()
int getStreamTimeout()
long getStreamTimeoutLastReset()
long getStreamTimeoutLastTime()
int getStreamTimeoutReason()
IVHost getVHost()
void init(MediaCasterStreamItem mediaCasterStreamItem, MediaCasterItem mediaCasterDef, IApplicationInstance appInstance, String mediaCasterId, String streamExt)
mediaCasterStreamItem - media caster itemmediaCasterDef - media caster definitionappInstance - application instancemediaCasterId - media caster idstreamExt - stream ext or prefixboolean isSession()
boolean isStream()
boolean isStreamIsRunning()
void registerPlayer(IMediaStreamPlay player)
player - player to registervoid sessionClosed(org.apache.mina.common.IoSession session)
session - IO Sessionvoid sessionOpened(org.apache.mina.common.IoSession session)
session - IO Sessionvoid setAppInstance(IApplicationInstance appInstance)
appInstance - application instance this media caster is assoicated withvoid setMediaCasterDef(MediaCasterItem mediaCasterDef)
mediaCasterDef - media caster definitionvoid setMediaCasterId(String mediaCasterId)
mediaCasterId - media caster idvoid setMediaCasterType(int mediaCasterType)
mediaCasterType - media caster typevoid setReconnectWaitTime(int reconnectWaitTime)
reconnectWaitTime - minimum time between reconnect attempts (milliseconds)void setStream(IMediaStream stream)
stream - underlying stream being used by this media castervoid setStreamRunning(boolean streamRunning)
streamRunning - set to true if stream is runningvoid setStreamTimeout(int streamTimeout)
streamTimeout - stream timeoutvoid shutdown(boolean isAppInstanceShutdown)
isAppInstanceShutdown - is server shutdownvoid unregisterPlayer(IMediaStreamPlay player)
player - player to unregister