com.wowza.wms.stream.MediaStream, MediaStreamBasepublic 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.
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AUDIOSAMPLEACCESS |
|
static int |
PACKET_COUNTS_AUDIO |
|
static int |
PACKET_COUNTS_DATA |
|
static int |
PACKET_COUNTS_SIZE |
|
static int |
PACKET_COUNTS_VIDEO |
|
static int |
PACKET_COUNTS_VIDEOKEY |
|
static int |
PUBLISH_BITRATE_SOURCE_LASTGOP |
|
static int |
PUBLISH_BITRATE_SOURCE_MEASURE |
|
static int |
PUBLISH_BITRATE_SOURCE_METADATA |
|
static int |
PUBLISH_FRAMERATE_SOURCE_MEASURE |
|
static int |
PUBLISH_FRAMERATE_SOURCE_METADATA |
|
static int |
READACCESS |
|
static int |
VIDEOSAMPLEACCESS |
|
static int |
WRITEACCESS |
| Modifier and Type | Method | Description |
|---|---|---|
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 current audio packet
|
void |
addAudioExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) |
Add extra data to the current audio packet
|
void |
addCalbackListener(IMediaStreamCallback callbackListener) |
Add a callback listener to listen for all stream metadata
|
void |
addClientListener(IMediaStreamActionNotify actionListener) |
Add client listener.
|
void |
addClientListener(IMediaStreamActionNotify2 actionListener) |
Add client listener.
|
void |
addClientListener(IMediaStreamActionNotify3 actionListener) |
Add client listener.
|
void |
addDataData(byte[] data,
int offset,
int size) |
Add data to current data packet
|
void |
addDataExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) |
Add extra data to the current data packet
|
void |
addLivePacketListener(IMediaStreamLivePacketNotify listener) |
Add a listener to receiver notification of new live AMF packets
|
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 current video packet
|
void |
addVideoExtraData(java.util.Map<String,IAMFPacketExtraData> extraData) |
Add extra data to the current video packet
|
void |
addVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener) |
Add an H.264 SEI listener.
|
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 data 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)
|
String |
getDvrRecorder() |
Get the DVR Recorder for this stream
|
ILiveStreamDvrRecorder |
getDvrRecorder(String name) |
Get the DVR Recorder interface to a stream by name
|
String |
getDvrRecorderList() |
Get the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)
|
String |
getDvrRepeater() |
Get the DVR repeater name for this stream
|
ElapsedTimer |
getElapsedTime() |
Get the interface to the elapse timer
|
String |
getExt() |
Get media file extension
|
com.wowza.wms.stream.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
|
boolean |
getIsWebRTC() |
|
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
|
ILiveStreamTranscoder |
getLiveStreamTranscoder(String name) |
Get a live stream transcoder for this stream by name
|
String |
getLiveStreamTranscoderList() |
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.
|
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
|
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 |
getPublishBitrateAudio() |
Get the audio bitrate of an incoming live published stream (bits per second).
|
int |
getPublishBitrateAudio(int source) |
Get the audio bitrate of an incoming live published stream (bits per second).
|
int |
getPublishBitrateVideo() |
Get the video bitrate of an incoming live published stream (bits per second).
|
int |
getPublishBitrateVideo(int source) |
Get the video bitrate of an incoming live published stream (bits per second).
|
long |
getPublishFrameCountAudio() |
Get the total number of audio frames received for an incoming live stream.
|
long |
getPublishFrameCountData() |
Get the total number of data frames received for an incoming live stream.
|
long |
getPublishFrameCounts(long[] counts) |
Get the total number of frames received for an incoming live stream.
|
long |
getPublishFrameCountVideo() |
Get the total number of video frames received for an incoming live stream.
|
long |
getPublishFrameCountVideoKey() |
Get the total number of video key frames received for an incoming live stream.
|
double |
getPublishFramerateVideo() |
Get the video framerate of an incoming live published stream (frames per second).
|
double |
getPublishFramerateVideo(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.
|
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
|
com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo |
getTranscoderEncoderStreamInfo() |
Get the transcoder encoder context information for this stream.
|
com.wowza.wms.transcoder.model.TranscoderSessionDestination |
getTranscoderSessionDestination() |
If stream is result of transcode get the transcoder stream session for this stream.
|
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 video 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 |
isPublisherStream() |
Returns true if stream was created by stream publisher API.
|
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 set to true if second parameter of NetStream.publish is "record"
|
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
|
boolean |
isTranscoderEncoderStreamRoot() |
True if this stream object is a transcoder encoder stream root.
|
boolean |
isTranscodeResult() |
Is this stream the result of a transcode operation.
|
boolean |
isVideoH264SEIListenerEmpty() |
Is H.264 SEI listener list empty.
|
double |
length() |
Get length/duration (seconds) of media file pointed to by mediaStream
|
void |
notifyActionOnCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio) |
Notify client listeners of audio codec information change
|
void |
notifyActionOnCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo) |
Notify client listeners of video codec information change
|
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 |
notifyLivePacket(AMFPacket packet) |
Notify new live AMF packet
|
void |
notifyVideoH264Packet(AMFPacket packet,
com.wowza.wms.media.h264.H264SEIMessages seiMessages) |
Notify H.264 SEI listener.
|
void |
packetComplete() |
Invoked by requestAdapter when at the end of a set of packets
|
void |
publish() |
Publish mediaStream
|
void |
putDvrRecorder(String name,
ILiveStreamDvrRecorder dvr) |
Add a live stream dvr to this stream
|
void |
putLiveStreamTranscoder(String name,
ILiveStreamTranscoder liveStreamTranscoder) |
Add a live stream transcoder to this stream
|
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 |
removeCalbackListener(IMediaStreamCallback callbackListener) |
Remove a callback listener to listen for all stream metadata
|
void |
removeClientListener(IMediaStreamActionNotify actionListener) |
Remove client listener.
|
void |
removeClientListener(IMediaStreamActionNotify2 actionListener) |
Remove client listener.
|
void |
removeClientListener(IMediaStreamActionNotify3 actionListener) |
Remove client listener.
|
ILiveStreamDvrRecorder |
removeDvrRecorder(String name) |
Remove a live stream dvr by name
|
void |
removeLivePacketListener(IMediaStreamLivePacketNotify listener) |
Remove a listener to receiver notification of new live AMF packets
|
ILiveStreamTranscoder |
removeLiveStreamTranscoder(String name) |
Remove a live stream transcoder by name
|
void |
removeVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener) |
Remove an H.264 SEI 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
|
void |
sendAMF3(String handlerName) |
Call client side NetStream method/handler with no parameters.
|
void |
sendAMF3(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)
|
void |
sendDirectAMF3(String handlerName) |
Call client side NetStream method/handler and send event to underlying stream (will record event).
|
void |
sendDirectAMF3(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 |
setDvrRecorder(String recorderName) |
Set the DVR Recorder that this stream is using
|
void |
setDvrRecorderList(String recorderList) |
Set the comma separated list of DVR Recorder names being used by this stream (see conf/Dvr.xml)
|
void |
setExt(String ext) |
Set media file extension
|
void |
setFastPlaySettings(com.wowza.wms.stream.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 |
setIsWebRTC(boolean isWebRTC) |
|
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 |
setLiveStreamTranscoderList(String liveStreamTranscoderList) |
Set the comma separated list of LiveStreamTranscoders names being used by this stream (see conf/LiveStreamTranscoders.xml)
|
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(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 |
setPublisherStream(boolean isPublisherStream) |
Set stream was created by stream publisher.
|
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 to true if second parameter of NetStream.publish is "record"
|
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 |
setTranscoderEncoderStreamInfo(com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo transcoderEncoderStreamInfo) |
Set the transcoder encoder context information for this stream.
|
void |
setTranscodeResult(boolean isTranscodeResult) |
Is this stream the result of a transcode operation.
|
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
|
static final int AUDIOSAMPLEACCESS
static final int PACKET_COUNTS_AUDIO
static final int PACKET_COUNTS_DATA
static final int PACKET_COUNTS_SIZE
static final int PACKET_COUNTS_VIDEO
static final int PACKET_COUNTS_VIDEOKEY
static final int PUBLISH_BITRATE_SOURCE_LASTGOP
static final int PUBLISH_BITRATE_SOURCE_MEASURE
static final int PUBLISH_BITRATE_SOURCE_METADATA
static final int PUBLISH_FRAMERATE_SOURCE_MEASURE
static final int PUBLISH_FRAMERATE_SOURCE_METADATA
static final int READACCESS
static final int VIDEOSAMPLEACCESS
static final int WRITEACCESS
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 addAudioExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)
extraData - extra datavoid addCalbackListener(IMediaStreamCallback callbackListener)
callbackListener - void addClientListener(IMediaStreamActionNotify actionListener)
actionListener - listenervoid addClientListener(IMediaStreamActionNotify2 actionListener)
actionListener - listenervoid addClientListener(IMediaStreamActionNotify3 actionListener)
actionListener - listenervoid addDataData(byte[] data,
int offset,
int size)
data - byte arrayoffset - offset in byte arraysize - size of data to addvoid addDataExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)
extraData - extra datavoid addLivePacketListener(IMediaStreamLivePacketNotify listener)
listener - listenervoid 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 addVideoExtraData(java.util.Map<String,IAMFPacketExtraData> extraData)
extraData - extra datavoid addVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener)
h264SEIListener - H.264 SEI listenervoid clear()
void clearFastPlaySettings()
void clearLoggingValues()
void close()
void flush()
boolean[] getAccess(IClient client, String name)
client - clientname - stream nameAMFPacket getAudioCodecConfigPacket(long timecode)
timecode - timecode of the packet to which you want to get the codec config informationint getAudioMissing()
int getAudioSize()
long getAudioTC()
int getBufferTime()
byte[] getBurstStartStop(boolean isStart)
isStart - is startString getCacheName()
IClient getClient()
int getClientId()
String getContextStr()
int getDataMissing()
int getDataSize()
long getDataTC()
int getDataType()
String getDvrRecorder()
ILiveStreamDvrRecorder getDvrRecorder(String name)
name - DVR Recorder nameString getDvrRecorderList()
String getDvrRepeater()
ElapsedTimer getElapsedTime()
String getExt()
com.wowza.wms.stream.FastPlaySettings getFastPlaySettings()
int getHeaderSize()
IHTTPStreamerSession getHTTPStreamerSession()
boolean getIsWebRTC()
AMFPacket getLastKeyFrame()
AMFPacket getLastPacket()
String getLiveStreamPacketizer()
ILiveStreamPacketizer getLiveStreamPacketizer(String name)
name - LiveStreamPacketizer nameString getLiveStreamPacketizerList()
String getLiveStreamRepeater()
ILiveStreamTranscoder getLiveStreamTranscoder(String name)
name - transcoder nameString getLiveStreamTranscoderList()
java.util.Map<String,ILiveStreamTranscoder> getLiveStreamTranscoders()
long getMaxTimecode()
IOPerformanceCounter getMediaIOPerformance()
IMediaStreamMetaDataProvider getMetaDataProvider()
String getName()
INetConnection getNetConnection()
IMediaStreamPlay getPlayer()
java.util.List<AMFPacket> getPlayPackets()
WMSProperties getProperties()
int getPublishAudioCodecId()
int getPublishBitrateAudio()
int getPublishBitrateAudio(int source)
source - source of bitrate (see IMediaStream.PUBLISH_BITRATE_SOURCE_*)int getPublishBitrateVideo()
int getPublishBitrateVideo(int source)
source - source of bitrate (see IMediaStream.PUBLISH_BITRATE_SOURCE_*)long getPublishFrameCountAudio()
long getPublishFrameCountData()
long getPublishFrameCounts(long[] counts)
long getPublishFrameCountVideo()
long getPublishFrameCountVideoKey()
double getPublishFramerateVideo()
double getPublishFramerateVideo(int source)
source - source of framerate (see IMediaStream.PUBLISH_FRAMERATE_SOURCE_*)int[] getPublishKeyFrameIntervalsVideo()
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()
com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo getTranscoderEncoderStreamInfo()
com.wowza.wms.transcoder.model.TranscoderSessionDestination getTranscoderSessionDestination()
String getUniqueStreamIdStr()
AMFPacket getVideoCodecConfigPacket(long timecode)
timecode - timecode of the packet to which you want to get the codec config informationint 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 receivedlong incrementMediaLossBytes(long bytes,
long count)
bytes - number of bytes sentcount - number of packets sentlong incrementMediaOutBytes(long bytes,
long count)
bytes - number of bytes sentcount - number of packets sentvoid 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.xmlvoid 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 isPublisherStream()
boolean isPublishStreamReady(boolean checkAudio,
boolean checkVideo)
checkAudio - check audio streamcheckVideo - check video streamboolean isReceiveAudio()
boolean isReceiveVideo()
boolean isRecord()
boolean isSendPlayStopLogEvent()
boolean isSendPublishStopLogEvent()
boolean isSendRecordStopLogEvent()
boolean isTranscoderEncoderStreamRoot()
boolean isTranscodeResult()
boolean isVideoH264SEIListenerEmpty()
double length()
void notifyActionOnCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
codecInfoAudio - audio codec informationvoid notifyActionOnCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
codecInfoVideo - video codec informationvoid notifyActionOnMetaData(AMFPacket metaDataPacket)
metaDataPacket - metaDataPacketvoid notifyActionPause(boolean isPause,
long location)
isPause - is pause or unpauselocation - timecode (milliseconds) of actionvoid notifyActionPauseRaw(boolean isPause,
long location)
isPause - is pause or unpauselocation - timecode (milliseconds) of actionvoid notifyActionPlay(String streamName,
double playStart,
double playLen,
int playReset)
streamName - stream nameplayStart - play startplayLen - play lengthplayReset - play resetvoid 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 notifyLivePacket(AMFPacket packet)
packet - new live AMF packetvoid notifyVideoH264Packet(AMFPacket packet, com.wowza.wms.media.h264.H264SEIMessages seiMessages)
packet - AMF PacketseiMessages - seiMessagesvoid packetComplete()
void publish()
void putDvrRecorder(String name,
ILiveStreamDvrRecorder dvr)
name - dvr namedvr - live stream dvrvoid putLiveStreamTranscoder(String name,
ILiveStreamTranscoder liveStreamTranscoder)
name - transcoder nameliveStreamTranscoder - live stream transcodervoid registerCallback(String handlerName,
IMediaStreamCallback callback)
handlerName - handler namecallback - callback objectvoid registerOnPlayStatus(IMediaStreamCallback callback)
callback - callback objectvoid registerOnStatus(IMediaStreamCallback callback)
callback - callback objectvoid removeCalbackListener(IMediaStreamCallback callbackListener)
callbackListener - void removeClientListener(IMediaStreamActionNotify actionListener)
actionListener - listenervoid removeClientListener(IMediaStreamActionNotify2 actionListener)
actionListener - listenervoid removeClientListener(IMediaStreamActionNotify3 actionListener)
actionListener - listenerILiveStreamDvrRecorder removeDvrRecorder(String name)
name - dvr namevoid removeLivePacketListener(IMediaStreamLivePacketNotify listener)
listener - listenerILiveStreamTranscoder removeLiveStreamTranscoder(String name)
name - transcoder namevoid removeVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener)
h264SEIListener - H.264 SEI listenervoid send(String handlerName)
handlerName - handler namevoid send(String handlerName,
Object... params)
handlerName - handler nameparams - variable list of parameters. All parameters will be wrapped in AMFDataObj.void sendAMF3(String handlerName)
handlerName - handler namevoid sendAMF3(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 - OutputStreamvoid sendDirect(String handlerName)
handlerName - handler namevoid sendDirect(String handlerName,
Object... params)
handlerName - handler nameparams - variable list of parameters. All parameters will be wrapped in AMFDataObj.void sendDirectAMF3(String handlerName)
handlerName - handler namevoid sendDirectAMF3(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 - timecodeint sendLivePlayStart(java.io.OutputStream out,
String name,
long timecode,
long timecodeOffset)
out - OutputStreamname - stream nametimecode - timecodetimecodeOffset - timecode offsetint sendLivePlaySwitch(java.io.OutputStream out,
String name,
long timecode)
out - OutputStreamname - stream nametimecode - timecodeint sendPauseNotify(long timecode,
String name)
timecode - timecode of eventname - stream nameint sendPauseNotify(java.io.OutputStream out,
long timecode,
String name)
out - OutputStreamtimecode - timecode of eventname - stream nameint sendPlayReset(java.io.OutputStream out,
String name)
out - OutputStreamname - stream nameint sendPlayReset(String name)
name - stream nameint sendPlaySeek(long location,
long seekLocation,
String name)
location - request location of seekseekLocation - result location of seekname - stream nameint sendPlaySeek(java.io.OutputStream out,
long location,
long seekLocation,
String name)
out - OutputStreamlocation - request location of seekseekLocation - result location of seekname - stream nameint 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 eventint 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 nameint 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 nameint sendPlayStop(java.io.OutputStream out,
long location,
String name)
out - OutputStreamlocation - timecode where play stoppedname - stream nameint sendPlaySwitch(java.io.OutputStream out,
String name,
boolean isSwitch,
long timecode)
out - OutputStreamname - stream nameisSwitch - is this a switch or a starttimecode - timecode of eventint sendPlaySwitch(String name,
long timecode)
name - stream nametimecode - timecode of eventint sendStreamNotFound(java.io.OutputStream out,
String name)
out - OutputStreamname - stream nameint sendStreamNotFound(String name)
name - stream nameint sendUnpauseNotify(long location,
String name)
location - timecode of eventname - stream nameint sendUnpauseNotify(java.io.OutputStream out,
long location,
String name)
out - OutputStreamlocation - timecode of eventname - stream nameint 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 - timecodevoid 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 setDvrRecorder(String recorderName)
recorderName - DVR Recordervoid setDvrRecorderList(String recorderList)
recorderList - comma separated list of DVR Recorder namesvoid setExt(String ext)
ext - void setFastPlaySettings(com.wowza.wms.stream.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 setIsWebRTC(boolean isWebRTC)
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 setLiveStreamTranscoderList(String liveStreamTranscoderList)
liveStreamTranscoderList - comma separated list of LiveStreamTranscoders namesvoid 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 namevoid setName(String name,
String ext)
name - stream nameext - stream extensionvoid 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(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 setPublisherStream(boolean isPublisherStream)
isPublisherStream - true if stream was created by stream publisher APIvoid 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 - true if second parameter of NetStream.publish is "record"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 setTranscoderEncoderStreamInfo(com.wowza.wms.transcoder.encoder.TranscoderEncoderStreamInfo transcoderEncoderStreamInfo)
transcoderEncoderStreamInfo - transcoder encoder context informationvoid setTranscodeResult(boolean isTranscodeResult)
isTranscodeResult - true if stream the result of a transcode operationvoid 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()