Package com.wowza.wms.stream
Interface IMediaStream
- 
- All Known Implementing Classes:
- com.wowza.wms.stream.MediaStream,- MediaStreamBase
 
 public interface IMediaStreamIMediaStream: 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 SummaryFields Modifier and Type Field Description static intAUDIOSAMPLEACCESSstatic intPACKET_COUNTS_AUDIOstatic intPACKET_COUNTS_DATAstatic intPACKET_COUNTS_SIZEstatic intPACKET_COUNTS_VIDEOstatic intPACKET_COUNTS_VIDEOKEYstatic intPUBLISH_BITRATE_SOURCE_LASTGOPstatic intPUBLISH_BITRATE_SOURCE_MEASUREstatic intPUBLISH_BITRATE_SOURCE_METADATAstatic intPUBLISH_FRAMERATE_SOURCE_MEASUREstatic intPUBLISH_FRAMERATE_SOURCE_METADATAstatic intREADACCESSstatic intVIDEOSAMPLEACCESSstatic intWRITEACCESS
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddAudioCodecConfigPacket(long timecode, AMFPacket packet)Set audio codec configuration packet (needed for H.264/AAC playback)voidaddAudioData(byte[] data, int offset, int size)Add data to current audio packetvoidaddAudioExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)Add extra data to the current audio packetvoidaddCalbackListener(IMediaStreamCallback callbackListener)Add a callback listener to listen for all stream metadatavoidaddClientListener(IMediaStreamActionNotify actionListener)Add client listener.voidaddClientListener(IMediaStreamActionNotify2 actionListener)Add client listener.voidaddClientListener(IMediaStreamActionNotify3 actionListener)Add client listener.voidaddDataData(byte[] data, int offset, int size)Add data to current data packetvoidaddDataExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)Add extra data to the current data packetvoidaddLivePacketListener(IMediaStreamLivePacketNotify listener)Add a listener to receiver notification of new live AMF packetsvoidaddVideoCodecConfigPacket(long timecode, AMFPacket packet)Set video codec configuration packet (needed for H.264/AAC playback)voidaddVideoData(byte[] data, int offset, int size)Add data to current video packetvoidaddVideoExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)Add extra data to the current video packetvoidaddVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener)Add an H.264 SEI listener.voidclear()Delete media file pointed to by this mediaStream (be careful)voidclearFastPlaySettings()Clear fastPlay settingsvoidclearLoggingValues()voidclose()Close mediaStreamvoidflush()Force publishing packets to be flushed from the input buffers to the output buffersboolean[]getAccess(IClient client, String name)Get the read/write access to this stream for this clientAMFPacketgetAudioCodecConfigPacket(long timecode)Get audio codec configuration packet (needed for H.264/AAC playback)intgetAudioMissing()Get number of audio bytes missing from current audio packetintgetAudioSize()Get the size of the current audio packet that is being streamed from the client to the serverlonggetAudioTC()Get last absolute audio timecode (milliseconds) sent to mediaStreamintgetBufferTime()Get buffer time for mediaStream (milliseconds)byte[]getBurstStartStop(boolean isStart)Get the dynamic streaming burst start/stop AMF packetStringgetCacheName()not usedIClientgetClient()Get parent client connectionintgetClientId()Get parent client connection (id)StringgetContextStr()Returns the stream context string in the form [application]/[appInstance]/[streamName].intgetDataMissing()Get number of data bytes missing from current data packetintgetDataSize()Get the size of the current data packet that is being streamed from the client to the serverlonggetDataTC()Get last absolute data timecode (milliseconds) sent to mediaStreamintgetDataType()Get the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3)StringgetDvrRecorder()Get the DVR Recorder for this streamILiveStreamDvrRecordergetDvrRecorder(String name)Get the DVR Recorder interface to a stream by nameStringgetDvrRecorderList()Get the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)StringgetDvrRepeater()Get the DVR repeater name for this streamElapsedTimergetElapsedTime()Get the interface to the elapse timerStringgetExt()Get media file extensioncom.wowza.wms.stream.FastPlaySettingsgetFastPlaySettings()Get current fastPlay settingsintgetHeaderSize()Get the last packet header size (debugging)IHTTPStreamerSessiongetHTTPStreamerSession()Get the HTTPStreamer session associated with this streamdefault booleangetIsSRT()booleangetIsWebRTC()AMFPacketgetLastKeyFrame()Get most recent video key frameAMFPacketgetLastPacket()Get most recent live packetStringgetLiveStreamPacketizer()Get the live stream packetizer that this stream is usingILiveStreamPacketizergetLiveStreamPacketizer(String name)Get the LiveStreamPacketizer interface to a stream by nameStringgetLiveStreamPacketizerList()Get the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml)StringgetLiveStreamRepeater()Get the live stream repeater name for the streamILiveStreamTranscodergetLiveStreamTranscoder(String name)Get a live stream transcoder for this stream by nameStringgetLiveStreamTranscoderList()Get the comma separated list of LiveStreamTranscoders names being used by this stream (see conf/LiveStreamTranscoders.xml)java.util.Map<String,ILiveStreamTranscoder>getLiveStreamTranscoders()Get the list of transcoders for this stream.longgetMaxTimecode()Get the timecode of the latest received packetIOPerformanceCountergetMediaIOPerformance()Get IO performance counterIMediaStreamMetaDataProvidergetMetaDataProvider()Get the metaData providerStringgetName()Get stream nameINetConnectiongetNetConnection()Get parent netConnection (future server to server communication)IMediaStreamPlaygetPlayer()Get underlying player (IMediaStreamPlay) objectjava.util.List<AMFPacket>getPlayPackets()Get all available live packetsWMSPropertiesgetProperties()Get mediaStream propertiesintgetPublishAudioCodecId()Get the codec id of the most recently published audio packetintgetPublishBitrateAudio()Get the audio bitrate of an incoming live published stream (bits per second).intgetPublishBitrateAudio(int source)Get the audio bitrate of an incoming live published stream (bits per second).intgetPublishBitrateVideo()Get the video bitrate of an incoming live published stream (bits per second).intgetPublishBitrateVideo(int source)Get the video bitrate of an incoming live published stream (bits per second).longgetPublishFrameCountAudio()Get the total number of audio frames received for an incoming live stream.longgetPublishFrameCountData()Get the total number of data frames received for an incoming live stream.longgetPublishFrameCounts(long[] counts)Get the total number of frames received for an incoming live stream.longgetPublishFrameCountVideo()Get the total number of video frames received for an incoming live stream.longgetPublishFrameCountVideoKey()Get the total number of video key frames received for an incoming live stream.doublegetPublishFramerateVideo()Get the video framerate of an incoming live published stream (frames per second).doublegetPublishFramerateVideo(int source)Get the video framerate of an incoming live published stream (frames per second).int[]getPublishKeyFrameIntervalsVideo()Get the last n key frame intervals for an incoming publish stream (frames per GOP), Most recent GOPs are first in the list.intgetPublishVideoCodecId()Get the codec id of the most recently published video packetStringgetQueryStr()Get play/publish name query string.intgetReceiveVideoFPS()Set frame per seconds for video (not currently implemented)AMFObjgetRespAMFAudioObj()Get audio response channel objectAMFObjgetRespAMFDataObj()Get data response channel objectAMFObjgetRespAMFVideoObj()Get video response channel objectRTPStreamgetRTPStream()Get the RTP based stream this stream is associated withintgetSrc()Get the stream idjava.io.FilegetStreamFileForRead()Get the File object to read from a stream (get stream name, ext and query from stream object)java.io.FilegetStreamFileForRead(String name, String ext, String query)Get the File object to read from a stream (specify name, ext and query)java.io.FilegetStreamFileForWrite()Get the File object to write to a stream (get stream name, ext and query from stream object)java.io.FilegetStreamFileForWrite(String name, String ext, String query)Get the File object to write to a stream (specify name, ext and query)MediaStreamMapgetStreams()Get parent mediaStreamMap (owned by applicationInstance)StringgetStreamType()Get mediaStream streamTypecom.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfogetTranscoderEncoderStreamInfo()Get the transcoder encoder context information for this stream.com.wowza.wms.transcoder.model.TranscoderSessionDestinationgetTranscoderSessionDestination()If stream is result of transcode get the transcoder stream session for this stream.StringgetUniqueStreamIdStr()Get a string that uniquely identifies this streamAMFPacketgetVideoCodecConfigPacket(long timecode)Get video codec configuration packet (needed for H.264/AAC playback)intgetVideoMissing()Get number of video bytes missing from current video packetintgetVideoSize()Get the size of the current video packet that is being streamed from the client to the serverlonggetVideoTC()Get last absolute video timecode (milliseconds) sent to mediaStreamvoidhandleCallback(com.wowza.wms.request.RequestFunction function)Routes request function to callback handler onStatus, onPlayStatus or [method/handler]booleanidle()Allow the mediaStream to perform idle work (not currently in use)longincrementMediaInBytes(long increment)Increment the number of mediaStream bytes receivedlongincrementMediaLossBytes(long bytes, long count)Increment the number of mediaStream loss bytes sent and number of packets sentlongincrementMediaOutBytes(long bytes, long count)Increment the number of mediaStream bytes sent and number of packets sentvoidinit(MediaStreamMap parent, int src, WMSProperties properties)Initialize the mediaStream object after creation.voidinitLiveStreamRepeating(String liveStreamPacketizer, String liveStreamRepeater)Initialize this stream for live stream repeatingbooleanisAppend()Is append to media file (only valid if isRecord)booleanisClustered()not usedbooleanisMediaCasterPlay()Is MediaCaster play enabled (if true, will trigger MediaCaster startup)booleanisMergeOnMetadata()If true, merge incoming onMetadata events with the current onMetdata event data.booleanisOpen()Is mediaStream openbooleanisPlay()Is the stream a play stream (vs a publish stream)booleanisPlaying()Is mediaStream playing (or paused - false)booleanisPublisherStream()Returns true if stream was created by stream publisher API.booleanisPublishStreamReady(boolean checkAudio, boolean checkVideo)Returns true if the publishing stream contains enough video/audio data to start playbackbooleanisReceiveAudio()Is client currently receiving audio.booleanisReceiveVideo()Is client currently receiving video.booleanisRecord()Is set to true if second parameter of NetStream.publish is "record"booleanisSendPlayStopLogEvent()Get need to send a log event for stopbooleanisSendPublishStopLogEvent()Get need to send a log event for publishingbooleanisSendRecordStopLogEvent()Get need to send a log event for recordingbooleanisTranscoderEncoderStreamRoot()True if this stream object is a transcoder encoder stream root.booleanisTranscodeResult()Is this stream the result of a transcode operation.booleanisVideoH264SEIListenerEmpty()Is H.264 SEI listener list empty.doublelength()Get length/duration (seconds) of media file pointed to by mediaStreamvoidnotifyActionOnCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)Notify client listeners of audio codec information changevoidnotifyActionOnCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)Notify client listeners of video codec information changevoidnotifyActionOnMetaData(AMFPacket metaDataPacket)Notify client listeners of onMetaData changevoidnotifyActionPause(boolean isPause, long location)Notify client listeners of pause actionvoidnotifyActionPauseRaw(boolean isPause, long location)Notify client listeners of pauseRaw actionvoidnotifyActionPlay(String streamName, double playStart, double playLen, int playReset)Notify client listeners of play actionvoidnotifyActionPublish(String streamName, boolean isRecord, boolean isAppend)Notify client listeners of publish actionvoidnotifyActionSeek(double location)Notify client listeners of seek actionvoidnotifyActionStop()Notify client listeners of stop actionvoidnotifyActionUnPublish(String streamName, boolean isRecord, boolean isAppend)Notify client listeners of unpublish actionvoidnotifyLivePacket(AMFPacket packet)Notify new live AMF packetvoidnotifyVideoH264Packet(AMFPacket packet, com.wowza.wms.media.h264.H264SEIMessages seiMessages)Notify H.264 SEI listener.voidpacketComplete()Invoked by requestAdapter when at the end of a set of packetsvoidpublish()Publish mediaStreamvoidputDvrRecorder(String name, ILiveStreamDvrRecorder dvr)Add a live stream dvr to this streamvoidputLiveStreamTranscoder(String name, ILiveStreamTranscoder liveStreamTranscoder)Add a live stream transcoder to this streamvoidregisterCallback(String handlerName, IMediaStreamCallback callback)Register a callback handlervoidregisterOnPlayStatus(IMediaStreamCallback callback)Register onPlayStatus handlervoidregisterOnStatus(IMediaStreamCallback callback)Register onStatus handlervoidremoveCalbackListener(IMediaStreamCallback callbackListener)Remove a callback listener to listen for all stream metadatavoidremoveClientListener(IMediaStreamActionNotify actionListener)Remove client listener.voidremoveClientListener(IMediaStreamActionNotify2 actionListener)Remove client listener.voidremoveClientListener(IMediaStreamActionNotify3 actionListener)Remove client listener.ILiveStreamDvrRecorderremoveDvrRecorder(String name)Remove a live stream dvr by namevoidremoveLivePacketListener(IMediaStreamLivePacketNotify listener)Remove a listener to receiver notification of new live AMF packetsILiveStreamTranscoderremoveLiveStreamTranscoder(String name)Remove a live stream transcoder by namevoidremoveVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener)Remove an H.264 SEI listener.voidsend(String handlerName)Call client side NetStream method/handler with no parametersvoidsend(String handlerName, Object... params)Call client side NetStream method/handlervoidsendAMF3(String handlerName)Call client side NetStream method/handler with no parameters.voidsendAMF3(String handlerName, Object... params)Call client side NetStream method/handler.intsendControlBytes(int controlType, java.io.OutputStream out)Send playback control bytes.voidsendDirect(String handlerName)Call client side NetStream method/handler and send event to underlying stream (will record event)voidsendDirect(String handlerName, Object... params)Call client side NetStream method/handler and send event to underlying stream (will record event)voidsendDirectAMF3(String handlerName)Call client side NetStream method/handler and send event to underlying stream (will record event).voidsendDirectAMF3(String handlerName, Object... params)Call client side NetStream method/handler and send event to underlying stream (will record event).intsendLivePlaySeek(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Seek.Notify) eventintsendLivePlayStart(java.io.OutputStream out, String name, long timecode, long timecodeOffset)Send onStatus(NetStream.Play.Start) eventintsendLivePlaySwitch(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Play.Transition) eventintsendPauseNotify(long timecode, String name)Send onStatus(NetStream.Pause.Notify) eventintsendPauseNotify(java.io.OutputStream out, long timecode, String name)Send onStatus(NetStream.Pause.Notify) event.intsendPlayReset(java.io.OutputStream out, String name)Send onStatus(NetStream.Play.Reset) event.intsendPlayReset(String name)Send onStatus(NetStream.Play.Reset) eventintsendPlaySeek(long location, long seekLocation, String name)Send onStatus(NetStream.Seek.Notify) event.intsendPlaySeek(java.io.OutputStream out, long location, long seekLocation, String name)Send onStatus(NetStream.Seek.Notify) event.intsendPlaySeek(java.io.OutputStream out, long location, long seekLocation, String name, java.util.List<Integer> seekTypes)Send onStatus(NetStream.Seek.Notify) event.intsendPlayStart(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).intsendPlayStart(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).intsendPlayStart(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).intsendPlayStart(String name, long timecode)Send onStatus(NetStream.Play.Start) eventintsendPlayStatus(long timecode, int statusType, double duration, double bytesSent)Send onPlayStatus(NetStream.Play.Switch, NetStream.Play.Complete, NetStream.Play.Stop) eventintsendPlayStatus(java.io.OutputStream out, long timecode, int statusType, double duration, double bytesSent)Send onPlayStatus(NetStream.Play.Switch, NetStream.Play.Complete, NetStream.Play.Stop) event.intsendPlayStop(long location, String name)Send onStatus(NetStream.Play.Stop) eventintsendPlayStop(java.io.OutputStream out, long location, String name)Send onStatus(NetStream.Play.Stop) event.intsendPlaySwitch(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).intsendPlaySwitch(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).intsendStreamNotFound(java.io.OutputStream out, String name)Send onStatus(NetStream.Play.StreamNotFound) event.intsendStreamNotFound(String name)Send onStatus(NetStream.Play.StreamNotFound) eventintsendUnpauseNotify(long location, String name)Send onStatus(NetStream.Unpause.Notify) eventintsendUnpauseNotify(java.io.OutputStream out, long location, String name)Send onStatus(NetStream.Unpause.Notify) event.intsendUnpauseNotify(java.io.OutputStream out, long location, String name, java.util.List<Integer> seekTypes)Send onStatus(NetStream.Unpause.Notify) eventintsendVODPlaySwitch(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Play.Transition) eventvoidsetAppend(boolean isAppend)Set is append to media file (only valid if isRecord)voidsetAudioSize(int audioSize)Set the size of the current audio packet that is being streamed from the client to the servervoidsetAudioTC(long audioTC)Set last absolute audio timecode (milliseconds) sent to mediaStreamvoidsetAudioTC(long audioTC, boolean isAbsolute)Set last absolute audio timecode (milliseconds) sent to mediaStreamvoidsetBufferTime(int bufferTime)Set buffer time for mediaStream (milliseconds)voidsetClient(IClient client)Set parent client connectionvoidsetClustered(boolean isClustered)not usedvoidsetDataSize(int dataSize)Set the size of the current data packet that is being streamed from the client to the servervoidsetDataTC(long dataTC)Set last absolute data timecode (milliseconds) sent to mediaStreamvoidsetDataTC(long dataTC, boolean isAbsolute)Set last absolute data timecode (milliseconds) sent to mediaStreamvoidsetDataType(int dataType)Set the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3)voidsetDvrRecorder(String recorderName)Set the DVR Recorder that this stream is usingvoidsetDvrRecorderList(String recorderList)Set the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)voidsetExt(String ext)Set media file extensionvoidsetFastPlaySettings(com.wowza.wms.stream.FastPlaySettings fastPlaySettings)Set fastPlay settingsvoidsetHeaderSize(int headerSize)Set the last packet header size (debugging)voidsetHTTPStreamerSession(IHTTPStreamerSession httpStreamerSession)Set the HTTPStreamer session associated with this streamvoidsetIsPlaying(boolean isPlaying)Set is mediaStream playingdefault voidsetIsSRT(boolean isSRT)voidsetIsWebRTC(boolean isWebRTC)voidsetLiveStreamPacketizer(String liveStreamPacketizer)Set the live stream packetizer that this stream is usingvoidsetLiveStreamPacketizerList(String liveStreamPacketizerList)Set the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml)voidsetLiveStreamRepeater(String liveStreamRepeater)Set the live stream repeater name for the streamvoidsetLiveStreamTranscoderList(String liveStreamTranscoderList)Set the comma separated list of LiveStreamTranscoders names being used by this stream (see conf/LiveStreamTranscoders.xml)voidsetMediaCasterPlay(boolean isMediaCasterPlay)Is MediaCaster play enabled (if true, will trigger MediaCaster startup)voidsetMergeOnMetadata(boolean mergeOnMetadata)If true, merge incoming onMetadata events with the current onMetdata event data.voidsetMetaDataProvider(IMediaStreamMetaDataProvider metaDataProvider)Set the metaData providervoidsetName(String name)Set stream namevoidsetName(String name, String ext)Set stream name and extension.voidsetName(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.voidsetNetConnection(INetConnection netConnection)Set parent netConnection (future server to server communication)voidsetOpen(boolean isOpen)Set mediaStream openvoidsetPlay(boolean isPlay)Set is the stream a play stream (vs a publish stream)voidsetPlayer(IMediaStreamPlay player)Set underlying player (IMediaStreamPlay) objectvoidsetPublishAudioCodecId(int publishAudioCodecId)Set the codec id of the most recently published audio packetvoidsetPublisherStream(boolean isPublisherStream)Set stream was created by stream publisher.voidsetPublishVideoCodecId(int publishVideoCodecId)Set the codec id of the most recently published video packetvoidsetQueryStr(String queryStr)Set play/publish name query string.voidsetReceiveAudio(boolean receiveAudio)Set receive audiovoidsetReceiveVideo(boolean receiveVideo)Set receive videovoidsetReceiveVideoFPS(int receiveVideoFPS)Set frame per second for video (not currently implemented)voidsetRecord(boolean isRecord)Set to true if second parameter of NetStream.publish is "record"voidsetRTPStream(RTPStream rtpStream)Set the RTP based stream this stream is associated withvoidsetSendPlayStopLogEvent(boolean sendPlayStopLogEvent)Set need to send a log event for stopvoidsetSendPublishStopLogEvent(boolean sendPlayStopLogEvent)Set need to send a log event for publishingvoidsetSendRecordStopLogEvent(boolean sendPlayStopLogEvent)Set need to send a log event for recordingvoidsetSrc(int src)Set stream idvoidsetStreamType(String streamType)Set mediaStream streamType.voidsetTranscoderEncoderStreamInfo(com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo transcoderEncoderStreamInfo)Set the transcoder encoder context information for this stream.voidsetTranscodeResult(boolean isTranscodeResult)Is this stream the result of a transcode operation.voidsetVideoSize(int videoSize)Set the size of the current video packet that is being streamed from the client to the servervoidsetVideoTC(long videoTC)Set last absolute video timecode (milliseconds) sent to mediaStreamvoidsetVideoTC(long videoTC, boolean isAbsolute)Set last absolute video timecode (milliseconds) sent to mediaStreamvoidshutdown()shutdown or close this mediaStreamlongsize()Get size (bytes) of media file pointed to by mediaStreamvoidstartAudioPacket()Called when an audio packet is first being populated with datavoidstartDataPacket()Called when a data packet is first being populated with datavoidstartPublishing()Start publishing live streamvoidstartVideoPacket()Called when a video packet is first being populated with datavoidstopName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Stop stream namevoidstopPublishing()Stop publishing live streamvoidswitchName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Switch to stream namevoidtrim()Trim mediaStream.voidunregisterCallback(String handlerName)Unregister a callback handlervoidunregisterOnPlayStatus(IMediaStreamCallback callback)Unregister onPlayStatus handlervoidunregisterOnStatus(IMediaStreamCallback callback)Unregister onStatus handlervoidupdateLoggingDuration()Update logging.MDC with mediaStream logging informationvoidupdateLoggingValues()Update logging.MDC with mediaStream logging information
 
- 
- 
- 
Field Detail- 
READACCESSstatic final int READACCESS - See Also:
- Constant Field Values
 
 - 
WRITEACCESSstatic final int WRITEACCESS - See Also:
- Constant Field Values
 
 - 
AUDIOSAMPLEACCESSstatic final int AUDIOSAMPLEACCESS - See Also:
- Constant Field Values
 
 - 
VIDEOSAMPLEACCESSstatic final int VIDEOSAMPLEACCESS - See Also:
- Constant Field Values
 
 - 
PUBLISH_BITRATE_SOURCE_MEASUREstatic final int PUBLISH_BITRATE_SOURCE_MEASURE - See Also:
- Constant Field Values
 
 - 
PUBLISH_BITRATE_SOURCE_METADATAstatic final int PUBLISH_BITRATE_SOURCE_METADATA - See Also:
- Constant Field Values
 
 - 
PUBLISH_BITRATE_SOURCE_LASTGOPstatic final int PUBLISH_BITRATE_SOURCE_LASTGOP - See Also:
- Constant Field Values
 
 - 
PUBLISH_FRAMERATE_SOURCE_MEASUREstatic final int PUBLISH_FRAMERATE_SOURCE_MEASURE - See Also:
- Constant Field Values
 
 - 
PUBLISH_FRAMERATE_SOURCE_METADATAstatic final int PUBLISH_FRAMERATE_SOURCE_METADATA - See Also:
- Constant Field Values
 
 - 
PACKET_COUNTS_AUDIOstatic final int PACKET_COUNTS_AUDIO - See Also:
- Constant Field Values
 
 - 
PACKET_COUNTS_VIDEOstatic final int PACKET_COUNTS_VIDEO - See Also:
- Constant Field Values
 
 - 
PACKET_COUNTS_VIDEOKEYstatic final int PACKET_COUNTS_VIDEOKEY - See Also:
- Constant Field Values
 
 - 
PACKET_COUNTS_DATAstatic final int PACKET_COUNTS_DATA - See Also:
- Constant Field Values
 
 - 
PACKET_COUNTS_SIZEstatic final int PACKET_COUNTS_SIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
initvoid init(MediaStreamMap parent, int src, WMSProperties properties) Initialize the mediaStream object after creation. Creation and initialization are separated due to the order of the creation events.- Parameters:
- parent- parent mediaStreamMap of the parent applicationInstance
- src- stream id for this stream
- properties- initial properties as defined in Streams.xml
 
 - 
getBufferTimeint getBufferTime() Get buffer time for mediaStream (milliseconds)- Returns:
- buffer time (millseconds)
 
 - 
setBufferTimevoid setBufferTime(int bufferTime) Set buffer time for mediaStream (milliseconds)- Parameters:
- bufferTime- buffer time (millseconds)
 
 - 
isPlayingboolean isPlaying() Is mediaStream playing (or paused - false)- Returns:
- is playing
 
 - 
setIsPlayingvoid setIsPlaying(boolean isPlaying) Set is mediaStream playing- Parameters:
- isPlaying-
 
 - 
getAudioSizeint getAudioSize() Get the size of the current audio packet that is being streamed from the client to the server- Returns:
- size
 
 - 
getVideoSizeint getVideoSize() Get the size of the current video packet that is being streamed from the client to the server- Returns:
- size
 
 - 
getDataSizeint getDataSize() Get the size of the current data packet that is being streamed from the client to the server- Returns:
- size
 
 - 
setAudioSizevoid setAudioSize(int audioSize) Set the size of the current audio packet that is being streamed from the client to the server- Parameters:
- audioSize-
 
 - 
setVideoSizevoid setVideoSize(int videoSize) Set the size of the current video packet that is being streamed from the client to the server- Parameters:
- videoSize-
 
 - 
setDataSizevoid setDataSize(int dataSize) Set the size of the current data packet that is being streamed from the client to the server- Parameters:
- dataSize-
 
 - 
addAudioExtraDatavoid addAudioExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) Add extra data to the current audio packet- Parameters:
- extraData- extra data
 
 - 
