Package com.wowza.wms.rtp.model
Class RTPSession
- Object
- 
- com.wowza.wms.rtp.model.RTPSession
 
- 
 public class RTPSession extends ObjectRTPSession: RTP session 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.List<IRTSPActionNotify>actionListenersprotected booleanactiveprotected IApplicationInstanceappInstanceprotected IApplicationInstanceappInstanceShutdownprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem>audioPacketizersprotected IAuthenticateRTSPauthenticatePlayHandlerprotected IAuthenticateRTSPauthenticatePublishHandlerstatic intAUTHMETHOD_PLAYstatic intAUTHMETHOD_PUBLISHstatic intAUTHMETHOD_UNKNOWNprotected booleancheckIpAddressesprotected com.wowza.wms.client.ConnectionHolderconnectionHolderprotected StringcookieStrprotected booleandebugRTSPSessionprotected ElapsedTimerelapsedTimeprotected IRTPEncryptionProviderencryptionProviderprotected intidleFrequencyprotected com.wowza.wms.rtp.model.RTPIdleHandleridleHandlerprotected IOPerformanceCounterioPerformanceCounterprotected org.apache.mina.common.support.BaseIoSessionioSessionprotected Stringipprotected booleanisAnnounceprotected booleanisConnectedprotected booleanisDescribeprotected booleanisSessionValidprotected intlastAuthenticateMethodprotected Objectlockprotected booleanloggedConnectprotected StringmulticastInterfaceAddressprotected WMSPropertiespropertiesprotected StringqueryStrprotected booleanredirectSessionprotected intredirectSessionCodeprotected StringredirectSessionMessageprotected StringredirectSessionURLprotected Stringreferrerprotected com.wowza.wms.rtp.model.RTPWriteListenerrtpWriteListenerprotected doublertspPlayRangeStartprotected doublertspPlayRangeStopprotected StringrtspTunnelingSessionIdprotected StringserverIpprotected intserverPortprotected StringsessionIdprotected booleanshutdownClientprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem>streamPacketizersprotected java.util.Map<String,RTPStream>streamsprotected java.util.List<RTPStream>streamsOrderprotected longtimeCreatedprotected IOPerformanceCountertotalIOPerformance2Lastprotected IOPerformanceCountertotalIOPerformanceLastprotected Stringuriprotected StringuserAgentprotected IVHostvhostprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem>videoPacketizersprotected com.wowza.wms.webrtc.model.WebRTCSessionwebRTCSession
 - 
