public class RTPStream
extends Object
RTPStream: RTP Stream class which encapsulates an IMediaStream class for RTP streaming.
| Constructor | Description |
|---|---|
RTPStream(RTPContext context,
String streamId) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addLockRepeaterStreams(String streamName,
MediaCasterStreamItem mediaCasterStreamItem) |
|
void |
addStreamAttribute(String key,
String value) |
Add a name value pair to the stream attribute collection
|
void |
addStreamInfo(String key,
String value) |
Add a name value pair to the stream info collection
|
void |
addTrack(com.wowza.wms.rtp.model.RTPTrack track) |
Add a track
|
void |
addTrackId(String seq,
String trackId) |
Add track
|
void |
addTrackInternal(com.wowza.wms.rtp.model.RTPTrack track) |
Add RTP track
|
void |
announce(com.wowza.wms.rtp.model.RTPRequestStatus status) |
Execute announce command
|
void |
attachToWMSSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo) |
Attach to WMS session, Internal use
|
static int |
avSyncNameToId(String avSyncName) |
Get audio/video sync id from name
|
void |
checkSendMetadata(long adjTimecode,
com.wowza.wms.rtp.model.RTPTrack rtpTrack) |
Check to see if we have sent onMetadata event, if not send
|
void |
clearRTSPSessionExtraLines() |
Clear SDP extra lines
|
void |
clearTracks() |
Clear all tracks
|
boolean |
createStream(com.wowza.wms.rtp.model.RTPRequestStatus status) |
|
boolean |
createStream(com.wowza.wms.rtp.model.RTPRequestStatus status,
IApplicationInstance appInstance) |
Create IMediaStream, Internal use.
|
String |
describe(RTPSession rtspSession,
int isStreamPacketizer,
com.wowza.wms.rtp.model.RTPRequestStatus status,
int[] validCodecsAudio,
int[] validCodecsVideo) |
Get RTP describe details
|
String |
describe(RTPSession rtspSession,
com.wowza.wms.rtp.model.RTPRequestStatus status) |
Execute describe command
|
com.wowza.wms.rtp.model.RTPSDPParts |
describeGetDetails(RTPSession rtspSession,
int isStreamPacketizer,
com.wowza.wms.rtp.model.RTPRequestStatus status,
int[] validCodecsAudio,
int[] validCodecsVideo) |
Get RTP describe details
|
void |
detachFromWMSSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo) |
Detach from WMS session, Internal use.
|
void |
extractCodecConfigFromTrackInfo() |
Extract codec config information from SDP data
|
String |
formatRTPInfo(long timecode,
int videoSeq,
int audioSeq) |
Format RTP info
|
IApplicationInstance |
getAppInstance() |
Get application instance
|
String |
getAppInstanceName() |
Get the application instance name
|
String |
getAppName() |
Get the application name
|
com.wowza.wms.rtp.model.RTPTrack |
getAudioTrack() |
Get the most likely audio track
|
int |
getAutoAllocateInterleavePorts() |
|
int |
getAVSyncMethod() |
Get the audio/video sync method.
|
double |
getDuration() |
Get the duration of the stream if video on demand
|
String |
getHost() |
Get host
|
AMFPacket[] |
getLastPacketsByType(IMediaReader localReader,
double startTime) |
Analyzes stream to get information, Internal use.
|
AMFPacket[] |
getLastPacketsByType(IMediaStream localStream) |
Analyzes stream to get information, Internal use.
|
int |
getMaxRTCPWaitTime() |
Get max time to wait for RTCP sender reports (milliseconds)
|
String |
getMediaCasterType() |
Get the media caster stream type for this stream
|
IMediaReader |
getMediaReader() |
Get media reader if video on demand stream
|
byte[] |
getMetadataPacket() |
Get the onMetadata packet for this RTP stream
|
int |
getMode() |
Get the current play/publish mode
|
String |
getModeName() |
|
int |
getMPEGTSAudioBitrate() |
|
String |
getMPEGTSAudioLanguage() |
|
int |
getMPEGTSAudioPID() |
Get the audio PID id if MPEG-TS stream
|
int |
getMPEGTSProgramID() |
|
int |
getMPEGTSVideoBitrate() |
|
int |
getMPEGTSVideoPID() |
Get the video PID id if MPEG-TS stream
|
long |
getNormalizedNTPTimecode(long timecode) |
Turn a millisecond timcode into an NTP timecode
|
String |
getOutHost() |
Get the out host
|
String |
getResyncAudioVideoOnSRLogStreamSuffix() |
Get the stream suffixes that are set for timing information logging
|
RTPContext |
getRTPContext() |
Get the RTP context
|
RTPDestination |
getRTPDestination() |
Get RTP destination
|
com.wowza.wms.rtp.model.RTPStream.RTPInfo |
getRTPInfo(double startTime,
int videoSeq,
int audioSeq) |
Get the RTP info
|
com.wowza.wms.rtp.model.RTPStreamContext |
getRTPStreamContext() |
|
String |
getRTSPBindIpAddress() |
Get the bind RTSP bind IP address
|
String |
getRTSPConnectionAddressType() |
Get the connection address type
|
String |
getRTSPConnectionIpAddress() |
Get the connection IP address
|
int |
getRTSPMaximumPendingWriteBytes() |
Get the maximum number of waiting bytes allow for this RTSP session
|
String |
getRTSPOriginAddressType() |
Get the origin address type
|
String |
getRTSPOriginIpAddress() |
Get the origin IP address
|
String |
getRTSPSessionDescription() |
Get session description
|
java.util.List<com.wowza.wms.rtp.model.RTPStream.RTSPExtraLine> |
getRTSPSessionExtraLines() |
Get extra SDP lines
|
String |
getRTSPSessionName() |
Get session name
|
int |
getRTSPSessionTimeout() |
Get RTP session timeout (milliseconds)
|
String |
getSDPLang() |
Get the SDP language
|
String |
getSDPTransportStr() |
|
RTPSession |
getSession() |
Get the RTP session
|
IMediaStream |
getStream() |
Get the IMediaStream
|
java.util.Map<String,String> |
getStreamAttributes() |
Get all name/value pairs in the stream attributes collection
|
String |
getStreamExt() |
Get the stream extension
|
String |
getStreamId() |
Get the stream id
|
java.util.Map<String,String> |
getStreamInfo() |
Get all name/value pairs in the stream info collection
|
String |
getStreamInfo(String key) |
Get stream info by name
|
Object |
getStreamLock() |
Get the synchronization lock for this stream
|
String |
getStreamName() |
Get stream name
|
String |
getStreamNameLogging() |
Get the stream name used for logging
|
String |
getStreamQueryStr() |
Get the stream query string
|
long |
getStreamSessionId() |
Get the stream session id
|
String |
getStreamSessionIp() |
Get the stream session ip
|
long |
getStreamSessionVersion() |
Get the stream session version
|
com.wowza.wms.rtp.model.RTPTrack |
getStreamTrack() |
Get the most likely stream track
|
String |
getStreamType() |
Get the stream type
|
com.wowza.wms.rtp.model.RTPTrack |
getTrack(String trackId) |
Get track by id
|
String |
getTrackId(String seq) |
Get track by sequence number
|
java.util.List<String> |
getTrackNames() |
Get a list of track ids
|
String |
getTransportMode() |
Get the transport mode
|
int |
getUDPManagedDeliveryCount() |
|
int |
getUDPManagedDeliveryDelay() |
|
IUDPTransport |
getUDPTransport(boolean isMulticast) |
Get the UDP transport for this stream
|
IVHost |
getVHost() |
Get vhost
|
com.wowza.wms.rtp.model.RTPTrack |
getVideoTrack() |
Get the most likely video track
|
long |
getVODLastTimeTC() |
Get the last timecode (milliseconds) sent for video on demand
|
long |
getVODPlayLen() |
Get the video on demand play duration (milliseconds)
|
long |
getVODStartTimeTC() |
Get the video on demand start time (milliseconds)
|
void |
idle(org.apache.mina.common.IoSession session,
com.wowza.wms.server.RtmpResponseMessage resp) |
Process idle event
|
void |
incrementMediaInBytes(long bytes) |
Increment the media bytes in, Internal use.
|
void |
initProperties(IApplicationInstance appInstance) |
|
boolean |
isAVSyncNonSR() |
Is sync method based on RTCP packets (sender report)
|
boolean |
isBlockUDPOut() |
|
boolean |
isCheckIpAddr() |
Are we checking the ip address of each incoming RTP packet
|
boolean |
isCheckSSRC() |
Are we checking the ssrc values of each incoming RTP packet
|
boolean |
isForceMPEGTSOut() |
|
boolean |
isForceRTSPInterleaved() |
True if forcing RTSP interleaved
|
boolean |
isLive() |
Is live stream
|
boolean |
isModePlay() |
Is this a play stream
|
boolean |
isModePublish() |
Is this a publish stream
|
boolean |
isModeUknown() |
Is the stream mode unknown (publish vs play)
|
boolean |
isMPEGTSOut() |
Is MPEG-TS out
|
boolean |
isPaused() |
Is stream paused
|
boolean |
isPublishStreamReady() |
See if a publishing stream has enough data to start playback
|
boolean |
isRefuseIncomingUDPConnections() |
|
boolean |
isRefuseOutgoingUDPConnections() |
|
boolean |
isResetPlayStream() |
Is reset stream trigger, Internal use.
|
boolean |
isResyncAudioVideoOnSR() |
Reset audio/video sync on new RTCP packets (not just first packet)
|
boolean |
isResyncAudioVideoOnSRLog() |
Log audio/video sync on new RTCP packets (not just first packet)
|
boolean |
isRTPIgnoreProfileLevelId() |
|
boolean |
isRTPIgnoreSPropParameterSets() |
|
boolean |
isRTSP() |
Is this RTP Stream managed by RTSP session
|
boolean |
isRTSPAlwaysUseSDPPorts() |
Force RTSP to use ports in SDP data
|
boolean |
isRTSPPull() |
Is this RTP Stream managed by RTSP session
|
boolean |
isSendSDESEvents() |
Send RTCP SDES events
|
boolean |
isStreamStarted() |
Is stream started
|
boolean |
isTimeout(long currTime,
int timeout) |
Is the stream timeout out
|
boolean |
isUDPTransportOverride() |
|
boolean |
isWebRTC() |
|
void |
lockRepeaterStreams(java.util.List<String> streamNames) |
Lock a list of live repeater stream names, Internal use.
|
void |
notifyEncryptionProvider(com.wowza.wms.rtp.model.RTPTrack rtpTrack) |
|
void |
notifyEncryptionProviderAllTracks() |
|
void |
pause(com.wowza.wms.rtp.model.RTPRequestStatus status) |
Execute pause
|
com.wowza.wms.rtp.model.RTPStreamPlayResult |
play(com.wowza.wms.rtp.model.RTPRequestStatus status) |
Execute play
|
com.wowza.wms.rtp.model.RTPStreamPlayResult |
play(com.wowza.wms.rtp.model.RTPRequestStatus status,
double startTime,
double stopTime) |
Execute play
|
void |
putRTSPSessionExtraLine(int location,
String line) |
Add an extra line to the SDP data
|
com.wowza.wms.rtp.model.RTPStreamPlayResult |
record(com.wowza.wms.rtp.model.RTPRequestStatus status) |
Execute record
|
com.wowza.wms.rtp.model.RTPStreamPlayResult |
record(com.wowza.wms.rtp.model.RTPRequestStatus status,
double startTime,
double stopTime) |
Execute record
|
com.wowza.wms.rtp.model.RTPTrack |
removeTrack(String trackId) |
Remove a track by id
|
com.wowza.wms.rtp.model.RTPTrack |
removeTrackInternal(String trackId) |
Remove track by track id
|
void |
resetSentMetadataFlag() |
Reset sendMetadata flag
|
void |
setAppInstanceName(String appInstanceName) |
Set the application instance name
|
void |
setAppName(String appName) |
Get the application name
|
void |
setAVSyncMethod(int avSyncMethod) |
Set the audio/video sync method.
|
void |
setBlockUDPOut(boolean blockUDPOut) |
|
void |
setCheckIpAddr(boolean checkIpAddr) |
Are we checking the ip address of each incoming RTP packet
|
void |
setCheckSSRC(boolean checkSSRC) |
Are we checking the ssrc values of each incoming RTP packet
|
void |
setForceMPEGTSOut(boolean isForceMPEGTSOut) |
|
void |
setForceRTSPInterleaved(boolean isForceRTSPInterleaved) |
True if forcing RTSP interleaved
|
void |
setHost(String host) |
Set host
|
void |
setLive(boolean isLive) |
Is live stream
|
void |
setMaxRTCPWaitTime(int maxRTCPWaitTime) |
Set max time to wait for RTCP sender reports (milliseconds)
|
void |
setMode(int mode) |
Set the play/publish mode
|
void |
setMPEGTSAudioBitrate(int mpegtsAudioBitrate) |
|
void |
setMPEGTSAudioLanguage(String mpegtsAudioLanguage) |
|
void |
setMPEGTSAudioPID(int mpegtsAudioPID) |
Set the audio PID id if MPEG-TS stream
|
void |
setMPEGTSOut(boolean isMPEGTSOut) |
Is MPEG-TS out
|
void |
setMPEGTSProgramID(int mpegtsProgramId) |
|
void |
setMPEGTSVideoBitrate(int mpegtsVideoBitrate) |
|
void |
setMPEGTSVideoPID(int mpegtsVideoPID) |
Set the video PID id if MPEG-TS stream
|
void |
setOutHost(String outHost) |
Set out host
|
void |
setRefuseIncomingUDPConnections(boolean refuseIncomingUDPConnections) |
|
void |
setRefuseOutgoingUDPConnections(boolean refuseOutgoingUDPConnections) |
|
void |
setResetPlayStream(boolean doResetPlayStream) |
Set reset stream trigger
|
void |
setResyncAudioVideoOnSR(boolean resyncAudioVideoOnSR) |
Reset audio/video sync on new RTCP packets (not just first packet)
|
void |
setResyncAudioVideoOnSRLog(boolean resyncAudioVideoOnSRLog) |
Log audio/video sync on new RTCP packets (not just first packet)
|
void |
setResyncAudioVideoOnSRLogStreamSuffix(String names) |
Set the stream names that require to be logged for timing information
|
void |
setRTPDestination(RTPDestination rtpDestination) |
Set RTP destination
|
void |
setRTPIgnoreProfileLevelId(boolean rtpIgnoreProfileLevelId) |
|
void |
setRTPIgnoreSPropParameterSets(boolean rtpIgnoreSPropParameterSets) |
|
void |
setRTPStreamContext(com.wowza.wms.rtp.model.RTPStreamContext rtpStreamContext) |
|
void |
setRTSP(boolean isRTSP) |
Is this RTP Stream managed by RTSP session
|
void |
setRTSPAlwaysUseSDPPorts(boolean rtspAlwaysUseSDPPorts) |
Force RTSP to use ports in SDP data
|
void |
setRTSPBindIpAddress(String rtspBindIpAddress) |
Set the bind RTSP bind IP address
|
void |
setRTSPConnectionAddressType(String rtspConnectionAddressType) |
Set the connection address type
|
void |
setRTSPConnectionIpAddress(String rtspConnectionIpAddress) |
Set the connection IP address
|
void |
setRTSPMaximumPendingWriteBytes(int rtspMaximumPendingWriteBytes) |
Set the maximum number of waiting bytes allow for this RTSP session
|
void |
setRTSPOriginAddressType(String rtspOriginAddressType) |
Set the origin address type
|
void |
setRTSPOriginIpAddress(String rtspOriginIpAddress) |
Set the origin IP address
|
void |
setRTSPPull(boolean isRTSPPull) |
Is this RTP Stream managed by RTSP session
|
void |
setRTSPSessionDescription(String rtspSessionDescription) |
Get session description
|
void |
setRTSPSessionName(String rtspSessionName) |
Set session name
|
void |
setRTSPSessionTimeout(int rtspSessionTimeout) |
Set RTP session timeout (milliseconds)
|
void |
setSDPLang(String sdpLang) |
Set the SDP language
|
void |
setSDPTransportStr(String sdpTransportStr) |
|
void |
setSendSDESEvents(boolean sendSDESEvents) |
Send RTCP SDES events
|
void |
setSession(RTPSession session) |
Set the RTP session
|
void |
setStreamExt(String streamExt) |
Set the stream extension
|
void |
setStreamName(String streamName) |
Set stream name
|
void |
setStreamNameLogging(String streamNameLogging) |
Set the stream name used for logging
|
void |
setStreamQueryStr(String streamQueryStr) |
Set the stream query string
|
void |
setStreamSessionId(long streamSessionId) |
Set the stream session id
|
void |
setStreamSessionIp(String streamSessionIp) |
Set the stream session ip
|
void |
setStreamSessionVersion(long streamSessionVersion) |
Set the stream session version
|
void |
setStreamType(String streamType) |
Set the stream type
|
void |
setTransportMode(String transportMode) |
Set the transport mode
|
void |
setUDPManagedDeliveryCount(int udpManagedDeliveryCount) |
|
void |
setUDPManagedDeliveryDelay(int udpManagedDeliveryDelay) |
|
void |
setUDPTransport(IUDPTransport udpTransport) |
|
void |
setVODLastTimeTC(long vodLastTimeTC) |
Set the last timecode (milliseconds) sent for video on demand
|
void |
setVODPlayLen(long vodPlayLen) |
Set the video on demand play duration (milliseconds)
|
void |
setVODStartTimeTC(long vodStartTimeTC) |
Set the video on demand start time (milliseconds)
|
void |
setWebRTC(boolean isWebRTC) |
|
void |
shutdown(com.wowza.wms.rtp.model.RTPRequestStatus status) |
shutdown RTP stream, Internal use.
|
com.wowza.wms.rtp.model.RTPTrack |
sloppyGetTrack(String trackId) |
Sloppy method for finding track by name, Internal use.
|
boolean |
streamExists() |
Return true if RTP stream contains a IMediaStream
|
void |
switchSetupToMPEGTS() |
Switch a stream to MPEG-TS, Internal use.
|
void |
touch() |
Touch the stream so that it does not timeout
|
String |
transportFindBestMatch(String transport) |
Based on a trasport string from SETUP command find best match
|
void |
unlockRepeaterStreams() |
Unlock live repeater streams
|
public static final int AVSYNCMETHODS_RTPTIMECODE
public static final int AVSYNCMETHODS_SENDERREPORT
public static final int AVSYNCMETHODS_SYSTEMCLOCK
public static final int AVSYNCMETHODS_UNKNOWN
public static final String DEFAULT_RTP_TRANSPORT_STR
public static final boolean DEFAULT_RTPIGNOREPROFILELEVELID
public static final boolean DEFAULT_RTPIGNORESPROPPARAMETERSETS
public static final String DEFAULT_RTSPSESSIONNAME
public static final int MODE_PLAY
public static final int MODE_PUBLISH
public static final int MODE_UNKNOWN
public static final int SDPLOCATION_AUDIO
public static final int SDPLOCATION_STREAM
public static final int SDPLOCATION_VIDEO
public static final String STREAMINFO_SESSIONATTRIBUTES
public static final String STREAMINFO_SESSIONBANDWIDTH
public static final String STREAMINFO_SESSIONCONNECTIONDATA
public static final String STREAMINFO_SESSIONEMAILADDRESS
public static final String STREAMINFO_SESSIONINFORMATION
public static final String STREAMINFO_SESSIONNAME
public static final String STREAMINFO_SESSIONPHONENUMBER
public static final String STREAMINFO_SESSIONPORIGIN
public static final String STREAMINFO_SESSIONPROTOCOLVERSION
public static final String STREAMINFO_SESSIONREPEATTIMES
public static final String STREAMINFO_SESSIONTIMEZONES
public static final String STREAMINFO_SESSIONTIMING
public static final String STREAMINFO_SESSIONURI
public RTPStream(RTPContext context, String streamId)
context - RTP contextstreamId - stream idpublic void addLockRepeaterStreams(String streamName,
MediaCasterStreamItem mediaCasterStreamItem)
public void addStreamAttribute(String key,
String value)
key - namevalue - valuepublic void addStreamInfo(String key,
String value)
key - namevalue - valuepublic void addTrack(com.wowza.wms.rtp.model.RTPTrack track)
track - RTP trackpublic void addTrackId(String seq,
String trackId)
seq - sequence numbertrackId - track idpublic void addTrackInternal(com.wowza.wms.rtp.model.RTPTrack track)
track - RTP trackpublic void announce(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - RTP statuspublic void attachToWMSSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo)
wmsSessionInfo - session infopublic static int avSyncNameToId(String avSyncName)
avSyncName - audio/video sync namepublic void checkSendMetadata(long adjTimecode,
com.wowza.wms.rtp.model.RTPTrack rtpTrack)
adjTimecode - timecode (milliseconds)public void clearRTSPSessionExtraLines()
public void clearTracks()
public boolean createStream(com.wowza.wms.rtp.model.RTPRequestStatus status)
public boolean createStream(com.wowza.wms.rtp.model.RTPRequestStatus status,
IApplicationInstance appInstance)
status - statuspublic String describe(RTPSession rtspSession, int isStreamPacketizer, com.wowza.wms.rtp.model.RTPRequestStatus status, int[] validCodecsAudio, int[] validCodecsVideo)
rtspSession - rtp sessionisStreamPacketizer - is packetizing as a streamstatus - statusvalidCodecsAudio - list of valid audio codecsvalidCodecsVideo - list of valid video codecspublic String describe(RTPSession rtspSession, com.wowza.wms.rtp.model.RTPRequestStatus status)
rtspSession - RTP sessionstatus - RTP statuspublic com.wowza.wms.rtp.model.RTPSDPParts describeGetDetails(RTPSession rtspSession, int isStreamPacketizer, com.wowza.wms.rtp.model.RTPRequestStatus status, int[] validCodecsAudio, int[] validCodecsVideo)
rtspSession - rtp sessionisStreamPacketizer - is packetizing as a streamstatus - statusvalidCodecsAudio - list of valid audio codecsvalidCodecsVideo - list of valid video codecspublic void detachFromWMSSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo)
wmsSessionInfo - session infopublic void extractCodecConfigFromTrackInfo()
public String formatRTPInfo(long timecode,
int videoSeq,
int audioSeq)
timecode - timecodevideoSeq - video sequence numberaudioSeq - audio sequence numberpublic IApplicationInstance getAppInstance()
public String getAppInstanceName()
public String getAppName()
public com.wowza.wms.rtp.model.RTPTrack getAudioTrack()
public int getAutoAllocateInterleavePorts()
public int getAVSyncMethod()
public double getDuration()
public String getHost()
public AMFPacket[] getLastPacketsByType(IMediaReader localReader, double startTime)
localReader - media readerstartTime - start timepublic AMFPacket[] getLastPacketsByType(IMediaStream localStream)
localStream - local streampublic int getMaxRTCPWaitTime()
public String getMediaCasterType()
public IMediaReader getMediaReader()
public byte[] getMetadataPacket()
public int getMode()
public String getModeName()
public int getMPEGTSAudioBitrate()
public String getMPEGTSAudioLanguage()
public int getMPEGTSAudioPID()
public int getMPEGTSProgramID()
public int getMPEGTSVideoBitrate()
public int getMPEGTSVideoPID()
public long getNormalizedNTPTimecode(long timecode)
timecode - timecode (milliseconds)public String getOutHost()
public String getResyncAudioVideoOnSRLogStreamSuffix()
public RTPContext getRTPContext()
public RTPDestination getRTPDestination()
public com.wowza.wms.rtp.model.RTPStream.RTPInfo getRTPInfo(double startTime,
int videoSeq,
int audioSeq)
startTime - start timevideoSeq - video sequence numberaudioSeq - audio sequence numberpublic com.wowza.wms.rtp.model.RTPStreamContext getRTPStreamContext()
public String getRTSPBindIpAddress()
public String getRTSPConnectionAddressType()
public String getRTSPConnectionIpAddress()
public int getRTSPMaximumPendingWriteBytes()
public String getRTSPOriginAddressType()
public String getRTSPOriginIpAddress()
public String getRTSPSessionDescription()
public java.util.List<com.wowza.wms.rtp.model.RTPStream.RTSPExtraLine> getRTSPSessionExtraLines()
public String getRTSPSessionName()
public int getRTSPSessionTimeout()
public String getSDPLang()
public String getSDPTransportStr()
public RTPSession getSession()
public IMediaStream getStream()
public java.util.Map<String,String> getStreamAttributes()
public String getStreamExt()
public String getStreamId()
public java.util.Map<String,String> getStreamInfo()
public String getStreamInfo(String key)
key - namepublic Object getStreamLock()
public String getStreamName()
public String getStreamNameLogging()
public String getStreamQueryStr()
public long getStreamSessionId()
public String getStreamSessionIp()
public long getStreamSessionVersion()
public com.wowza.wms.rtp.model.RTPTrack getStreamTrack()
public String getStreamType()
public com.wowza.wms.rtp.model.RTPTrack getTrack(String trackId)
trackId - track idpublic String getTrackId(String seq)
seq - sequence numberpublic java.util.List<String> getTrackNames()
public String getTransportMode()
public int getUDPManagedDeliveryCount()
public int getUDPManagedDeliveryDelay()
public IUDPTransport getUDPTransport(boolean isMulticast)
isMulticast - true if multicastpublic IVHost getVHost()
public com.wowza.wms.rtp.model.RTPTrack getVideoTrack()
public long getVODLastTimeTC()
public long getVODPlayLen()
public long getVODStartTimeTC()
public void idle(org.apache.mina.common.IoSession session,
com.wowza.wms.server.RtmpResponseMessage resp)
session - io sessionresp - idle requestpublic void incrementMediaInBytes(long bytes)
bytes - public void initProperties(IApplicationInstance appInstance)
public boolean isAVSyncNonSR()
public boolean isBlockUDPOut()
public boolean isCheckIpAddr()
public boolean isCheckSSRC()
public boolean isForceMPEGTSOut()
public boolean isForceRTSPInterleaved()
public boolean isLive()
public boolean isModePlay()
public boolean isModePublish()
public boolean isModeUknown()
public boolean isMPEGTSOut()
public boolean isPaused()
public boolean isPublishStreamReady()
public boolean isRefuseIncomingUDPConnections()
public boolean isRefuseOutgoingUDPConnections()
public boolean isResetPlayStream()
public boolean isResyncAudioVideoOnSR()
public boolean isResyncAudioVideoOnSRLog()
public boolean isRTPIgnoreProfileLevelId()
public boolean isRTPIgnoreSPropParameterSets()
public boolean isRTSP()
public boolean isRTSPAlwaysUseSDPPorts()
public boolean isRTSPPull()
public boolean isSendSDESEvents()
public boolean isStreamStarted()
public boolean isTimeout(long currTime,
int timeout)
currTime - current timetimeout - timeout valuepublic boolean isUDPTransportOverride()
public boolean isWebRTC()
public void lockRepeaterStreams(java.util.List<String> streamNames)
streamNames - stream namespublic void notifyEncryptionProvider(com.wowza.wms.rtp.model.RTPTrack rtpTrack)
public void notifyEncryptionProviderAllTracks()
public void pause(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - RTP statuspublic com.wowza.wms.rtp.model.RTPStreamPlayResult play(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - RTP statuspublic com.wowza.wms.rtp.model.RTPStreamPlayResult play(com.wowza.wms.rtp.model.RTPRequestStatus status,
double startTime,
double stopTime)
status - RTP statusstartTime - playback start timestopTime - playback stop timepublic void putRTSPSessionExtraLine(int location,
String line)
location - location of line, see SDPLOCATION_line - line to addpublic com.wowza.wms.rtp.model.RTPStreamPlayResult record(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - RTP statuspublic com.wowza.wms.rtp.model.RTPStreamPlayResult record(com.wowza.wms.rtp.model.RTPRequestStatus status,
double startTime,
double stopTime)
status - RTP statusstartTime - playback start timestopTime - playback stop timepublic com.wowza.wms.rtp.model.RTPTrack removeTrack(String trackId)
trackId - track idpublic com.wowza.wms.rtp.model.RTPTrack removeTrackInternal(String trackId)
trackId - track idpublic void resetSentMetadataFlag()
public void setAppInstanceName(String appInstanceName)
appInstanceName - application instance namepublic void setAppName(String appName)
appName - application namepublic void setAVSyncMethod(int avSyncMethod)
avSyncMethod - audio/video sync method. See AVSYNCMETHODS_*public void setBlockUDPOut(boolean blockUDPOut)
public void setCheckIpAddr(boolean checkIpAddr)
checkIpAddr - true if checking ip address of each incoming RTP packetpublic void setCheckSSRC(boolean checkSSRC)
checkSSRC - true if checkingpublic void setForceMPEGTSOut(boolean isForceMPEGTSOut)
public void setForceRTSPInterleaved(boolean isForceRTSPInterleaved)
isForceRTSPInterleaved - true if forcing RTSP interleavedpublic void setHost(String host)
host - hostpublic void setLive(boolean isLive)
isLive - true if livepublic void setMaxRTCPWaitTime(int maxRTCPWaitTime)
maxRTCPWaitTime - max time to wait for RTCP sender reports (milliseconds)public void setMode(int mode)
mode - play/publish modepublic void setMPEGTSAudioBitrate(int mpegtsAudioBitrate)
public void setMPEGTSAudioLanguage(String mpegtsAudioLanguage)
public void setMPEGTSAudioPID(int mpegtsAudioPID)
mpegtsAudioPID - audio PID id if MPEG-TS streampublic void setMPEGTSOut(boolean isMPEGTSOut)
isMPEGTSOut - true if MPEG-TS outpublic void setMPEGTSProgramID(int mpegtsProgramId)
public void setMPEGTSVideoBitrate(int mpegtsVideoBitrate)
public void setMPEGTSVideoPID(int mpegtsVideoPID)
mpegtsVideoPID - video PID id if MPEG-TS streampublic void setOutHost(String outHost)
outHost - out hostpublic void setRefuseIncomingUDPConnections(boolean refuseIncomingUDPConnections)
public void setRefuseOutgoingUDPConnections(boolean refuseOutgoingUDPConnections)
public void setResetPlayStream(boolean doResetPlayStream)
doResetPlayStream - true if reset triggerpublic void setResyncAudioVideoOnSR(boolean resyncAudioVideoOnSR)
resyncAudioVideoOnSR - true if resetting audio/video on new RTCP packetspublic void setResyncAudioVideoOnSRLog(boolean resyncAudioVideoOnSRLog)
resyncAudioVideoOnSRLog - true if logging audio/video on new RTCP packetspublic void setResyncAudioVideoOnSRLogStreamSuffix(String names)
names - public void setRTPDestination(RTPDestination rtpDestination)
rtpDestination - RTP destinationpublic void setRTPIgnoreProfileLevelId(boolean rtpIgnoreProfileLevelId)
public void setRTPIgnoreSPropParameterSets(boolean rtpIgnoreSPropParameterSets)
public void setRTPStreamContext(com.wowza.wms.rtp.model.RTPStreamContext rtpStreamContext)
public void setRTSP(boolean isRTSP)
isRTSP - true if managed by RTSP sessionpublic void setRTSPAlwaysUseSDPPorts(boolean rtspAlwaysUseSDPPorts)
rtspAlwaysUseSDPPorts - true if using ports in SDP datapublic void setRTSPBindIpAddress(String rtspBindIpAddress)
rtspBindIpAddress - bind RTSP bind IP addresspublic void setRTSPConnectionAddressType(String rtspConnectionAddressType)
rtspConnectionAddressType - connection address typepublic void setRTSPConnectionIpAddress(String rtspConnectionIpAddress)
rtspConnectionIpAddress - connection IP addresspublic void setRTSPMaximumPendingWriteBytes(int rtspMaximumPendingWriteBytes)
rtspMaximumPendingWriteBytes - maximum number of waiting bytes allow for this RTSP sessionpublic void setRTSPOriginAddressType(String rtspOriginAddressType)
rtspOriginAddressType - origin address typepublic void setRTSPOriginIpAddress(String rtspOriginIpAddress)
rtspOriginIpAddress - origin IP addresspublic void setRTSPPull(boolean isRTSPPull)
isRTSPPull - true if managed by RTSP sessionpublic void setRTSPSessionDescription(String rtspSessionDescription)
rtspSessionDescription - session descriptionpublic void setRTSPSessionName(String rtspSessionName)
rtspSessionName - session namepublic void setRTSPSessionTimeout(int rtspSessionTimeout)
rtspSessionTimeout - RTP session timeout (milliseconds)public void setSDPLang(String sdpLang)
sdpLang - SDP languagepublic void setSDPTransportStr(String sdpTransportStr)
public void setSendSDESEvents(boolean sendSDESEvents)
sendSDESEvents - true if sending RTCP SDES eventspublic void setSession(RTPSession session)
session - RTP sessionpublic void setStreamExt(String streamExt)
streamExt - stream extensionpublic void setStreamName(String streamName)
streamName - stream namepublic void setStreamNameLogging(String streamNameLogging)
streamNameLogging - stream name used for loggingpublic void setStreamQueryStr(String streamQueryStr)
streamQueryStr - stream query stringpublic void setStreamSessionId(long streamSessionId)
streamSessionId - stream session idpublic void setStreamSessionIp(String streamSessionIp)
streamSessionIp - stream session ippublic void setStreamSessionVersion(long streamSessionVersion)
streamSessionVersion - stream session versionpublic void setStreamType(String streamType)
streamType - stream typepublic void setTransportMode(String transportMode)
transportMode - transport modepublic void setUDPManagedDeliveryCount(int udpManagedDeliveryCount)
public void setUDPManagedDeliveryDelay(int udpManagedDeliveryDelay)
public void setUDPTransport(IUDPTransport udpTransport)
public void setVODLastTimeTC(long vodLastTimeTC)
vodLastTimeTC - last timecode (milliseconds) sent for video on demandpublic void setVODPlayLen(long vodPlayLen)
vodPlayLen - video on demand play duration (milliseconds)public void setVODStartTimeTC(long vodStartTimeTC)
vodStartTimeTC - video on demand start time (milliseconds)public void setWebRTC(boolean isWebRTC)
public void shutdown(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - statuspublic com.wowza.wms.rtp.model.RTPTrack sloppyGetTrack(String trackId)
trackId - track namepublic boolean streamExists()
public void switchSetupToMPEGTS()
public void touch()
public String transportFindBestMatch(String transport)
transport - trasport stringpublic void unlockRepeaterStreams()