addVideoExtraDatavoid addVideoExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) Add extra data to the current video packet- Parameters:
- extraData- extra data
 
 - 
addDataExtraDatavoid addDataExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) Add extra data to the current data packet- Parameters:
- extraData- extra data
 
 - 
getSrcint getSrc() Get the stream id- Returns:
- stream id
 
 - 
setSrcvoid setSrc(int src) Set stream id- Parameters:
- src- stream id
 
 - 
getNameString getName() Get stream name- Returns:
- stream name
 
 - 
setNamevoid setName(String name) Set stream name- Parameters:
- name- stream name
 
 - 
setNamevoid setName(String name, String ext)Set stream name and extension. Example: if play command sent flv:test name=test, ext=flv.- Parameters:
- name- stream name
- ext- stream extension
 
 - 
setNamevoid 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.- Parameters:
- name- stream name
- oldName- old stream name
- ext- stream extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play transition (see MediaBase.PLAYTRANSITION_*)
 
 - 
switchNamevoid switchName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Switch to stream name- Parameters:
- name- stream name
- oldName- old stream name
- ext- stream extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play transition (see MediaBase.PLAYTRANSITION_*)
 
 - 
stopNamevoid stopName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Stop stream name- Parameters:
- name- stream name
- oldName- old stream name
- ext- stream extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play transition (see MediaBase.PLAYTRANSITION_*)
 
 - 
