|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMediaStream
IMediaStream: public, generic interface to mediaStream object. Upon creation of a new mediaStream, the client connection's default streamType value will be used to dynamically create a mediaStream object based on the definitions available in the vHosts.mediaStreamMap. All mediaStream implementations implement this interface.
| Field Summary | |
|---|---|
static int |
AUDIOSAMPLEACCESS
|
static int |
READACCESS
|
static int |
VIDEOSAMPLEACCESS
|
static int |
WRITEACCESS
|
| Method Summary | |
|---|---|
void |
addAudioCodecConfigPacket(long timecode,
AMFPacket packet)
Set audio codec configuration packet (needed for H.264/AAC playback) |
void |
addAudioData(byte[] data,
int offset,
int size)
Add data to curent audio packet |
void |
addClientListener(IMediaStreamActionNotify actionListener)
Add client listener. |
void |
addClientListener(IMediaStreamActionNotify2 actionListener)
Add client listener. |
void |
addDataData(byte[] data,
int offset,
int size)
Add data to curent data packet |
void |
addVideoCodecConfigPacket(long timecode,
AMFPacket packet)
Set video codec configuration packet (needed for H.264/AAC playback) |
void |
addVideoData(byte[] data,
int offset,
int size)
Add data to curent video packet |
void |
clear()
Delete media file pointed to by this mediaStream (be careful) |
void |
clearFastPlaySettings()
Clear fastPlay settings |
void |
clearLoggingValues()
|
void |
close()
Close mediaStream |
void |
flush()
Force publishing packets to be flushed from the input buffers to the output buffers |
boolean[] |
getAccess(IClient client,
String name)
Get the read/write access to this stream for this client |
AMFPacket |
getAudioCodecConfigPacket(long timecode)
Get audio codec configuration packet (needed for H.264/AAC playback) |
int |
getAudioMissing()
Get number of audio bytes missing from current audio packet |
int |
getAudioSize()
Get the size of the current audio packet that is being streamed from the client to the server |
long |
getAudioTC()
Get last absolute audio timecode (milliseconds) sent to mediaStream |
int |
getBufferTime()
Get buffer time for mediaStream (milliseconds) |
byte[] |
getBurstStartStop(boolean isStart)
Get the dynamic streaming burst start/stop AMF packet |
String |
getCacheName()
not used |
IClient |
getClient()
Get parent client connection |
int |
getClientId()
Get parent client connection (id) |
String |
getContextStr()
Returns the stream context string in the form [application]/[appInstance]/[streamName]. |
int |
getDataMissing()
Get number of data bytes missing from current audio packet |
int |
getDataSize()
Get the size of the current data packet that is being streamed from the client to the server |
long |
getDataTC()
Get last absolute data timecode (milliseconds) sent to mediaStream |
int |
getDataType()
Get the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3) |
ElapsedTimer |
getElapsedTime()
Get the interface to the elapse timer |
String |
getExt()
Get media file extension |
FastPlaySettings |
getFastPlaySettings()
Get current fastPlay settings |
int |
getHeaderSize()
Get the last packet header size (debugging) |
IHTTPStreamerSession |
getHTTPStreamerSession()
Get the HTTPStreamer session associated with this stream |
AMFPacket |
getLastKeyFrame()
Get most recent video key frame |
AMFPacket |
getLastPacket()
Get most recent live packet |
String |
getLiveStreamPacketizer()
Get the live stream packetizer that this stream is using |
ILiveStreamPacketizer |
getLiveStreamPacketizer(String name)
Get the LiveStreamPacketizer interface to a stream by name |
String |
getLiveStreamPacketizerList()
Get the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml) |
String |
getLiveStreamRepeater()
Get the live stream repeater name for the stream |
long |
getMaxTimecode()
Get the timecode of the latest received packet |
IOPerformanceCounter |
getMediaIOPerformance()
Get IO performance counter |
IMediaStreamMetaDataProvider |
getMetaDataProvider()
Get the metaData provider |
String |
getName()
Get stream name |
com.wowza.wms.netconnection.INetConnection |
getNetConnection()
Get parent netConnection (future server to server communication) |
IMediaStreamPlay |
getPlayer()
Get underlying player (IMediaStreamPlay) object |
java.util.List<AMFPacket> |
getPlayPackets()
Get all available live packets |
WMSProperties |
getProperties()
Get mediaStream properties |
int |
getPublishAudioCodecId()
Get the codec id of the most recently published audio packet |
int |
getPublishVideoCodecId()
Get the codec id of the most recently published video packet |
String |
getQueryStr()
Get play/publish name query string. |
int |
getReceiveVideoFPS()
Set frame per seconds for video (not currently implemented) |
AMFObj |
getRespAMFAudioObj()
Get audio response channel object |
AMFObj |
getRespAMFDataObj()
Get data response channel object |
AMFObj |
getRespAMFVideoObj()
Get video response channel object |
RTPStream |
getRTPStream()
Get the RTP based stream this stream is associated with |
int |
getSrc()
Get the stream id |
java.io.File |
getStreamFileForRead()
Get the File object to read from a stream (get stream name, ext and query from stream object) |
java.io.File |
getStreamFileForRead(String name,
String ext,
String query)
Get the File object to read from a stream (specify name, ext and query) |
java.io.File |
getStreamFileForWrite()
Get the File object to write to a stream (get stream name, ext and query from stream object) |
java.io.File |
getStreamFileForWrite(String name,
String ext,
String query)
Get the File object to write to a stream (specify name, ext and query) |
MediaStreamMap |
getStreams()
Get parent mediaStreamMap (owned by applicationInstance) |
String |
getStreamType()
Get mediaStream streamType |
String |
getUniqueStreamIdStr()
Get a string that uniquely identifies this stream |
AMFPacket |
getVideoCodecConfigPacket(long timecode)
Get video codec configuration packet (needed for H.264/AAC playback) |
int |
getVideoMissing()
Get number of video bytes missing from current audio packet |
int |
getVideoSize()
Get the size of the current video packet that is being streamed from the client to the server |
long |
getVideoTC()
Get last absolute video timecode (milliseconds) sent to mediaStream |
void |
handleCallback(com.wowza.wms.request.RequestFunction function)
Routes request function to callback handler onStatus, onPlayStatus or [method/handler] |
boolean |
idle()
Allow the mediaStream to perform idle work (not currently in use) |
long |
incrementMediaInBytes(long increment)
Increment the number of mediaStream bytes received |
long |
incrementMediaLossBytes(long bytes,
long count)
Increment the number of mediaStream loss bytes sent and number of packets sent |
long |
incrementMediaOutBytes(long bytes,
long count)
Increment the number of mediaStream bytes sent and number of packets sent |
void |
init(MediaStreamMap parent,
int src,
WMSProperties properties)
Initialize the mediaStream object after creation. |
void |
initLiveStreamRepeating(String liveStreamPacketizer,
String liveStreamRepeater)
Initialize this stream for live stream repeating |
boolean |
isAppend()
Is append to media file (only valid if isRecord) |
boolean |
isClustered()
not used |
boolean |
isMediaCasterPlay()
Is MediaCaster play enabled (if true, will trigger MediaCaster startup) |
boolean |
isMergeOnMetadata()
If true, merge incoming onMetadata events with the current onMetdata event data. |
boolean |
isOpen()
Is mediaStream open |
boolean |
isPlay()
Is the stream a play stream (vs a publish stream) |
boolean |
isPlaying()
Is mediaStream playing (or paused - false) |
boolean |
isPublishStreamReady(boolean checkAudio,
boolean checkVideo)
Returns true if the publishing stream contains enough video/audio data to start playback |
boolean |
isReceiveAudio()
Is client currently receiving audio. |
boolean |
isReceiveVideo()
Is client currently receiving video. |
boolean |
isRecord()
Is this stream being recorded to a file |
boolean |
isSendPlayStopLogEvent()
Get need to send a log event for stop |
boolean |
isSendPublishStopLogEvent()
Get need to send a log event for publishing |
boolean |
isSendRecordStopLogEvent()
Get need to send a log event for recording |
double |
length()
Get length/duration (seconds) of media file pointed to by mediaStream |
void |
notifyActionOnMetaData(AMFPacket metaDataPacket)
Notify client listeners of onMetaData change |
void |
notifyActionPause(boolean isPause,
long location)
Notify client listeners of pause action |
void |
notifyActionPauseRaw(boolean isPause,
long location)
Notify client listeners of pauseRaw action |
void |
notifyActionPlay(String streamName,
double playStart,
double playLen,
int playReset)
Notify client listeners of play action |
void |
notifyActionPublish(String streamName,
boolean isRecord,
boolean isAppend)
Notify client listeners of publish action |
void |
notifyActionSeek(double location)
Notify client listeners of seek action |
void |
notifyActionStop()
Notify client listeners of stop action |
void |
notifyActionUnPublish(String streamName,
boolean isRecord,
boolean isAppend)
Notify client listeners of unpublish action |
void |
packetComplete()
Invoked by requestAdapter when at the end of a set of packets |
void |
publish()
Publish mediaStream |
void |
registerCallback(String handlerName,
IMediaStreamCallback callback)
Register a callback handler |
void |
registerOnPlayStatus(IMediaStreamCallback callback)
Register onPlayStatus handler |
void |
registerOnStatus(IMediaStreamCallback callback)
Register onStatus handler |
void |
removeClientListener(IMediaStreamActionNotify actionListener)
Remove client listener. |
void |
removeClientListener(IMediaStreamActionNotify2 actionListener)
Remove client listener. |
void |
send(String handlerName)
Call client side NetStream method/handler with no parameters |
void |
send(String handlerName,
Object... params)
Call client side NetStream method/handler |
int |
sendControlBytes(int controlType,
java.io.OutputStream out)
Send playback control bytes. |
void |
sendDirect(String handlerName)
Call client side NetStream method/handler and send event to underlying stream (will record event) |
void |
sendDirect(String handlerName,
Object... params)
Call client side NetStream method/handler and send event to underlying stream (will record event) |
int |
sendLivePlaySeek(java.io.OutputStream out,
String name,
long timecode)
Send onStatus(NetStream.Seek.Notify) event |
int |
sendLivePlayStart(java.io.OutputStream out,
String name,
long timecode,
long timecodeOffset)
Send onStatus(NetStream.Play.Start) event |
int |
sendLivePlaySwitch(java.io.OutputStream out,
String name,
long timecode)
Send onStatus(NetStream.Play.Transition) event |
int |
sendPauseNotify(long timecode,
String name)
Send onStatus(NetStream.Pause.Notify) event |
int |
sendPauseNotify(java.io.OutputStream out,
long timecode,
String name)
Send onStatus(NetStream.Pause.Notify) event. |
int |
sendPlayReset(java.io.OutputStream out,
String name)
Send onStatus(NetStream.Play.Reset) event. |
int |
sendPlayReset(String name)
Send onStatus(NetStream.Play.Reset) event |
int |
sendPlaySeek(long location,
long seekLocation,
String name)
Send onStatus(NetStream.Seek.Notify) event. |
int |
sendPlaySeek(java.io.OutputStream out,
long location,
long seekLocation,
String name)
Send onStatus(NetStream.Seek.Notify) event. |
int |
sendPlaySeek(java.io.OutputStream out,
long location,
long seekLocation,
String name,
java.util.List<Integer> seekTypes)
Send onStatus(NetStream.Seek.Notify) event. |
int |
sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
boolean isLive,
long timecode,
java.util.List<Integer> seekTypes)
Send onStatus(NetStream.Play.Start) event (it is not a typo, this also send play start but with different control codes for media switch). |
int |
sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode)
Send onStatus(NetStream.Play.Start) event (it is not a typo, this also send play start but with different control codes for media switch). |
int |
sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode,
java.util.List<Integer> seekTypes)
Send onStatus(NetStream.Play.Start) event (it is not a typo, this also send play start but with different control codes for media switch). |
int |
sendPlayStart(String name,
long timecode)
Send onStatus(NetStream.Play.Start) event |
int |
sendPlayStatus(long timecode,
int statusType,
double duration,
double bytesSent)
Send onPlayStatus(NetStream.Play.Switch, NetStream.Play.Complete, NetStream.Play.Stop) event |
int |
sendPlayStatus(java.io.OutputStream out,
long timecode,
int statusType,
double duration,
double bytesSent)
Send onPlayStatus(NetStream.Play.Switch, NetStream.Play.Complete, NetStream.Play.Stop) event. |
int |
sendPlayStop(long location,
String name)
Send onStatus(NetStream.Play.Stop) event |
int |
sendPlayStop(java.io.OutputStream out,
long location,
String name)
Send onStatus(NetStream.Play.Stop) event. |
int |
sendPlaySwitch(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode)
Send onStatus(NetStream.Play.Start) event (it is not a typo, this also send play start but with different control codes for media switch). |
int |
sendPlaySwitch(String name,
long timecode)
Send onStatus(NetStream.Play.Start) event (it is not a typo, this also send play start but with different control codes for media switch). |
int |
sendStreamNotFound(java.io.OutputStream out,
String name)
Send onStatus(NetStream.Play.StreamNotFound) event. |
int |
sendStreamNotFound(String name)
Send onStatus(NetStream.Play.StreamNotFound) event |
int |
sendUnpauseNotify(long location,
String name)
Send onStatus(NetStream.Unpause.Notify) event |
int |
sendUnpauseNotify(java.io.OutputStream out,
long location,
String name)
Send onStatus(NetStream.Unpause.Notify) event. |
int |
sendUnpauseNotify(java.io.OutputStream out,
long location,
String name,
java.util.List<Integer> seekTypes)
Send onStatus(NetStream.Unpause.Notify) event |
int |
sendVODPlaySwitch(java.io.OutputStream out,
String name,
long timecode)
Send onStatus(NetStream.Play.Transition) event |
void |
setAppend(boolean isAppend)
Set is append to media file (only valid if isRecord) |
void |
setAudioSize(int audioSize)
Set the size of the current audio packet that is being streamed from the client to the server |
void |
setAudioTC(long audioTC)
Set last absolute audio timecode (milliseconds) sent to mediaStream |
void |
setAudioTC(long audioTC,
boolean isAbsolute)
Set last absolute audio timecode (milliseconds) sent to mediaStream |
void |
setBufferTime(int bufferTime)
Set buffer time for mediaStream (milliseconds) |
void |
setClient(IClient client)
Set parent client connection |
void |
setClustered(boolean isClustered)
not used |
void |
setDataSize(int dataSize)
Set the size of the current data packet that is being streamed from the client to the server |
void |
setDataTC(long dataTC)
Set last absolute data timecode (milliseconds) sent to mediaStream |
void |
setDataTC(long dataTC,
boolean isAbsolute)
Set last absolute data timecode (milliseconds) sent to mediaStream |
void |
setDataType(int dataType)
Set the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3) |
void |
setExt(String ext)
Set media file extension |
void |
setFastPlaySettings(FastPlaySettings fastPlaySettings)
Set fastPlay settings |
void |
setHeaderSize(int headerSize)
Set the last packet header size (debugging) |
void |
setHTTPStreamerSession(IHTTPStreamerSession httpStreamerSession)
Set the HTTPStreamer session associated with this stream |
void |
setIsPlaying(boolean isPlaying)
Set is mediaStream playing |
void |
setLiveStreamPacketizer(String liveStreamPacketizer)
Set the live stream packetizer that this stream is using |
void |
setLiveStreamPacketizerList(String liveStreamPacketizerList)
Set the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml) |
void |
setLiveStreamRepeater(String liveStreamRepeater)
Set the live stream repeater name for the stream |
void |
setMediaCasterPlay(boolean isMediaCasterPlay)
Is MediaCaster play enabled (if true, will trigger MediaCaster startup) |
void |
setMergeOnMetadata(boolean mergeOnMetadata)
If true, merge incoming onMetadata events with the current onMetdata event data. |
void |
setMetaDataProvider(IMediaStreamMetaDataProvider metaDataProvider)
Set the metaData provider |
void |
setName(String name)
Set stream name |
void |
setName(String name,
String ext)
Set stream name and extension. |
void |
setName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
Set stream name, extension, query string, play start, play len and play reset from play command. |
void |
setNetConnection(com.wowza.wms.netconnection.INetConnection netConnection)
Set parent netConnection (future server to server communication) |
void |
setOpen(boolean isOpen)
Set mediaStream open |
void |
setPlay(boolean isPlay)
Set is the stream a play stream (vs a publish stream) |
void |
setPlayer(IMediaStreamPlay player)
Set underlying player (IMediaStreamPlay) object |
void |
setPublishAudioCodecId(int publishAudioCodecId)
Set the codec id of the most recently published audio packet |
void |
setPublishVideoCodecId(int publishVideoCodecId)
Set the codec id of the most recently published video packet |
void |
setQueryStr(String queryStr)
Set play/publish name query string. |
void |
setReceiveAudio(boolean receiveAudio)
Set receive audio |
void |
setReceiveVideo(boolean receiveVideo)
Set receive video |
void |
setReceiveVideoFPS(int receiveVideoFPS)
Set frame per second for video (not currently implemented) |
void |
setRecord(boolean isRecord)
Set is the stream being recorded |
void |
setRTPStream(RTPStream rtpStream)
Set the RTP based stream this stream is associated with |
void |
setSendPlayStopLogEvent(boolean sendPlayStopLogEvent)
Set need to send a log event for stop |
void |
setSendPublishStopLogEvent(boolean sendPlayStopLogEvent)
Set need to send a log event for publishing |
void |
setSendRecordStopLogEvent(boolean sendPlayStopLogEvent)
Set need to send a log event for recording |
void |
setSrc(int src)
Set stream id |
void |
setStreamType(String streamType)
Set mediaStream streamType. |
void |
setVideoSize(int videoSize)
Set the size of the current video packet that is being streamed from the client to the server |
void |
setVideoTC(long videoTC)
Set last absolute video timecode (milliseconds) sent to mediaStream |
void |
setVideoTC(long videoTC,
boolean isAbsolute)
Set last absolute video timecode (milliseconds) sent to mediaStream |
void |
shutdown()
shutdown or close this mediaStream |
long |
size()
Get size (bytes) of media file pointed to by mediaStream |
void |
startAudioPacket()
Called when an audio packet is first being populated with data |
void |
startDataPacket()
Called when a data packet is first being populated with data |
void |
startPublishing()
Start publishing live stream |
void |
startVideoPacket()
Called when a video packet is first being populated with data |
void |
stopName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
Stop stream name |
void |
stopPublishing()
Stop publishing live stream |
void |
switchName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
Switch to stream name |
void |
trim()
Trim mediaStream. |
void |
unregisterCallback(String handlerName)
Unregister a callback handler |
void |
unregisterOnPlayStatus(IMediaStreamCallback callback)
Unregister onPlayStatus handler |
void |
unregisterOnStatus(IMediaStreamCallback callback)
Unregister onStatus handler |
void |
updateLoggingDuration()
Update logging.MDC with mediaStream logging information |
void |
updateLoggingValues()
Update logging.MDC with mediaStream logging information |
| Field Detail |
|---|
static final int AUDIOSAMPLEACCESS
static final int READACCESS
static final int VIDEOSAMPLEACCESS
static final int WRITEACCESS
| Method Detail |
|---|
void addAudioCodecConfigPacket(long timecode,
AMFPacket packet)
timecode - timecode in milliseconds of first packet that uses this timecodepacket - audio codec configuration packet (needed for H.264/AAC playback)
void addAudioData(byte[] data,
int offset,
int size)
data - byte arrayoffset - offset in byte arraysize - size of data to addvoid addClientListener(IMediaStreamActionNotify actionListener)
actionListener - listenervoid addClientListener(IMediaStreamActionNotify2 actionListener)
actionListener - listener
void addDataData(byte[] data,
int offset,
int size)
data - byte arrayoffset - offset in byte arraysize - size of data to add
void addVideoCodecConfigPacket(long timecode,
AMFPacket packet)
timecode - timecode in milliseconds of first packet that uses this timecodepacket - video codec configuration packet (needed for H.264/AAC playback)
void addVideoData(byte[] data,
int offset,
int size)
data - byte arrayoffset - offset in byte arraysize - size of data to addvoid clear()
void clearFastPlaySettings()
void clearLoggingValues()
void close()
void flush()
boolean[] getAccess(IClient client,
String name)
client - clientname - stream name
AMFPacket getAudioCodecConfigPacket(long timecode)
timecode - timecode of the packet to which you want to get the codec config information
int getAudioMissing()
int getAudioSize()
long getAudioTC()
int getBufferTime()
byte[] getBurstStartStop(boolean isStart)
isStart - is start
String getCacheName()
IClient getClient()
int getClientId()
String getContextStr()
int getDataMissing()
int getDataSize()
long getDataTC()
int getDataType()
ElapsedTimer getElapsedTime()
String getExt()
FastPlaySettings getFastPlaySettings()
int getHeaderSize()
IHTTPStreamerSession getHTTPStreamerSession()
AMFPacket getLastKeyFrame()
AMFPacket getLastPacket()
String getLiveStreamPacketizer()
ILiveStreamPacketizer getLiveStreamPacketizer(String name)
name - LiveStreamPacketizer name
String getLiveStreamPacketizerList()
String getLiveStreamRepeater()
long getMaxTimecode()
IOPerformanceCounter getMediaIOPerformance()
IMediaStreamMetaDataProvider getMetaDataProvider()
String getName()
com.wowza.wms.netconnection.INetConnection getNetConnection()
IMediaStreamPlay getPlayer()
java.util.List<AMFPacket> getPlayPackets()
WMSProperties getProperties()
int getPublishAudioCodecId()
int getPublishVideoCodecId()
String getQueryStr()
int getReceiveVideoFPS()
AMFObj getRespAMFAudioObj()
AMFObj getRespAMFDataObj()
AMFObj getRespAMFVideoObj()
RTPStream getRTPStream()
int getSrc()
java.io.File getStreamFileForRead()
java.io.File getStreamFileForRead(String name,
String ext,
String query)
name - stream nameext - stream prefix (Ex. mp4:)query - query part of stream name (Ex. mystream?param1=value1)
java.io.File getStreamFileForWrite()
java.io.File getStreamFileForWrite(String name,
String ext,
String query)
name - stream nameext - stream prefix (Ex. mp4:)query - query part of stream name (Ex. mystream?param1=value1)
MediaStreamMap getStreams()
String getStreamType()
String getUniqueStreamIdStr()
AMFPacket getVideoCodecConfigPacket(long timecode)
timecode - timecode of the packet to which you want to get the codec config information
int getVideoMissing()
int getVideoSize()
long getVideoTC()
void handleCallback(com.wowza.wms.request.RequestFunction function)
function - request functionboolean idle()
long incrementMediaInBytes(long increment)
increment - number of byte received
long incrementMediaLossBytes(long bytes,
long count)
bytes - number of bytes sentcount - number of packets sent
long incrementMediaOutBytes(long bytes,
long count)
bytes - number of bytes sentcount - number of packets sent
void init(MediaStreamMap parent,
int src,
WMSProperties properties)
parent - parent mediaStreamMap of the parent applicationInstancesrc - stream id for this streamproperties - initial properties as defined in Streams.xml
void initLiveStreamRepeating(String liveStreamPacketizer,
String liveStreamRepeater)
liveStreamPacketizer - live stream packetizerliveStreamRepeater - live stream repeater nameboolean isAppend()
boolean isClustered()
boolean isMediaCasterPlay()
boolean isMergeOnMetadata()
boolean isOpen()
boolean isPlay()
boolean isPlaying()
boolean isPublishStreamReady(boolean checkAudio,
boolean checkVideo)
checkAudio - check audio streamcheckVideo - check video stream
boolean isReceiveAudio()
boolean isReceiveVideo()
boolean isRecord()
boolean isSendPlayStopLogEvent()
boolean isSendPublishStopLogEvent()
boolean isSendRecordStopLogEvent()
double length()
void notifyActionOnMetaData(AMFPacket metaDataPacket)
metaDataPacket - metaDataPacket
void notifyActionPause(boolean isPause,
long location)
isPause - is pause or unpauselocation - timecode (milliseconds) of action
void notifyActionPauseRaw(boolean isPause,
long location)
isPause - is pause or unpauselocation - timecode (milliseconds) of action
void notifyActionPlay(String streamName,
double playStart,
double playLen,
int playReset)
streamName - stream nameplayStart - play startplayLen - play lengthplayReset - play reset
void notifyActionPublish(String streamName,
boolean isRecord,
boolean isAppend)
streamName - stream nameisRecord - is record or liveisAppend - is append if isRecord is truevoid notifyActionSeek(double location)
location - timecode (milliseconds) of seek requestvoid notifyActionStop()
void notifyActionUnPublish(String streamName,
boolean isRecord,
boolean isAppend)
streamName - stream nameisRecord - is record or liveisAppend - is append if isRecord is truevoid packetComplete()
void publish()
void registerCallback(String handlerName,
IMediaStreamCallback callback)
handlerName - handler namecallback - callback objectvoid registerOnPlayStatus(IMediaStreamCallback callback)
callback - callback objectvoid registerOnStatus(IMediaStreamCallback callback)
callback - callback objectvoid removeClientListener(IMediaStreamActionNotify actionListener)
actionListener - listenervoid removeClientListener(IMediaStreamActionNotify2 actionListener)
actionListener - listenervoid send(String handlerName)
handlerName - handler name
void send(String handlerName,
Object... params)
handlerName - handler nameparams - variable list of parameters. All parameters will be wrapped in AMFDataObj.
int sendControlBytes(int controlType,
java.io.OutputStream out)
controlType - control types (0, 1, 4)out - OutputStream
void sendDirect(String handlerName)
handlerName - handler name
void sendDirect(String handlerName,
Object... params)
handlerName - handler nameparams - variable list of parameters. All parameters will be wrapped in AMFDataObj.
int sendLivePlaySeek(java.io.OutputStream out,
String name,
long timecode)
out - OutputStreamname - stream nametimecode - timecode
int sendLivePlayStart(java.io.OutputStream out,
String name,
long timecode,
long timecodeOffset)
out - OutputStreamname - stream nametimecode - timecodetimecodeOffset - timecode offset
int sendLivePlaySwitch(java.io.OutputStream out,
String name,
long timecode)
out - OutputStreamname - stream nametimecode - timecode
int sendPauseNotify(long timecode,
String name)
timecode - timecode of eventname - stream name
int sendPauseNotify(java.io.OutputStream out,
long timecode,
String name)
out - OutputStreamtimecode - timecode of eventname - stream name
int sendPlayReset(java.io.OutputStream out,
String name)
out - OutputStreamname - stream name
int sendPlayReset(String name)
name - stream name
int sendPlaySeek(long location,
long seekLocation,
String name)
location - request location of seekseekLocation - result location of seekname - stream name
int sendPlaySeek(java.io.OutputStream out,
long location,
long seekLocation,
String name)
out - OutputStreamlocation - request location of seekseekLocation - result location of seekname - stream name
int sendPlaySeek(java.io.OutputStream out,
long location,
long seekLocation,
String name,
java.util.List<Integer> seekTypes)
out - OutputStreamlocation - request location of seekseekLocation - result location of seekname - stream nameseekTypes - list of commands to respond to (seek, unpause, play)
int sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
boolean isLive,
long timecode,
java.util.List<Integer> seekTypes)
out - OutputStreamname - stream nameisSwitch - is this a switch or a startisLive - is the stream livetimecode - timecode of eventseekTypes - commands to respond to (seek, unpause, play)
int sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode)
out - OutputStreamname - stream nameisSwitch - is this a switch or a starttimecode - timecode of event
int sendPlayStart(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode,
java.util.List<Integer> seekTypes)
out - OutputStreamname - stream nameisSwitch - is this a switch or a starttimecode - timecode of eventseekTypes - commands to respond to (seek, unpause, play)
int sendPlayStart(String name,
long timecode)
name - stream name
int sendPlayStatus(long timecode,
int statusType,
double duration,
double bytesSent)
timecode - timecode of eventstatusType - status type IMediaStreamPlay.PLAYSTATUSTYPE_*duration - (not used)bytesSent - (not used)
int sendPlayStatus(java.io.OutputStream out,
long timecode,
int statusType,
double duration,
double bytesSent)
out - OutputStreamtimecode - timecode of eventstatusType - status type IMediaStreamPlay.PLAYSTATUSTYPE_*duration - (not used)bytesSent - (not used)
int sendPlayStop(long location,
String name)
location - timecode where play stoppedname - stream name
int sendPlayStop(java.io.OutputStream out,
long location,
String name)
out - OutputStreamlocation - timecode where play stoppedname - stream name
int sendPlaySwitch(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode)
out - OutputStreamname - stream nameisSwitch - is this a switch or a starttimecode - timecode of event
int sendPlaySwitch(String name,
long timecode)
name - stream nametimecode - timecode of event
int sendStreamNotFound(java.io.OutputStream out,
String name)
out - OutputStreamname - stream name
int sendStreamNotFound(String name)
name - stream name
int sendUnpauseNotify(long location,
String name)
location - timecode of eventname - stream name
int sendUnpauseNotify(java.io.OutputStream out,
long location,
String name)
out - OutputStreamlocation - timecode of eventname - stream name
int sendUnpauseNotify(java.io.OutputStream out,
long location,
String name,
java.util.List<Integer> seekTypes)
out - OutputStreamlocation - timecode of eventname - stream nameseekTypes - list of operations to respond to (seek, play, unpause)
int sendVODPlaySwitch(java.io.OutputStream out,
String name,
long timecode)
out - OutputStreamname - stream nametimecode - timecode
void setAppend(boolean isAppend)
isAppend - is appending or rewriting media filevoid setAudioSize(int audioSize)
audioSize - void setAudioTC(long audioTC)
audioTC - timecode (millseconds)
void setAudioTC(long audioTC,
boolean isAbsolute)
audioTC - timecode (millseconds)isAbsolute - is the timecode value relative to last timecode or absolutevoid setBufferTime(int bufferTime)
bufferTime - buffer time (millseconds)void setClient(IClient client)
client - parent client connectionvoid setClustered(boolean isClustered)
isClustered - void setDataSize(int dataSize)
dataSize - void setDataTC(long dataTC)
dataTC - timecode (millseconds)
void setDataTC(long dataTC,
boolean isAbsolute)
dataTC - timecode (millseconds)isAbsolute - is the timecode value relative to last timecode or absolutevoid setDataType(int dataType)
dataType - data packet typevoid setExt(String ext)
ext - void setFastPlaySettings(FastPlaySettings fastPlaySettings)
fastPlaySettings - fastPlay settingsvoid setHeaderSize(int headerSize)
headerSize - last packet header sizevoid setHTTPStreamerSession(IHTTPStreamerSession httpStreamerSession)
httpStreamerSession - HTTPStreamer session associated with this streamvoid setIsPlaying(boolean isPlaying)
isPlaying - void setLiveStreamPacketizer(String liveStreamPacketizer)
liveStreamPacketizer - live stream packetizervoid setLiveStreamPacketizerList(String liveStreamPacketizerList)
liveStreamPacketizerList - comma separated list of LiveStreamPacketizers namesvoid setLiveStreamRepeater(String liveStreamRepeater)
liveStreamRepeater - live stream repeater namevoid setMediaCasterPlay(boolean isMediaCasterPlay)
isMediaCasterPlay - true if MediaCaster play enabledvoid setMergeOnMetadata(boolean mergeOnMetadata)
mergeOnMetadata - true, merge incoming onMetadata events with the current onMetdata event data. If false, replace.void setMetaDataProvider(IMediaStreamMetaDataProvider metaDataProvider)
metaDataProvider - metaData providervoid setName(String name)
name - stream name
void setName(String name,
String ext)
name - stream nameext - stream extension
void setName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
name - stream nameoldName - old stream nameext - stream extensionqueryStr - query stringplayStart - play startplayLen - play lenplayTransition - play transition (see MediaBase.PLAYTRANSITION_*)void setNetConnection(com.wowza.wms.netconnection.INetConnection netConnection)
netConnection - netConnection connectionvoid setOpen(boolean isOpen)
isOpen - mediaStream openvoid setPlay(boolean isPlay)
isPlay - is play stream (has nothing to do with if its playing just that its play vs publish)void setPlayer(IMediaStreamPlay player)
player - underlying player (IMediaStreamPlay) objectvoid setPublishAudioCodecId(int publishAudioCodecId)
publishAudioCodecId - codec id of the most recently published audio packetvoid setPublishVideoCodecId(int publishVideoCodecId)
publishVideoCodecId - codec id of the most recently published video packetvoid setQueryStr(String queryStr)
queryStr - void setReceiveAudio(boolean receiveAudio)
receiveAudio - receive audiovoid setReceiveVideo(boolean receiveVideo)
receiveVideo - receive videovoid setReceiveVideoFPS(int receiveVideoFPS)
receiveVideoFPS - video frames per secondvoid setRecord(boolean isRecord)
isRecord - void setRTPStream(RTPStream rtpStream)
rtpStream - RTP based stream this stream is associated withvoid setSendPlayStopLogEvent(boolean sendPlayStopLogEvent)
sendPlayStopLogEvent - need to send a log event for stopvoid setSendPublishStopLogEvent(boolean sendPlayStopLogEvent)
sendPlayStopLogEvent - need to send a log event for stopvoid setSendRecordStopLogEvent(boolean sendPlayStopLogEvent)
sendPlayStopLogEvent - need to send a log event for stopvoid setSrc(int src)
src - stream idvoid setStreamType(String streamType)
streamType - void setVideoSize(int videoSize)
videoSize - void setVideoTC(long videoTC)
videoTC - timecode (millseconds)
void setVideoTC(long videoTC,
boolean isAbsolute)
videoTC - timecode (millseconds)isAbsolute - is the timecode value relative to last timecode or absolutevoid shutdown()
long size()
void startAudioPacket()
void startDataPacket()
void startPublishing()
void startVideoPacket()
void stopName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
name - stream nameoldName - old stream nameext - stream extensionqueryStr - query stringplayStart - play startplayLen - play lenplayTransition - play transition (see MediaBase.PLAYTRANSITION_*)void stopPublishing()
void switchName(String name,
String oldName,
String ext,
String queryStr,
double playStart,
double playLen,
int playTransition)
name - stream nameoldName - old stream nameext - stream extensionqueryStr - query stringplayStart - play startplayLen - play lenplayTransition - play transition (see MediaBase.PLAYTRANSITION_*)void trim()
void unregisterCallback(String handlerName)
handlerName - handler namevoid unregisterOnPlayStatus(IMediaStreamCallback callback)
callback - callback objectvoid unregisterOnStatus(IMediaStreamCallback callback)
callback - void updateLoggingDuration()
void updateLoggingValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||