Constructor SummaryConstructors Constructor Description RTPSession(String sessionId)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptSession()Accept this sessionvoidaddActionListener(IRTSPActionNotify actionListener)Add action listenervoidaddIOPerformance(IOPerformanceCounter totalIOPerformanceResult)Internal usevoidaddIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)Internal usevoidaddRTSPStream(RTPStream stream)Add RTP streambooleanallPortsConnected()voidclearLoggingValues()Clear logging values, Internal use.booleandebugRTCPMessages()True if debugging RTCP messages being sent for the RTP sessionvoiddoIdle()IApplicationInstancegetAppInstance()Get application instancecom.wowza.wms.rtp.model.RTPPacketizerItemgetAudioPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId)Get audio packetizer for a given codec id.IAuthenticateRTSPgetAuthenticatePlayHandler()Get the authentication play handlerIAuthenticateRTSPgetAuthenticatePublishHandler()Get the RTP authentication handlercom.wowza.wms.client.ConnectionHoldergetConnectionHolder()Get connection holder, Internal use.StringgetCookieStr()Get cookie stringElapsedTimergetElapsedTime()Get the elapsed timer for this RTP sessionIRTPEncryptionProvidergetEncryptionProvider()intgetIdleFrequency()Get idle frequency (milliseconds)com.wowza.wms.rtp.model.RTPIdleHandlergetIdleHandler()Get idle handlerIOPerformanceCountergetIOPerformanceCounter()Get IO performance counterorg.apache.mina.common.support.BaseIoSessiongetIoSession()StringgetIp()Get remote IP addressintgetLastAuthenticateMethod()Get the last method receivedStringgetMulticastInterfaceAddress()WMSPropertiesgetProperties()Get propertiesStringgetQueryStr()Get query stringintgetRedirectSessionCode()StringgetRedirectSessionMessage()StringgetRedirectSessionURL()StringgetReferrer()Get referrercom.wowza.wms.rtp.model.RTPWriteListenergetRTPWriteListener()Get the RTP write listener for this sessiondoublegetRTSPPlayRangeStart()Get play start range, Internal use.doublegetRTSPPlayRangeStop()Get play stop range, Internal use.RTPStreamgetRTSPStream()Get the default RTP Stream (all RTP sessions have a single RTP Stream)RTPStreamgetRTSPStream(String streamId)Get RTP StreamStringgetRTSPTunnelingSessionId()Get the RTSP/RTP tunneling session idStringgetServerIp()Get the server IP addressintgetServerPort()Get server portStringgetSessionId()Get session idcom.wowza.wms.rtp.model.RTPPacketizerItemgetStreamPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId)Get stream packetizer for a given codec id.StringgetTimeRunning()Get the time running for this RTP sessiondoublegetTimeRunningSeconds()Get the number of second this RTP session has been runningStringgetUri()Get URIStringgetUserAgent()Get user agentIVHostgetVHost()Get vhostcom.wowza.wms.rtp.model.RTPPacketizerItemgetVideoPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId)Get video packetizer for a given codec id.com.wowza.wms.webrtc.model.WebRTCSessiongetWebRTCSession()booleanisActive()booleanisAnnounce()Has ANNOUNCE command been called on this sessionbooleanisAnnounceOrDescribe()Has announce or described been calledbooleanisCheckIpAddresses()booleanisConnected()Is session connectionbooleanisDebugRTSPSession()True if debugging RTSP sessionbooleanisDescribe()Has DESCRIBE command been called on this sessionbooleanisLoggedConnect()Is connect loggedbooleanisRedirectSession()booleanisSessionValid()Is this session validbooleanisShutdownClient()Is RTP session shutdownbooleanisWebRTC()voidonAnnounce(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on ANNOUNCE commandvoidonDescribe(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on DESCRIBE commandvoidonGetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on GET_PARAMETER commandvoidonOptions(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on OPTIONS commandvoidonPause(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on PAUSE commandvoidonPlay(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on PLAY commandvoidonRecord(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on RECORD commandvoidonRedirect(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on REDIRECT commandvoidonSetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on SET_PARAMETER commandvoidonSetup(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on SETUP commandvoidonTeardown(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on TEARDOWN commandvoidputAudioPacketizerItem(int codecId, String classPath)Set the audio packetizer for a given codec idvoidputStreamPacketizerItem(int codecId, String classPath)Set the stream packetizer for a given codec idvoidputVideoPacketizerItem(int codecId, String classPath)Set the video packetizer for a given codec idvoidredirectSession(String redirectSessionURL)voidredirectSession(String redirectSessionURL, int redirectSessionCode)voidrejectSession()Reject this sessionvoidremoveActionListener(IRTSPActionNotify actionListener)Remove action listenerRTPStreamremoveRTSPStream(String streamId)Remove RTP streamvoidsetAnnounce(boolean isAnnounce)Set ANNOUNCE command been called on this sessionvoidsetAppInstance(IApplicationInstance appInstance)Set application instancevoidsetAuthenticatePlayHandler(IAuthenticateRTSP authenticatePlayHandler)Set the authentication play handlervoidsetAuthenticatePublishHandler(IAuthenticateRTSP authenticatePublishHandler)Set the RTP authentication handlervoidsetCheckIpAddresses(boolean checkIpAddresses)Set whether the ip address on incoming RTP/RTCP messages should be checked against the initial source ip address received on the port, or for RTSP sessions, the source ip address retrieved diring the RTSP negotiation.voidsetConnected(boolean isConnected)Set session is connectedvoidsetCookieStr(String cookieStr)Set cooking stringvoidsetDebugRTCPMessages(boolean debugRTCPMessages)Set debugging RTCP messages being sent for the RTP sessionvoidsetDebugRTSPSession(boolean debugRTSPSession)Set debugging RTSP sessionvoidsetDescribe(boolean isDescribe)Set DESCRIBE command been called on this sessionvoidsetEncryptionProvider(IRTPEncryptionProvider encryptionProvider)voidsetIdleFrequency(int idleFrequency)Set idle frequency (milliseconds)voidsetIdleHandler(com.wowza.wms.rtp.model.RTPIdleHandler idleHandler)Set idle handlervoidsetIOPerformanceCounter(IOPerformanceCounter ioPerformanceCounter)Set IO performance countervoidsetIoSession(org.apache.mina.common.support.BaseIoSession ioSession)voidsetIp(String ip)Set remote IP addressvoidsetLastAuthenticateMethod(int lastAuthenticateMethod)Set last method receivedvoidsetLoggedConnect(boolean loggedConnect)Set connect loggedvoidsetMulticastInterfaceAddress(String multicastInterfaceAddress)voidsetQueryStr(String queryStr)Set query stringvoidsetRedirectSession(boolean redirectSession)voidsetRedirectSessionCode(int redirectSessionCode)voidsetRedirectSessionMessage(String redirectSessionMessage)voidsetRedirectSessionURL(String redirectSessionURL)voidsetReferrer(String referrer)Set referrervoidsetRTSPPlayRangeStart(double rtspPlayRangeStart)Set play start range, Internal use.voidsetRTSPPlayRangeStop(double rtspPlayRangeStop)Set play stop range, Internal use.voidsetRTSPTunnelingSessionId(String rtspTunnelingSessionId)Set the RTSP/RTP tunneling session idvoidsetServerIp(String serverIp)Set the server IP addressvoidsetServerPort(int serverPort)Set server portvoidsetSessionId(String sessionId)Set session idvoidsetSessionValid(boolean isSessionValid)Set session validvoidsetShutdownClient(boolean shutdownClient)Set RTP session shutdownvoidsetUri(String uri)Set URIvoidsetUserAgent(String userAgent)Set user agentvoidsetVHost(IVHost vhost)Set vhostvoidsetWebRTCSession(com.wowza.wms.webrtc.model.WebRTCSession webRTCSession)voidshutdown()shutdown RTP session, Internal use.voidshutdown(com.wowza.wms.rtp.model.RTPRequestStatus status)shutdown RTP session, Internal use.voidtouch()Touch the stream so it doesn't timeoutvoidupdateLoggingValues()Update logging values, Internal use.
 
- 
- 
- 
Field Detail- 
AUTHMETHOD_UNKNOWNpublic static final int AUTHMETHOD_UNKNOWN - See Also:
- Constant Field Values
 
 - 
AUTHMETHOD_PLAYpublic static final int AUTHMETHOD_PLAY - See Also:
- Constant Field Values
 
 - 
AUTHMETHOD_PUBLISHpublic static final int AUTHMETHOD_PUBLISH - See Also:
- Constant Field Values
 
 - 
sessionIdprotected String sessionId 
 - 
rtspTunnelingSessionIdprotected String rtspTunnelingSessionId 
 - 
streamsprotected java.util.Map<String,RTPStream> streams 
 - 
streamsOrderprotected java.util.List<RTPStream> streamsOrder 
 - 
vhostprotected IVHost vhost 
 - 
userAgentprotected String userAgent 
 - 
cookieStrprotected String cookieStr 
 - 
ipprotected String ip 
 - 
isSessionValidprotected boolean isSessionValid 
 - 
authenticatePlayHandlerprotected IAuthenticateRTSP authenticatePlayHandler 
 - 
authenticatePublishHandlerprotected IAuthenticateRTSP authenticatePublishHandler 
 - 
lastAuthenticateMethodprotected int lastAuthenticateMethod 
 - 
appInstanceprotected IApplicationInstance appInstance 
 - 
appInstanceShutdownprotected IApplicationInstance appInstanceShutdown 
 - 
loggedConnectprotected boolean loggedConnect 
 - 
propertiesprotected WMSProperties properties 
 - 
isDescribeprotected boolean isDescribe 
 - 
isAnnounceprotected boolean isAnnounce 
 - 
rtpWriteListenerprotected com.wowza.wms.rtp.model.RTPWriteListener rtpWriteListener 
 - 
timeCreatedprotected long timeCreated 
 - 
ioPerformanceCounterprotected IOPerformanceCounter ioPerformanceCounter 
 - 
totalIOPerformanceLastprotected IOPerformanceCounter totalIOPerformanceLast 
 - 
totalIOPerformance2Lastprotected IOPerformanceCounter totalIOPerformance2Last 
 - 
connectionHolderprotected com.wowza.wms.client.ConnectionHolder connectionHolder 
 - 
isConnectedprotected boolean isConnected 
 - 
idleHandlerprotected com.wowza.wms.rtp.model.RTPIdleHandler idleHandler 
 - 
serverIpprotected String serverIp 
 - 
serverPortprotected int serverPort 
 - 
uriprotected String uri 
 - 
referrerprotected String referrer 
 - 
queryStrprotected String queryStr 
 - 
actionListenersprotected java.util.List<IRTSPActionNotify> actionListeners 
 - 
elapsedTimeprotected ElapsedTimer elapsedTime 
 - 
idleFrequencyprotected int idleFrequency 
 - 
debugRTSPSessionprotected boolean debugRTSPSession 
 - 
rtspPlayRangeStartprotected double rtspPlayRangeStart 
 - 
rtspPlayRangeStopprotected double rtspPlayRangeStop 
 - 
shutdownClientprotected boolean shutdownClient 
 - 
audioPacketizersprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> audioPacketizers 
 - 
videoPacketizersprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> videoPacketizers 
 - 
streamPacketizersprotected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> streamPacketizers 
 - 
redirectSessionprotected boolean redirectSession 
 - 
redirectSessionCodeprotected int redirectSessionCode 
 - 
redirectSessionMessageprotected String redirectSessionMessage 
 - 
redirectSessionURLprotected String redirectSessionURL 
 - 
lockprotected Object lock 
 - 
ioSessionprotected org.apache.mina.common.support.BaseIoSession ioSession 
 - 
encryptionProviderprotected IRTPEncryptionProvider encryptionProvider 
 - 
activeprotected boolean active 
 - 
webRTCSessionprotected com.wowza.wms.webrtc.model.WebRTCSession webRTCSession 
 - 
multicastInterfaceAddressprotected String multicastInterfaceAddress 
 - 
checkIpAddressesprotected boolean checkIpAddresses 
 
- 
 - 
Method Detail- 
acceptSessionpublic void acceptSession() Accept this session
 - 
rejectSessionpublic void rejectSession() Reject this session
 - 
getSessionIdpublic String getSessionId() Get session id- Returns:
- session id
 
 - 
setSessionIdpublic void setSessionId(String sessionId) Set session id- Parameters:
- sessionId- session id
 
 - 
addRTSPStreampublic void addRTSPStream(RTPStream stream) Add RTP stream- Parameters:
- stream- RTP stream
 
 - 
removeRTSPStreampublic RTPStream removeRTSPStream(String streamId) Remove RTP stream- Parameters:
- streamId- stream id
- Returns:
- RTP stream
 
 - 
getRTSPStreampublic RTPStream getRTSPStream(String streamId) Get RTP Stream- Parameters:
- streamId- stream id
- Returns:
- RTP Stream
 
 - 
getRTSPStreampublic RTPStream getRTSPStream() Get the default RTP Stream (all RTP sessions have a single RTP Stream)- Returns:
- RTP stream
 
 - 
getVHostpublic IVHost getVHost() Get vhost- Returns:
- vhost
 
 - 
setVHostpublic void setVHost(IVHost vhost) Set vhost- Parameters:
- vhost- vhost
 
 - 
getUserAgentpublic String getUserAgent() Get user agent- Returns:
- user agent
 
 - 
setUserAgentpublic void setUserAgent(String userAgent) Set user agent- Parameters:
- userAgent- user agent
 
 - 
touchpublic void touch() Touch the stream so it doesn't timeout
 - 
shutdownpublic void shutdown() shutdown RTP session, Internal use.
 - 
shutdownpublic void shutdown(com.wowza.wms.rtp.model.RTPRequestStatus status) shutdown RTP session, Internal use.- Parameters:
- status-
 
 - 
allPortsConnectedpublic boolean allPortsConnected() 
 - 
isSessionValidpublic boolean isSessionValid() Is this session valid- Returns:
- true if valid
 
 - 
setSessionValidpublic void setSessionValid(boolean isSessionValid) Set session valid- Parameters:
- isSessionValid- true if valid
 
 - 
getAuthenticatePublishHandlerpublic IAuthenticateRTSP getAuthenticatePublishHandler() Get the RTP authentication handler- Returns:
- RTP authentication handler
 
 - 
setAuthenticatePublishHandlerpublic void setAuthenticatePublishHandler(IAuthenticateRTSP authenticatePublishHandler) Set the RTP authentication handler- Parameters:
- authenticatePublishHandler- RTP authentication handler
 
 - 
getAuthenticatePlayHandlerpublic IAuthenticateRTSP getAuthenticatePlayHandler() Get the authentication play handler- Returns:
- authentication play handler
 
 - 
setAuthenticatePlayHandlerpublic void setAuthenticatePlayHandler(IAuthenticateRTSP authenticatePlayHandler) Set the authentication play handler- Parameters:
- authenticatePlayHandler- authentication play handler
 
 - 
getLastAuthenticateMethodpublic int getLastAuthenticateMethod() Get the last method received- Returns:
- last method received
 
 - 
setLastAuthenticateMethodpublic void setLastAuthenticateMethod(int lastAuthenticateMethod) Set last method received- Parameters:
- lastAuthenticateMethod- last method received
 
 - 
getAppInstancepublic IApplicationInstance getAppInstance() Get application instance- Returns:
- application instance
 
 - 
setAppInstancepublic void setAppInstance(IApplicationInstance appInstance) Set application instance- Parameters:
- appInstance- application instance
 
 - 
isLoggedConnectpublic boolean isLoggedConnect() Is connect logged- Returns:
- true if logged
 
 - 
setLoggedConnectpublic void setLoggedConnect(boolean loggedConnect) Set connect logged- Parameters:
- loggedConnect- true if logged
 
 - 
getIppublic String getIp() Get remote IP address- Returns:
- remote IP address
 
 - 
setIppublic void setIp(String ip) Set remote IP address- Parameters:
- ip- remote IP address
 
 - 
getPropertiespublic WMSProperties getProperties() Get properties- Returns:
- properties
 
 - 
isDescribepublic boolean isDescribe() Has DESCRIBE command been called on this session- Returns:
- true if called
 
 - 
setDescribepublic void setDescribe(boolean isDescribe) Set DESCRIBE command been called on this session- Parameters:
- isDescribe- true if called
 
 - 
isAnnouncepublic boolean isAnnounce() Has ANNOUNCE command been called on this session- Returns:
- true if called
 
 - 
setAnnouncepublic void setAnnounce(boolean isAnnounce) Set ANNOUNCE command been called on this session- Parameters:
- isAnnounce- true if called
 
 - 
isAnnounceOrDescribepublic boolean isAnnounceOrDescribe() Has announce or described been called- Returns:
- true if either called
 
 - 
getRTPWriteListenerpublic com.wowza.wms.rtp.model.RTPWriteListener getRTPWriteListener() Get the RTP write listener for this session- Returns:
- RTP write listener
 
 - 
addIOPerformancepublic void addIOPerformance(IOPerformanceCounter totalIOPerformanceResult) Internal use- Parameters:
- totalIOPerformanceResult- IO performance counter
 
 - 
addIOPerformance2public void addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult) Internal use- Parameters:
- totalIOPerformanceResult- IO performance counter
 
 - 
getConnectionHolderpublic com.wowza.wms.client.ConnectionHolder getConnectionHolder() Get connection holder, Internal use.- Returns:
- connection holder
 
 - 
isConnectedpublic boolean isConnected() Is session connection- Returns:
- true if connected
 
 - 
setConnectedpublic void setConnected(boolean isConnected) Set session is connected- Parameters:
- isConnected- true if connected
 
 - 
getIdleHandlerpublic com.wowza.wms.rtp.model.RTPIdleHandler getIdleHandler() Get idle handler- Returns:
- idle handler
 
 - 
setIdleHandlerpublic void setIdleHandler(com.wowza.wms.rtp.model.RTPIdleHandler idleHandler) Set idle handler- Parameters:
- idleHandler- idle handler
 
 - 
getServerIppublic String getServerIp() Get the server IP address- Returns:
- IP address
 
 - 
setServerIppublic void setServerIp(String serverIp) Set the server IP address- Parameters:
- serverIp- IP address
 
 - 
getServerPortpublic int getServerPort() Get server port- Returns:
- server port
 
 - 
setServerPortpublic void setServerPort(int serverPort) Set server port- Parameters:
- serverPort- server port
 
 - 
getUripublic String getUri() Get URI- Returns:
- URI
 
 - 
setUripublic void setUri(String uri) Set URI- Parameters:
- uri- URI
 
 - 
getReferrerpublic String getReferrer() Get referrer- Returns:
- referrer
 
 - 
setReferrerpublic void setReferrer(String referrer) Set referrer- Parameters:
- referrer- referrer
 
 - 
getQueryStrpublic String getQueryStr() Get query string- Returns:
- query string
 
 - 
setQueryStrpublic void setQueryStr(String queryStr) Set query string- Parameters:
- queryStr- query string
 
 - 
updateLoggingValuespublic void updateLoggingValues() Update logging values, Internal use.
 - 
clearLoggingValuespublic void clearLoggingValues() Clear logging values, Internal use.
 - 
addActionListenerpublic void addActionListener(IRTSPActionNotify actionListener) Add action listener- Parameters:
- actionListener- action listener
 
 - 
removeActionListenerpublic void removeActionListener(IRTSPActionNotify actionListener) Remove action listener- Parameters:
- actionListener- action listener
 
 - 
onDescribepublic void onDescribe(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on DESCRIBE command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onAnnouncepublic void onAnnounce(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on ANNOUNCE command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onGetParameterpublic void onGetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on GET_PARAMETER command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onSetParameterpublic void onSetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on SET_PARAMETER command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onOptionspublic void onOptions(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on OPTIONS command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onPausepublic void onPause(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on PAUSE command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onPlaypublic void onPlay(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on PLAY command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onRecordpublic void onRecord(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on RECORD command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onRedirectpublic void onRedirect(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on REDIRECT command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onSetuppublic void onSetup(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on SETUP command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
onTeardownpublic void onTeardown(com.wowza.wms.rtsp.RTSPRequestMessage req, com.wowza.wms.rtsp.RTSPResponseMessages resp)Invoked on TEARDOWN command- Parameters:
- req- RTP request
- resp- RTP response
 
 - 
getIdleFrequencypublic int getIdleFrequency() Get idle frequency (milliseconds)- Returns:
- idle frequency (milliseconds)
 
 - 
setIdleFrequencypublic void setIdleFrequency(int idleFrequency) Set idle frequency (milliseconds)- Parameters:
- idleFrequency- idle frequency (milliseconds)
 
 - 
isDebugRTSPSessionpublic boolean isDebugRTSPSession() True if debugging RTSP session- Returns:
- true if debugging RTSP session
 
 - 
setDebugRTSPSessionpublic void setDebugRTSPSession(boolean debugRTSPSession) Set debugging RTSP session- Parameters:
- debugRTSPSession- true if debugging RTSP session
 
 - 
debugRTCPMessagespublic boolean debugRTCPMessages() True if debugging RTCP messages being sent for the RTP session- Returns:
- true if debugging RTCP messages being sent for the RTP session
 
 - 
setDebugRTCPMessagespublic void setDebugRTCPMessages(boolean debugRTCPMessages) Set debugging RTCP messages being sent for the RTP session- Parameters:
- debugRTCPMessages- RTCP messages being sent for the RTP session
 
 - 
getRTSPTunnelingSessionIdpublic String getRTSPTunnelingSessionId() Get the RTSP/RTP tunneling session id- Returns:
- RTSP/RTP tunneling session id
 
 - 
setRTSPTunnelingSessionIdpublic void setRTSPTunnelingSessionId(String rtspTunnelingSessionId) Set the RTSP/RTP tunneling session id- Parameters:
- rtspTunnelingSessionId- RTSP/RTP tunneling session id
 
 - 
getRTSPPlayRangeStartpublic double getRTSPPlayRangeStart() Get play start range, Internal use.- Returns:
- start range
 
 - 
setRTSPPlayRangeStartpublic void setRTSPPlayRangeStart(double rtspPlayRangeStart) Set play start range, Internal use.- Parameters:
- rtspPlayRangeStart- start range
 
 - 
getRTSPPlayRangeStoppublic double getRTSPPlayRangeStop() Get play stop range, Internal use.- Returns:
- stop range
 
 - 
setRTSPPlayRangeStoppublic void setRTSPPlayRangeStop(double rtspPlayRangeStop) Set play stop range, Internal use.- Parameters:
- rtspPlayRangeStop- stop range
 
 - 
getCookieStrpublic String getCookieStr() Get cookie string- Returns:
- cookie string
 
 - 
setCookieStrpublic void setCookieStr(String cookieStr) Set cooking string- Parameters:
- cookieStr- cooking string
 
 - 
getIOPerformanceCounterpublic IOPerformanceCounter getIOPerformanceCounter() Get IO performance counter- Returns:
- IO performance counter
 
 - 
setIOPerformanceCounterpublic void setIOPerformanceCounter(IOPerformanceCounter ioPerformanceCounter) Set IO performance counter- Parameters:
- ioPerformanceCounter- IO performance counter
 
 - 
isShutdownClientpublic boolean isShutdownClient() Is RTP session shutdown- Returns:
- true if shutdown
 
 - 
setShutdownClientpublic void setShutdownClient(boolean shutdownClient) Set RTP session shutdown- Parameters:
- shutdownClient- true if shutdown
 
 - 
getAudioPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getAudioPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId) Get audio packetizer for a given codec id.- Parameters:
- rtpContext- RTP context
- appInstance- application instance
- codecId- codec id
- Returns:
- packetizer info
 
 - 
getVideoPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getVideoPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId) Get video packetizer for a given codec id.- Parameters:
- rtpContext- RTP context
- appInstance- application instance
- codecId- codec id
- Returns:
- packetizer info
 
 - 
getStreamPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getStreamPacketizerItem(RTPContext rtpContext, IApplicationInstance appInstance, int codecId) Get stream packetizer for a given codec id.- Parameters:
- rtpContext- RTP context
- appInstance- application instance
- codecId- codec id
- Returns:
- packetizer info
 
 - 
putAudioPacketizerItempublic void putAudioPacketizerItem(int codecId, String classPath)Set the audio packetizer for a given codec id- Parameters:
- codecId- codec id
- classPath- class path
 
 - 
putVideoPacketizerItempublic void putVideoPacketizerItem(int codecId, String classPath)Set the video packetizer for a given codec id- Parameters:
- codecId- codec id
- classPath- class path
 
 - 
putStreamPacketizerItempublic void putStreamPacketizerItem(int codecId, String classPath)Set the stream packetizer for a given codec id- Parameters:
- codecId- codec id
- classPath- class path
 
 - 
getElapsedTimepublic ElapsedTimer getElapsedTime() Get the elapsed timer for this RTP session- Returns:
- elapsed timer
 
 - 
getTimeRunningpublic String getTimeRunning() Get the time running for this RTP session- Returns:
- time running as a string
 
 - 
getTimeRunningSecondspublic double getTimeRunningSeconds() Get the number of second this RTP session has been running- Returns:
- number of second this RTP session has been running
 
 - 
isRedirectSessionpublic boolean isRedirectSession() 
 - 
setRedirectSessionpublic void setRedirectSession(boolean redirectSession) 
 - 
getRedirectSessionCodepublic int getRedirectSessionCode() 
 - 
setRedirectSessionCodepublic void setRedirectSessionCode(int redirectSessionCode) 
 - 
getRedirectSessionURLpublic String getRedirectSessionURL() 
 - 
setRedirectSessionURLpublic void setRedirectSessionURL(String redirectSessionURL) 
 - 
redirectSessionpublic void redirectSession(String redirectSessionURL) 
 - 
redirectSessionpublic void redirectSession(String redirectSessionURL, int redirectSessionCode)
 - 
getRedirectSessionMessagepublic String getRedirectSessionMessage() 
 - 
setRedirectSessionMessagepublic void setRedirectSessionMessage(String redirectSessionMessage) 
 - 
getIoSessionpublic org.apache.mina.common.support.BaseIoSession getIoSession() 
 - 
setIoSessionpublic void setIoSession(org.apache.mina.common.support.BaseIoSession ioSession) 
 - 
doIdlepublic void doIdle() 
 - 
getEncryptionProviderpublic IRTPEncryptionProvider getEncryptionProvider() 
 - 
setEncryptionProviderpublic void setEncryptionProvider(IRTPEncryptionProvider encryptionProvider) 
 - 
isActivepublic boolean isActive() 
 - 
getWebRTCSessionpublic com.wowza.wms.webrtc.model.WebRTCSession getWebRTCSession() 
 - 
setWebRTCSessionpublic void setWebRTCSession(com.wowza.wms.webrtc.model.WebRTCSession webRTCSession) 
 - 
isWebRTCpublic boolean isWebRTC() 
 - 
getMulticastInterfaceAddresspublic String getMulticastInterfaceAddress() 
 - 
setMulticastInterfaceAddresspublic void setMulticastInterfaceAddress(String multicastInterfaceAddress) 
 - 
isCheckIpAddressespublic boolean isCheckIpAddresses() - Returns:
- the checkIpAddresses
 
 - 
setCheckIpAddressespublic void setCheckIpAddresses(boolean checkIpAddresses) Set whether the ip address on incoming RTP/RTCP messages should be checked against the initial source ip address received on the port, or for RTSP sessions, the source ip address retrieved diring the RTSP negotiation. Default false.- Parameters:
- checkIpAddresses- the checkIpAddresses to set
 
 
- 
 
-