shutdownvoid shutdown() shutdown or close this mediaStream
 - 
getAudioTClong getAudioTC() Get last absolute audio timecode (milliseconds) sent to mediaStream- Returns:
- last absolute audio timecode (milliseconds)
 
 - 
setAudioTCvoid setAudioTC(long audioTC, boolean isAbsolute)Set last absolute audio timecode (milliseconds) sent to mediaStream- Parameters:
- audioTC- timecode (millseconds)
- isAbsolute- is the timecode value relative to last timecode or absolute
 
 - 
setAudioTCvoid setAudioTC(long audioTC) Set last absolute audio timecode (milliseconds) sent to mediaStream- Parameters:
- audioTC- timecode (millseconds)
 
 - 
getVideoTClong getVideoTC() Get last absolute video timecode (milliseconds) sent to mediaStream- Returns:
- last absolute video timecode (milliseconds)
 
 - 
setVideoTCvoid setVideoTC(long videoTC, boolean isAbsolute)Set last absolute video timecode (milliseconds) sent to mediaStream- Parameters:
- videoTC- timecode (millseconds)
- isAbsolute- is the timecode value relative to last timecode or absolute
 
 - 
setVideoTCvoid setVideoTC(long videoTC) Set last absolute video timecode (milliseconds) sent to mediaStream- Parameters:
- videoTC- timecode (millseconds)
 
 - 
getDataTClong getDataTC() Get last absolute data timecode (milliseconds) sent to mediaStream- Returns:
- last absolute data timecode (milliseconds)
 
 - 
setDataTCvoid setDataTC(long dataTC, boolean isAbsolute)Set last absolute data timecode (milliseconds) sent to mediaStream- Parameters:
- dataTC- timecode (millseconds)
- isAbsolute- is the timecode value relative to last timecode or absolute
 
 - 
getDataTypeint getDataType() Get the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3)- Returns:
- data packet type
 
 - 
setDataTypevoid setDataType(int dataType) Set the data packet type: (IVHost.CONTENTTYPE_DATA0 or IVHost.CONTENTTYPE_DATA3)- Parameters:
- dataType- data packet type
 
 - 
setDataTCvoid setDataTC(long dataTC) Set last absolute data timecode (milliseconds) sent to mediaStream- Parameters:
- dataTC- timecode (millseconds)
 
 - 
isRecordboolean isRecord() Is set to true if second parameter of NetStream.publish is "record"- Returns:
- is true if second parameter of NetStream.publish is "record"
 
 - 
setRecordvoid setRecord(boolean isRecord) Set to true if second parameter of NetStream.publish is "record"- Parameters:
- isRecord- true if second parameter of NetStream.publish is "record"
 
 - 
isPlayboolean isPlay() Is the stream a play stream (vs a publish stream)- Returns:
- is play stream (has nothing to do with if its playing just that its play vs publish)
 
 - 
setPlayvoid setPlay(boolean isPlay) Set is the stream a play stream (vs a publish stream)- Parameters:
- isPlay- is play stream (has nothing to do with if its playing just that its play vs publish)
 
 - 
idleboolean idle() Allow the mediaStream to perform idle work (not currently in use)- Returns:
- true if it did some work
 
 - 
getClientIdint getClientId() Get parent client connection (id)- Returns:
- parent client connection (id)
 
 - 
getClientIClient getClient() Get parent client connection- Returns:
- parent client connection
 
 - 
getNetConnectionINetConnection getNetConnection() Get parent netConnection (future server to server communication)- Returns:
- parent netConnection connection
 
 - 
setNetConnectionvoid setNetConnection(INetConnection netConnection) Set parent netConnection (future server to server communication)- Parameters:
- netConnection- netConnection connection
 
 - 
setClientvoid setClient(IClient client) Set parent client connection- Parameters:
- client- parent client connection
 
 - 
getStreamsMediaStreamMap getStreams() Get parent mediaStreamMap (owned by applicationInstance)- Returns:
- parent mediaStreamMap
 
 - 
packetCompletevoid packetComplete() Invoked by requestAdapter when at the end of a set of packets
 - 
sendStreamNotFoundint sendStreamNotFound(String name) Send onStatus(NetStream.Play.StreamNotFound) event- Parameters:
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendStreamNotFoundint sendStreamNotFound(java.io.OutputStream out, String name)Send onStatus(NetStream.Play.StreamNotFound) event. Send directly to OutputStream.- Parameters:
- out- OutputStream
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendLivePlayStartint sendLivePlayStart(java.io.OutputStream out, String name, long timecode, long timecodeOffset)Send onStatus(NetStream.Play.Start) event- Parameters:
- out- OutputStream
- name- stream name
- timecode- timecode
- timecodeOffset- timecode offset
- Returns:
- bytes sent to client
 
 - 
sendVODPlaySwitchint sendVODPlaySwitch(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Play.Transition) event- Parameters:
- out- OutputStream
- name- stream name
- timecode- timecode
- Returns:
- bytes sent to client
 
 - 
sendLivePlaySwitchint sendLivePlaySwitch(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Play.Transition) event- Parameters:
- out- OutputStream
- name- stream name
- timecode- timecode
- Returns:
- bytes sent to client
 
 - 
sendLivePlaySeekint sendLivePlaySeek(java.io.OutputStream out, String name, long timecode)Send onStatus(NetStream.Seek.Notify) event- Parameters:
- out- OutputStream
- name- stream name
- timecode- timecode
- Returns:
- bytes sent to client
 
 - 
sendPlayResetint sendPlayReset(String name) Send onStatus(NetStream.Play.Reset) event- Parameters:
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlayResetint sendPlayReset(java.io.OutputStream out, String name)Send onStatus(NetStream.Play.Reset) event. Send directly to OutputStream.- Parameters:
- out- OutputStream
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlayStopint sendPlayStop(long location, String name)Send onStatus(NetStream.Play.Stop) event- Parameters:
- location- timecode where play stopped
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlayStopint sendPlayStop(java.io.OutputStream out, long location, String name)Send onStatus(NetStream.Play.Stop) event. Send directly to OutputStream- Parameters:
- out- OutputStream
- location- timecode where play stopped
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlaySeekint sendPlaySeek(java.io.OutputStream out, long location, long seekLocation, String name, java.util.List<Integer> seekTypes)Send onStatus(NetStream.Seek.Notify) event.- Parameters:
- out- OutputStream
- location- request location of seek
- seekLocation- result location of seek
- name- stream name
- seekTypes- list of commands to respond to (seek, unpause, play)
- Returns:
- bytes sent to client
 
 - 
sendPlaySeekint sendPlaySeek(long location, long seekLocation, String name)Send onStatus(NetStream.Seek.Notify) event.- Parameters:
- location- request location of seek
- seekLocation- result location of seek
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlaySeekint sendPlaySeek(java.io.OutputStream out, long location, long seekLocation, String name)Send onStatus(NetStream.Seek.Notify) event. Send directly to OutputStream- Parameters:
- out- OutputStream
- location- request location of seek
- seekLocation- result location of seek
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlayStartint sendPlayStart(String name, long timecode)Send onStatus(NetStream.Play.Start) event- Parameters:
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPlaySwitchint 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).- Parameters:
- name- stream name
- timecode- timecode of event
- Returns:
- bytes sent to client
 
 - 
sendPlaySwitchint 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). Send directly to OutputStream- Parameters:
- out- OutputStream
- name- stream name
- isSwitch- is this a switch or a start
- timecode- timecode of event
- Returns:
- bytes sent to client
 
 - 
sendPlayStartint 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). Send directly to OutputStream- Parameters:
- out- OutputStream
- name- stream name
- isSwitch- is this a switch or a start
- isLive- is the stream live
- timecode- timecode of event
- seekTypes- commands to respond to (seek, unpause, play)
 
 - 
sendPlayStartint 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). Send directly to OutputStream- Parameters:
- out- OutputStream
- name- stream name
- isSwitch- is this a switch or a start
- timecode- timecode of event
- seekTypes- commands to respond to (seek, unpause, play)
- Returns:
- bytes sent to client
 
 - 
sendPlayStartint 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). Send directly to OutputStream- Parameters:
- out- OutputStream
- name- stream name
- isSwitch- is this a switch or a start
- timecode- timecode of event
- Returns:
- bytes sent to client
 
 - 
sendPlayStatusint sendPlayStatus(long timecode, int statusType, double duration, double bytesSent)Send onPlayStatus(NetStream.Play.Switch, NetStream.Play.Complete, NetStream.Play.Stop) event- Parameters:
- timecode- timecode of event
- statusType- status type IMediaStreamPlay.PLAYSTATUSTYPE_*
- duration- (not used)
- bytesSent- (not used)
- Returns:
- bytes sent to client
 
 - 
sendPlayStatusint 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. Send directly to OutputStream.- Parameters:
- out- OutputStream
- timecode- timecode of event
- statusType- status type IMediaStreamPlay.PLAYSTATUSTYPE_*
- duration- (not used)
- bytesSent- (not used)
- Returns:
- bytes sent to client
 
 - 
sendPauseNotifyint sendPauseNotify(long timecode, String name)Send onStatus(NetStream.Pause.Notify) event- Parameters:
- timecode- timecode of event
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendPauseNotifyint sendPauseNotify(java.io.OutputStream out, long timecode, String name)Send onStatus(NetStream.Pause.Notify) event. Send directly to OutputStream.- Parameters:
- out- OutputStream
- timecode- timecode of event
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendUnpauseNotifyint sendUnpauseNotify(java.io.OutputStream out, long location, String name, java.util.List<Integer> seekTypes)Send onStatus(NetStream.Unpause.Notify) event- Parameters:
- out- OutputStream
- location- timecode of event
- name- stream name
- seekTypes- list of operations to respond to (seek, play, unpause)
- Returns:
- bytes sent to client
 
 - 
sendUnpauseNotifyint sendUnpauseNotify(long location, String name)Send onStatus(NetStream.Unpause.Notify) event- Parameters:
- location- timecode of event
- name- stream name
- Returns:
- bytes sent to client
 
 - 
sendUnpauseNotifyint sendUnpauseNotify(java.io.OutputStream out, long location, String name)Send onStatus(NetStream.Unpause.Notify) event. Send directly to OutputStream.- Parameters:
- out- OutputStream
- location- timecode of event
- name- stream name
- Returns:
- bytes sent to client
 
 - 
isAppendboolean isAppend() Is append to media file (only valid if isRecord)- Returns:
- is appending or rewriting media file
 
 - 
setAppendvoid setAppend(boolean isAppend) Set is append to media file (only valid if isRecord)- Parameters:
- isAppend- is appending or rewriting media file
 
 - 
setPlayervoid setPlayer(IMediaStreamPlay player) Set underlying player (IMediaStreamPlay) object- Parameters:
- player- underlying player (IMediaStreamPlay) object
 
 - 
getPlayerIMediaStreamPlay getPlayer() Get underlying player (IMediaStreamPlay) object- Returns:
- underlying player (IMediaStreamPlay) object
 
 - 
getAudioMissingint getAudioMissing() Get number of audio bytes missing from current audio packet- Returns:
- number of bytes missing
 
 - 
getVideoMissingint getVideoMissing() Get number of video bytes missing from current video packet- Returns:
- number of bytes missing
 
 - 
getDataMissingint getDataMissing() Get number of data bytes missing from current data packet- Returns:
- number of bytes missing
 
 - 
addVideoDatavoid addVideoData(byte[] data, int offset, int size)Add data to current video packet- Parameters:
- data- byte array
- offset- offset in byte array
- size- size of data to add
 
 - 
addAudioDatavoid addAudioData(byte[] data, int offset, int size)Add data to current audio packet- Parameters:
- data- byte array
- offset- offset in byte array
- size- size of data to add
 
 - 
addDataDatavoid addDataData(byte[] data, int offset, int size)Add data to current data packet- Parameters:
- data- byte array
- offset- offset in byte array
- size- size of data to add
 
 - 
getPropertiesWMSProperties getProperties() Get mediaStream properties- Returns:
- properties
 
 - 
getPlayPacketsjava.util.List<AMFPacket> getPlayPackets() Get all available live packets- Returns:
- play packets
 
 - 
getMaxTimecodelong getMaxTimecode() Get the timecode of the latest received packet- Returns:
- timecode of the latest received packet
 
 - 
getLastKeyFrameAMFPacket getLastKeyFrame() Get most recent video key frame- Returns:
- play packets
 
 - 
getLastPacketAMFPacket getLastPacket() Get most recent live packet- Returns:
- most recent live packet or null or no live packets
 
 - 
getStreamTypeString getStreamType() Get mediaStream streamType- Returns:
- streamType
 
 - 
setStreamTypevoid setStreamType(String streamType) Set mediaStream streamType. This method will not change the type of the current stream.- Parameters:
- streamType-
 
 - 
sendDirectAMF3void sendDirectAMF3(String handlerName, Object... params)Call client side NetStream method/handler and send event to underlying stream (will record event). Force AMF3 encoding.- Parameters:
- handlerName- handler name
- params- variable list of parameters. All parameters will be wrapped in AMFDataObj.
 
 - 
sendDirectvoid sendDirect(String handlerName, Object... params)Call client side NetStream method/handler and send event to underlying stream (will record event)- Parameters:
- handlerName- handler name
- params- variable list of parameters. All parameters will be wrapped in AMFDataObj.
 
 - 
sendDirectAMF3void sendDirectAMF3(String handlerName) Call client side NetStream method/handler and send event to underlying stream (will record event). Force AMF3 encoding.- Parameters:
- handlerName- handler name
 
 - 
sendDirectvoid sendDirect(String handlerName) Call client side NetStream method/handler and send event to underlying stream (will record event)- Parameters:
- handlerName- handler name
 
 - 
sendAMF3void sendAMF3(String handlerName, Object... params)Call client side NetStream method/handler. Force AMF3 encoding.- Parameters:
- handlerName- handler name
- params- variable list of parameters. All parameters will be wrapped in AMFDataObj.
 
 - 
sendvoid send(String handlerName, Object... params)Call client side NetStream method/handler- Parameters:
- handlerName- handler name
- params- variable list of parameters. All parameters will be wrapped in AMFDataObj.
 
 - 
sendAMF3void sendAMF3(String handlerName) Call client side NetStream method/handler with no parameters. Force AMF3 encoding.- Parameters:
- handlerName- handler name
 
 - 
sendvoid send(String handlerName) Call client side NetStream method/handler with no parameters- Parameters:
- handlerName- handler name
 
 - 
closevoid close() Close mediaStream
 - 
isOpenboolean isOpen() Is mediaStream open- Returns:
- is mediaStream open
 
 - 
setOpenvoid setOpen(boolean isOpen) Set mediaStream open- Parameters:
- isOpen- mediaStream open
 
 - 
getFastPlaySettingscom.wowza.wms.stream.FastPlaySettings getFastPlaySettings() Get current fastPlay settings- Returns:
- fastPlay settings
 
 - 
setFastPlaySettingsvoid setFastPlaySettings(com.wowza.wms.stream.FastPlaySettings fastPlaySettings) Set fastPlay settings- Parameters:
- fastPlaySettings- fastPlay settings
 
 - 
clearFastPlaySettingsvoid clearFastPlaySettings() Clear fastPlay settings
 - 
isReceiveAudioboolean isReceiveAudio() Is client currently receiving audio. Controlled by client side call receiveAudio.- Returns:
- receive audio
 
 - 
setReceiveAudiovoid setReceiveAudio(boolean receiveAudio) Set receive audio- Parameters:
- receiveAudio- receive audio
 
 - 
isReceiveVideoboolean isReceiveVideo() Is client currently receiving video. Controlled by client side call receiveVideo- Returns:
- receive video
 
 - 
setReceiveVideovoid setReceiveVideo(boolean receiveVideo) Set receive video- Parameters:
- receiveVideo- receive video
 
 - 
getReceiveVideoFPSint getReceiveVideoFPS() Set frame per seconds for video (not currently implemented)- Returns:
- video frames per second
 
 - 
setReceiveVideoFPSvoid setReceiveVideoFPS(int receiveVideoFPS) Set frame per second for video (not currently implemented)- Parameters:
- receiveVideoFPS- video frames per second
 
 - 
getMediaIOPerformanceIOPerformanceCounter getMediaIOPerformance() Get IO performance counter- Returns:
- IO performance counter
 
 - 
incrementMediaOutByteslong incrementMediaOutBytes(long bytes, long count)Increment the number of mediaStream bytes sent and number of packets sent- Parameters:
- bytes- number of bytes sent
- count- number of packets sent
- Returns:
- total number of bytes sent (after increment)
 
 - 
incrementMediaLossByteslong incrementMediaLossBytes(long bytes, long count)Increment the number of mediaStream loss bytes sent and number of packets sent- Parameters:
- bytes- number of bytes sent
- count- number of packets sent
- Returns:
- total number of bytes sent (after increment)
 
 - 
incrementMediaInByteslong incrementMediaInBytes(long increment) Increment the number of mediaStream bytes received- Parameters:
- increment- number of byte received
- Returns:
- total number of bytes received (after increment)
 
 - 
publishvoid publish() Publish mediaStream
 - 
trimvoid trim() Trim mediaStream. This method will remove live packets that are older than the live buffer size.
 - 
handleCallbackvoid handleCallback(com.wowza.wms.request.RequestFunction function) Routes request function to callback handler onStatus, onPlayStatus or [method/handler]- Parameters:
- function- request function
 
 - 
unregisterCallbackvoid unregisterCallback(String handlerName) Unregister a callback handler- Parameters:
- handlerName- handler name
 
 - 
registerCallbackvoid registerCallback(String handlerName, IMediaStreamCallback callback)Register a callback handler- Parameters:
- handlerName- handler name
- callback- callback object
 
 - 
unregisterOnStatusvoid unregisterOnStatus(IMediaStreamCallback callback) Unregister onStatus handler- Parameters:
- callback-
 
 - 
registerOnStatusvoid registerOnStatus(IMediaStreamCallback callback) Register onStatus handler- Parameters:
- callback- callback object
 
 - 
unregisterOnPlayStatusvoid unregisterOnPlayStatus(IMediaStreamCallback callback) Unregister onPlayStatus handler- Parameters:
- callback- callback object
 
 - 
registerOnPlayStatusvoid registerOnPlayStatus(IMediaStreamCallback callback) Register onPlayStatus handler- Parameters:
- callback- callback object
 
 - 
addClientListenervoid addClientListener(IMediaStreamActionNotify actionListener) Add client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
addClientListenervoid addClientListener(IMediaStreamActionNotify2 actionListener) Add client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
addClientListenervoid addClientListener(IMediaStreamActionNotify3 actionListener) Add client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
removeClientListenervoid removeClientListener(IMediaStreamActionNotify actionListener) Remove client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
removeClientListenervoid removeClientListener(IMediaStreamActionNotify2 actionListener) Remove client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
removeClientListenervoid removeClientListener(IMediaStreamActionNotify3 actionListener) Remove client listener. Listens for (onPlay, onPublish, onPause, onSeek, onStop)- Parameters:
- actionListener- listener
 
 - 
notifyActionPlayvoid notifyActionPlay(String streamName, double playStart, double playLen, int playReset)Notify client listeners of play action- Parameters:
- streamName- stream name
- playStart- play start
- playLen- play length
- playReset- play reset
 
 - 
notifyActionPauseRawvoid notifyActionPauseRaw(boolean isPause, long location)Notify client listeners of pauseRaw action- Parameters:
- isPause- is pause or unpause
- location- timecode (milliseconds) of action
 
 - 
notifyActionPausevoid notifyActionPause(boolean isPause, long location)Notify client listeners of pause action- Parameters:
- isPause- is pause or unpause
- location- timecode (milliseconds) of action
 
 - 
notifyActionSeekvoid notifyActionSeek(double location) Notify client listeners of seek action- Parameters:
- location- timecode (milliseconds) of seek request
 
 - 
notifyActionPublishvoid notifyActionPublish(String streamName, boolean isRecord, boolean isAppend)Notify client listeners of publish action- Parameters:
- streamName- stream name
- isRecord- is record or live
- isAppend- is append if isRecord is true
 
 - 
notifyActionUnPublishvoid notifyActionUnPublish(String streamName, boolean isRecord, boolean isAppend)Notify client listeners of unpublish action- Parameters:
- streamName- stream name
- isRecord- is record or live
- isAppend- is append if isRecord is true
 
 - 
notifyActionOnMetaDatavoid notifyActionOnMetaData(AMFPacket metaDataPacket) Notify client listeners of onMetaData change- Parameters:
- metaDataPacket- metaDataPacket
 
 - 
notifyActionOnCodecInfoVideovoid notifyActionOnCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo) Notify client listeners of video codec information change- Parameters:
- codecInfoVideo- video codec information
 
 - 
notifyActionOnCodecInfoAudiovoid notifyActionOnCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio) Notify client listeners of audio codec information change- Parameters:
- codecInfoAudio- audio codec information
 
 - 
notifyActionStopvoid notifyActionStop() Notify client listeners of stop action
 - 
isClusteredboolean isClustered() not used- Returns:
- isClustered
 
 - 
setClusteredvoid setClustered(boolean isClustered) not used- Parameters:
- isClustered-
 
 - 
getCacheNameString getCacheName() not used- Returns:
- cache name
 
 - 
startPublishingvoid startPublishing() Start publishing live stream
 - 
stopPublishingvoid stopPublishing() Stop publishing live stream
 - 
getStreamFileForWritejava.io.File getStreamFileForWrite() Get the File object to write to a stream (get stream name, ext and query from stream object)- Returns:
- resultant File object
 
 - 
getStreamFileForWritejava.io.File getStreamFileForWrite(String name, String ext, String query)Get the File object to write to a stream (specify name, ext and query)- Parameters:
- name- stream name
- ext- stream prefix (Ex. mp4:)
- query- query part of stream name (Ex. mystream?param1=value1)
- Returns:
- resultant File object
 
 - 
getStreamFileForReadjava.io.File getStreamFileForRead() Get the File object to read from a stream (get stream name, ext and query from stream object)- Returns:
- resultant File object
 
 - 
getStreamFileForReadjava.io.File getStreamFileForRead(String name, String ext, String query)Get the File object to read from a stream (specify name, ext and query)- Parameters:
- name- stream name
- ext- stream prefix (Ex. mp4:)
- query- query part of stream name (Ex. mystream?param1=value1)
- Returns:
- resultant File object
 
 - 
sendControlBytesint sendControlBytes(int controlType, java.io.OutputStream out)Send playback control bytes. Valid values are (0, 1, 4)- Parameters:
- controlType- control types (0, 1, 4)
- out- OutputStream
- Returns:
- bytes sent to client
 
 - 
getBurstStartStopbyte[] getBurstStartStop(boolean isStart) Get the dynamic streaming burst start/stop AMF packet- Parameters:
- isStart- is start
- Returns:
- byte array with AMF packet
 
 - 
getRespAMFAudioObjAMFObj getRespAMFAudioObj() Get audio response channel object- Returns:
- audio response channel object
 
 - 
getRespAMFVideoObjAMFObj getRespAMFVideoObj() Get video response channel object- Returns:
- video response channel object
 
 - 
getRespAMFDataObjAMFObj getRespAMFDataObj() Get data response channel object- Returns:
- data response channel object
 
 - 
getQueryStrString getQueryStr() Get play/publish name query string. Example: if play name is flv:test?param1=data1¶m2=data2, query string is "param1=data1¶m2=data2".- Returns:
- query string
 
 - 
setQueryStrvoid setQueryStr(String queryStr) Set play/publish name query string. Example: if play name is flv:test?param1=data1¶m2=data2, query string is "param1=data1¶m2=data2".- Parameters:
- queryStr-
 
 - 
updateLoggingDurationvoid updateLoggingDuration() Update logging.MDC with mediaStream logging information
 - 
updateLoggingValuesvoid updateLoggingValues() Update logging.MDC with mediaStream logging information
 - 
clearLoggingValuesvoid clearLoggingValues() 
 - 
lengthdouble length() Get length/duration (seconds) of media file pointed to by mediaStream- Returns:
- length (seconds)
 
 - 
sizelong size() Get size (bytes) of media file pointed to by mediaStream- Returns:
- size (bytes)
 
 - 
getExtString getExt() Get media file extension- Returns:
- media file extension
 
 - 
setExtvoid setExt(String ext) Set media file extension- Parameters:
- ext-
 
 - 
clearvoid clear() Delete media file pointed to by this mediaStream (be careful)
 - 
isSendPlayStopLogEventboolean isSendPlayStopLogEvent() Get need to send a log event for stop- Returns:
- need to send a log event for stop
 
 - 
setSendPlayStopLogEventvoid setSendPlayStopLogEvent(boolean sendPlayStopLogEvent) Set need to send a log event for stop- Parameters:
- sendPlayStopLogEvent- need to send a log event for stop
 
 - 
isSendRecordStopLogEventboolean isSendRecordStopLogEvent() Get need to send a log event for recording- Returns:
- need to send a log event for stop
 
 - 
setSendRecordStopLogEventvoid setSendRecordStopLogEvent(boolean sendPlayStopLogEvent) Set need to send a log event for recording- Parameters:
- sendPlayStopLogEvent- need to send a log event for stop
 
 - 
isSendPublishStopLogEventboolean isSendPublishStopLogEvent() Get need to send a log event for publishing- Returns:
- need to send a log event for stop
 
 - 
setSendPublishStopLogEventvoid setSendPublishStopLogEvent(boolean sendPlayStopLogEvent) Set need to send a log event for publishing- Parameters:
- sendPlayStopLogEvent- need to send a log event for stop
 
 - 
getAccessboolean[] getAccess(IClient client, String name) Get the read/write access to this stream for this client- Parameters:
- client- client
- name- stream name
- Returns:
- array of booleans read[0], write[1]
 
 - 
getMetaDataProviderIMediaStreamMetaDataProvider getMetaDataProvider() Get the metaData provider- Returns:
- metaData provider
 
 - 
setMetaDataProvidervoid setMetaDataProvider(IMediaStreamMetaDataProvider metaDataProvider) Set the metaData provider- Parameters:
- metaDataProvider- metaData provider
 
 - 
getHeaderSizeint getHeaderSize() Get the last packet header size (debugging)- Returns:
- last packet header size
 
 - 
setHeaderSizevoid setHeaderSize(int headerSize) Set the last packet header size (debugging)- Parameters:
- headerSize- last packet header size
 
 - 
getAudioCodecConfigPacketAMFPacket getAudioCodecConfigPacket(long timecode) Get audio codec configuration packet (needed for H.264/AAC playback)- Parameters:
- timecode- timecode of the packet to which you want to get the codec config information
- Returns:
- audio codec configuration packet (needed for H.264/AAC playback)
 
 - 
addAudioCodecConfigPacketvoid addAudioCodecConfigPacket(long timecode, AMFPacket packet)Set audio codec configuration packet (needed for H.264/AAC playback)- Parameters:
- timecode- timecode in milliseconds of first packet that uses this timecode
- packet- audio codec configuration packet (needed for H.264/AAC playback)
 
 - 
getVideoCodecConfigPacketAMFPacket getVideoCodecConfigPacket(long timecode) Get video codec configuration packet (needed for H.264/AAC playback)- Parameters:
- timecode- timecode of the packet to which you want to get the codec config information
- Returns:
- video codec configuration packet (needed for H.264/AAC playback)
 
 - 
addVideoCodecConfigPacketvoid addVideoCodecConfigPacket(long timecode, AMFPacket packet)Set video codec configuration packet (needed for H.264/AAC playback)- Parameters:
- timecode- timecode in milliseconds of first packet that uses this timecode
- packet- video codec configuration packet (needed for H.264/AAC playback)
 
 - 
getRTPStreamRTPStream getRTPStream() Get the RTP based stream this stream is associated with- Returns:
- RTP based stream this stream is associated with
 
 - 
setRTPStreamvoid setRTPStream(RTPStream rtpStream) Set the RTP based stream this stream is associated with- Parameters:
- rtpStream- RTP based stream this stream is associated with
 
 - 
flushvoid flush() Force publishing packets to be flushed from the input buffers to the output buffers
 - 
startAudioPacketvoid startAudioPacket() Called when an audio packet is first being populated with data
 - 
startVideoPacketvoid startVideoPacket() Called when a video packet is first being populated with data
 - 
startDataPacketvoid startDataPacket() Called when a data packet is first being populated with data
 - 
getLiveStreamPacketizerListString getLiveStreamPacketizerList() Get the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml)- Returns:
- comma separated list of LiveStreamPacketizers names
 
 - 
setLiveStreamPacketizerListvoid setLiveStreamPacketizerList(String liveStreamPacketizerList) Set the comma separated list of LiveStreamPacketizers names being used by this stream (see conf/LiveStreamPacketizers.xml)- Parameters:
- liveStreamPacketizerList- comma separated list of LiveStreamPacketizers names
 
 - 
getLiveStreamTranscoderListString getLiveStreamTranscoderList() Get the comma separated list of LiveStreamTranscoders names being used by this stream (see conf/LiveStreamTranscoders.xml)- Returns:
- comma separated list of LiveStreamTranscoders names
 
 - 
setLiveStreamTranscoderListvoid setLiveStreamTranscoderList(String liveStreamTranscoderList) Set the comma separated list of LiveStreamTranscoders names being used by this stream (see conf/LiveStreamTranscoders.xml)- Parameters:
- liveStreamTranscoderList- comma separated list of LiveStreamTranscoders names
 
 - 
getLiveStreamPacketizerILiveStreamPacketizer getLiveStreamPacketizer(String name) Get the LiveStreamPacketizer interface to a stream by name- Parameters:
- name- LiveStreamPacketizer name
- Returns:
- LiveStreamPacketizer interface
 
 - 
getDvrRecorderListString getDvrRecorderList() Get the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)- Returns:
- comma separated list of DVR Recorder names
 
 - 
setDvrRecorderListvoid setDvrRecorderList(String recorderList) Set the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)- Parameters:
- recorderList- comma separated list of DVR Recorder names
 
 - 
getDvrRecorderILiveStreamDvrRecorder getDvrRecorder(String name) Get the DVR Recorder interface to a stream by name- Parameters:
- name- DVR Recorder name
- Returns:
- DVR Recorder interface
 
 - 
getUniqueStreamIdStrString getUniqueStreamIdStr() Get a string that uniquely identifies this stream- Returns:
- unique stream identifier
 
 - 
getHTTPStreamerSessionIHTTPStreamerSession getHTTPStreamerSession() Get the HTTPStreamer session associated with this stream- Returns:
- HTTPStreamer session associated with this stream
 
 - 
setHTTPStreamerSessionvoid setHTTPStreamerSession(IHTTPStreamerSession httpStreamerSession) Set the HTTPStreamer session associated with this stream- Parameters:
- httpStreamerSession- HTTPStreamer session associated with this stream
 
 - 
getElapsedTimeElapsedTimer getElapsedTime() Get the interface to the elapse timer- Returns:
- interface to the elapse timer
 
 - 
getLiveStreamPacketizerString getLiveStreamPacketizer() Get the live stream packetizer that this stream is using- Returns:
- live stream packetizer
 
 - 
setLiveStreamPacketizervoid setLiveStreamPacketizer(String liveStreamPacketizer) Set the live stream packetizer that this stream is using- Parameters:
- liveStreamPacketizer- live stream packetizer
 
 - 
getLiveStreamRepeaterString getLiveStreamRepeater() Get the live stream repeater name for the stream- Returns:
- live stream repeater name
 
 - 
setLiveStreamRepeatervoid setLiveStreamRepeater(String liveStreamRepeater) Set the live stream repeater name for the stream- Parameters:
- liveStreamRepeater- live stream repeater name
 
 - 
initLiveStreamRepeatingvoid initLiveStreamRepeating(String liveStreamPacketizer, String liveStreamRepeater)Initialize this stream for live stream repeating- Parameters:
- liveStreamPacketizer- live stream packetizer
- liveStreamRepeater- live stream repeater name
 
 - 
getPublishVideoCodecIdint getPublishVideoCodecId() Get the codec id of the most recently published video packet- Returns:
- codec id of the most recently published video packet
 
 - 
setPublishVideoCodecIdvoid setPublishVideoCodecId(int publishVideoCodecId) Set the codec id of the most recently published video packet- Parameters:
- publishVideoCodecId- codec id of the most recently published video packet
 
 - 
getPublishAudioCodecIdint getPublishAudioCodecId() Get the codec id of the most recently published audio packet- Returns:
- codec id of the most recently published audio packet
 
 - 
setPublishAudioCodecIdvoid setPublishAudioCodecId(int publishAudioCodecId) Set the codec id of the most recently published audio packet- Parameters:
- publishAudioCodecId- codec id of the most recently published audio packet
 
 - 
isPublishStreamReadyboolean isPublishStreamReady(boolean checkAudio, boolean checkVideo)Returns true if the publishing stream contains enough video/audio data to start playback- Parameters:
- checkAudio- check audio stream
- checkVideo- check video stream
- Returns:
- true if the publishing stream contains enough video/audio data to start playback
 
 - 
getContextStrString getContextStr() Returns the stream context string in the form [application]/[appInstance]/[streamName].- Returns:
- stream context string
 
 - 
isMediaCasterPlayboolean isMediaCasterPlay() Is MediaCaster play enabled (if true, will trigger MediaCaster startup)- Returns:
- true if MediaCaster play enabled
 
 - 
setMediaCasterPlayvoid setMediaCasterPlay(boolean isMediaCasterPlay) Is MediaCaster play enabled (if true, will trigger MediaCaster startup)- Parameters:
- isMediaCasterPlay- true if MediaCaster play enabled
 
 - 
isMergeOnMetadataboolean isMergeOnMetadata() If true, merge incoming onMetadata events with the current onMetdata event data. If false, replace.- Returns:
- true, merge incoming onMetadata events with the current onMetdata event data. If false, replace.
 
 - 
setMergeOnMetadatavoid setMergeOnMetadata(boolean mergeOnMetadata) If true, merge incoming onMetadata events with the current onMetdata event data. If false, replace.- Parameters:
- mergeOnMetadata- true, merge incoming onMetadata events with the current onMetdata event data. If false, replace.
 
 - 
getDvrRecorderString getDvrRecorder() Get the DVR Recorder for this stream- Returns:
- DVR Recorder
 
 - 
getDvrRepeaterString getDvrRepeater() Get the DVR repeater name for this stream- Returns:
- repeater name
 
 - 
setDvrRecordervoid setDvrRecorder(String recorderName) Set the DVR Recorder that this stream is using- Parameters:
- recorderName- DVR Recorder
 
 - 
removeDvrRecorderILiveStreamDvrRecorder removeDvrRecorder(String name) Remove a live stream dvr by name- Parameters:
- name- dvr name
- Returns:
- live stream dvr
 
 - 
putDvrRecordervoid putDvrRecorder(String name, ILiveStreamDvrRecorder dvr)Add a live stream dvr to this stream- Parameters:
- name- dvr name
- dvr- live stream dvr
 
 - 
getLiveStreamTranscodersjava.util.Map<String,ILiveStreamTranscoder> getLiveStreamTranscoders() Get the list of transcoders for this stream.- Returns:
- list of transcoders for this stream
 
 - 
getLiveStreamTranscoderILiveStreamTranscoder getLiveStreamTranscoder(String name) Get a live stream transcoder for this stream by name- Parameters:
- name- transcoder name
- Returns:
- live stream transcoder
 
 - 
removeLiveStreamTranscoderILiveStreamTranscoder removeLiveStreamTranscoder(String name) Remove a live stream transcoder by name- Parameters:
- name- transcoder name
- Returns:
- live stream transcoder
 
 - 
putLiveStreamTranscodervoid putLiveStreamTranscoder(String name, ILiveStreamTranscoder liveStreamTranscoder)Add a live stream transcoder to this stream- Parameters:
- name- transcoder name
- liveStreamTranscoder- live stream transcoder
 
 - 
isTranscodeResultboolean isTranscodeResult() Is this stream the result of a transcode operation.- Returns:
- true if stream the result of a transcode operation
 
 - 
getTranscoderSessionDestinationcom.wowza.wms.transcoder.model.TranscoderSessionDestination getTranscoderSessionDestination() If stream is result of transcode get the transcoder stream session for this stream.- Returns:
- transcoder stream session
 
 - 
setTranscodeResultvoid setTranscodeResult(boolean isTranscodeResult) Is this stream the result of a transcode operation.- Parameters:
- isTranscodeResult- true if stream the result of a transcode operation
 
 - 
addVideoH264SEIListenervoid addVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener) Add an H.264 SEI listener. This listener will be notified of all incoming H.264 video packets and has the ability to read and/or modify SEI section of the video frame.- Parameters:
- h264SEIListener- H.264 SEI listener
 
 - 
removeVideoH264SEIListenervoid removeVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener) Remove an H.264 SEI listener. This listener will be notified of all incoming H.264 video packets and has the ability to read and/or modify SEI section of the video frame.- Parameters:
- h264SEIListener- H.264 SEI listener
 
 - 
isVideoH264SEIListenerEmptyboolean isVideoH264SEIListenerEmpty() Is H.264 SEI listener list empty. This listener will be notified of all incoming H.264 video packets and has the ability to read and/or modify SEI section of the video frame.- Returns:
- true if H.264 SEI listener list empty
 
 - 
notifyVideoH264Packetvoid notifyVideoH264Packet(AMFPacket packet, com.wowza.wms.media.h264.H264SEIMessages seiMessages) Notify H.264 SEI listener.- Parameters:
- packet- AMF Packet
- seiMessages- seiMessages
 
 - 
addCalbackListenervoid addCalbackListener(IMediaStreamCallback callbackListener) Add a callback listener to listen for all stream metadata- Parameters:
- callbackListener-
 
 - 
removeCalbackListenervoid removeCalbackListener(IMediaStreamCallback callbackListener) Remove a callback listener to listen for all stream metadata- Parameters:
- callbackListener-
 
 - 
addLivePacketListenervoid addLivePacketListener(IMediaStreamLivePacketNotify listener) Add a listener to receiver notification of new live AMF packets- Parameters:
- listener- listener
 
 - 
removeLivePacketListenervoid removeLivePacketListener(IMediaStreamLivePacketNotify listener) Remove a listener to receiver notification of new live AMF packets- Parameters:
- listener- listener
 
 - 
notifyLivePacketvoid notifyLivePacket(AMFPacket packet) Notify new live AMF packet- Parameters:
- packet- new live AMF packet
 
 - 
isPublisherStreamboolean isPublisherStream() Returns true if stream was created by stream publisher API.- Returns:
- true if stream was created by stream publisher API
 
 - 
setPublisherStreamvoid setPublisherStream(boolean isPublisherStream) Set stream was created by stream publisher.- Parameters:
- isPublisherStream- true if stream was created by stream publisher API
 
 - 
getPublishFrameCountslong getPublishFrameCounts(long[] counts) Get the total number of frames received for an incoming live stream. See PACKET_COUNTS_* for the index into the array. The array passed in should be PACKET_COUNTS_SIZE.- Returns:
- total total number of frames received (audio + video + data)
 
 - 
getPublishFrameCountVideoKeylong getPublishFrameCountVideoKey() Get the total number of video key frames received for an incoming live stream.- Returns:
- total number of video key frames received
 
 - 
getPublishFrameCountVideolong getPublishFrameCountVideo() Get the total number of video frames received for an incoming live stream.- Returns:
- total number of video frames received
 
 - 
getPublishFrameCountAudiolong getPublishFrameCountAudio() Get the total number of audio frames received for an incoming live stream.- Returns:
- total number of audio frames received
 
 - 
getPublishFrameCountDatalong getPublishFrameCountData() Get the total number of data frames received for an incoming live stream.- Returns:
- total number of data frames received
 
 - 
getPublishBitrateVideoint getPublishBitrateVideo() Get the video bitrate of an incoming live published stream (bits per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain video.- Returns:
- video bitrate of an incoming live published stream (bits per second)
 
 - 
getPublishFramerateVideodouble getPublishFramerateVideo() Get the video framerate of an incoming live published stream (frames per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain video.- Returns:
- video framerate
 
 - 
getPublishKeyFrameIntervalsVideoint[] getPublishKeyFrameIntervalsVideo() Get the last n key frame intervals for an incoming publish stream (frames per GOP), Most recent GOPs are first in the list. -1 indicates the end of the list.- Returns:
- last n key frame intervals for an incoming publish stream (frames per GOP)
 
 - 
getPublishBitrateAudioint getPublishBitrateAudio() Get the audio bitrate of an incoming live published stream (bits per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain audio.- Returns:
- audio bitrate of an incoming live published stream (bits per second)
 
 - 
getPublishBitrateVideoint getPublishBitrateVideo(int source) Get the video bitrate of an incoming live published stream (bits per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain video.- Parameters:
- source- source of bitrate (see IMediaStream.PUBLISH_BITRATE_SOURCE_*)
- Returns:
- video bitrate of an incoming live published stream (bits per second)
 
 - 
getPublishFramerateVideodouble getPublishFramerateVideo(int source) Get the video framerate of an incoming live published stream (frames per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain video.- Parameters:
- source- source of framerate (see IMediaStream.PUBLISH_FRAMERATE_SOURCE_*)
- Returns:
- video frame rate
 
 - 
getPublishBitrateAudioint getPublishBitrateAudio(int source) Get the audio bitrate of an incoming live published stream (bits per second). Value of -1 indicates still measuring bandwidth. Value of 0 indicates the stream does not contain audio.- Parameters:
- source- source of bitrate (see IMediaStream.PUBLISH_BITRATE_SOURCE_*)
- Returns:
- audio bitrate of an incoming live published stream (bits per second)
 
 - 
getTranscoderEncoderStreamInfocom.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo getTranscoderEncoderStreamInfo() Get the transcoder encoder context information for this stream. This object will be available if this stream is an encoder stream root.- Returns:
- transcoder encoder context information
 
 - 
setTranscoderEncoderStreamInfovoid setTranscoderEncoderStreamInfo(com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo transcoderEncoderStreamInfo) Set the transcoder encoder context information for this stream. This object will be available if this stream is an encoder stream root.- Parameters:
- transcoderEncoderStreamInfo- transcoder encoder context information
 
 - 
isTranscoderEncoderStreamRootboolean isTranscoderEncoderStreamRoot() True if this stream object is a transcoder encoder stream root.- Returns:
- True if this stream object is a transcoder encoder stream root
 
 - 
setIsWebRTCvoid setIsWebRTC(boolean isWebRTC) 
 - 
getIsWebRTCboolean getIsWebRTC() 
 - 
setIsSRTdefault void setIsSRT(boolean isSRT) 
 - 
getIsSRTdefault boolean getIsSRT() 
 
- 
 
-