|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.wms.rtp.model.RTPSession
public class RTPSession
RTPSession: RTP session
| Field Summary | |
|---|---|
protected java.util.List<IRTSPActionNotify> |
actionListeners
|
protected IApplicationInstance |
appInstance
|
protected IApplicationInstance |
appInstanceShutdown
|
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> |
audioPacketizers
|
protected IAuthenticateRTSP |
authenticatePlayHandler
|
protected IAuthenticateRTSP |
authenticatePublishHandler
|
static int |
AUTHMETHOD_PLAY
|
static int |
AUTHMETHOD_PUBLISH
|
static int |
AUTHMETHOD_UNKNOWN
|
protected com.wowza.wms.client.ConnectionHolder |
connectionHolder
|
protected String |
cookieStr
|
protected boolean |
debugRTSPSession
|
protected ElapsedTimer |
elapsedTime
|
protected int |
idleFrequency
|
protected com.wowza.wms.rtp.model.RTPIdleHandler |
idleHandler
|
protected IOPerformanceCounter |
ioPerformanceCounter
|
protected String |
ip
|
protected boolean |
isAnnounce
|
protected boolean |
isConnected
|
protected boolean |
isDescribe
|
protected boolean |
isSessionValid
|
protected int |
lastAuthenticateMethod
|
protected boolean |
loggedConnect
|
protected WMSProperties |
properties
|
protected String |
queryStr
|
protected String |
referrer
|
protected com.wowza.wms.rtp.model.RTPWriteListener |
rtpWriteListener
|
protected double |
rtspPlayRangeStart
|
protected double |
rtspPlayRangeStop
|
protected String |
rtspTunnelingSessionId
|
protected String |
serverIp
|
protected int |
serverPort
|
protected String |
sessionId
|
protected boolean |
shutdownClient
|
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> |
streamPacketizers
|
protected java.util.Map<String,RTPStream> |
streams
|
protected java.util.List<RTPStream> |
streamsOrder
|
protected long |
timeCreated
|
protected IOPerformanceCounter |
totalIOPerformance2Last
|
protected IOPerformanceCounter |
totalIOPerformanceLast
|
protected String |
uri
|
protected String |
userAgent
|
protected IVHost |
vhost
|
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> |
videoPacketizers
|
| Constructor Summary | |
|---|---|
RTPSession(String sessionId)
Constructor |
|
| Method Summary | |
|---|---|
void |
acceptSession()
Accept this session |
void |
addActionListener(IRTSPActionNotify actionListener)
Add action listener |
void |
addIOPerformance(IOPerformanceCounter totalIOPerformanceResult)
Internal use |
void |
addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)
Internal use |
void |
addRTSPStream(RTPStream stream)
Add RTP stream |
void |
clearLoggingValues()
Clear logging values, Internal use. |
IApplicationInstance |
getAppInstance()
Get application instance |
com.wowza.wms.rtp.model.RTPPacketizerItem |
getAudioPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
Get audio packetizer for a given codec id. |
IAuthenticateRTSP |
getAuthenticatePlayHandler()
Get the authentication play handler |
IAuthenticateRTSP |
getAuthenticatePublishHandler()
Get the RTP authentication handler |
com.wowza.wms.client.ConnectionHolder |
getConnectionHolder()
Get connection holder, Internal use. |
String |
getCookieStr()
Get cookie string |
int |
getIdleFrequency()
Get idle frequency (milliseconds) |
com.wowza.wms.rtp.model.RTPIdleHandler |
getIdleHandler()
Get idle handler |
IOPerformanceCounter |
getIOPerformanceCounter()
Get IO performance counter |
String |
getIp()
Get remote IP address |
int |
getLastAuthenticateMethod()
Get the last method received |
WMSProperties |
getProperties()
Get properties |
String |
getQueryStr()
Get query string |
String |
getReferrer()
Get referrer |
com.wowza.wms.rtp.model.RTPWriteListener |
getRTPWriteListener()
Get the RTP write listener for this session |
double |
getRTSPPlayRangeStart()
Get play start range, Internal use. |
double |
getRTSPPlayRangeStop()
Get play stop range, Internal use. |
RTPStream |
getRTSPStream()
Get the default RTP Stream (all RTP sessions have a single RTP Stream) |
RTPStream |
getRTSPStream(String streamId)
Get RTP Stream |
String |
getRTSPTunnelingSessionId()
Get the RTSP/RTP tunneling session id |
String |
getServerIp()
Get the server IP address |
int |
getServerPort()
Get server port |
String |
getSessionId()
Get session id |
com.wowza.wms.rtp.model.RTPPacketizerItem |
getStreamPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
Get stream packetizer for a given codec id. |
String |
getUri()
Get URI |
String |
getUserAgent()
Get user agent |
IVHost |
getVHost()
Get vhost |
com.wowza.wms.rtp.model.RTPPacketizerItem |
getVideoPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
Get video packetizer for a given codec id. |
boolean |
isAnnounce()
Has ANNOUNCE command been called on this session |
boolean |
isAnnounceOrDescribe()
Has announce or described been called |
boolean |
isConnected()
Is session connection |
boolean |
isDebugRTSPSession()
True if debugging RTSP session |
boolean |
isDescribe()
Has DESCRIBE command been called on this session |
boolean |
isLoggedConnect()
Is connect logged |
boolean |
isSessionValid()
Is this session valid |
boolean |
isShutdownClient()
Is RTP session shutdown |
void |
onAnnounce(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on ANNOUNCE command |
void |
onDescribe(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on DESCRIBE command |
void |
onGetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on GET_PARAMETER command |
void |
onOptions(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on OPTIONS command |
void |
onPause(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on PAUSE command |
void |
onPlay(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on PLAY command |
void |
onRecord(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on RECORD command |
void |
onRedirect(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on REDIRECT command |
void |
onSetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on SET_PARAMETER command |
void |
onSetup(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on SETUP command |
void |
onTeardown(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
Invoked on TEARDOWN command |
void |
putAudioPacketizerItem(int codecId,
String classPath)
Set the audio packetizer for a given codec id |
void |
putStreamPacketizerItem(int codecId,
String classPath)
Set the stream packetizer for a given codec id |
void |
putVideoPacketizerItem(int codecId,
String classPath)
Set the video packetizer for a given codec id |
void |
rejectSession()
Reject this session |
void |
removeActionListener(IRTSPActionNotify actionListener)
Remove action listener |
RTPStream |
removeRTSPStream(String streamId)
Remove RTP stream |
void |
setAnnounce(boolean isAnnounce)
Set ANNOUNCE command been called on this session |
void |
setAppInstance(IApplicationInstance appInstance)
Set application instance |
void |
setAuthenticatePlayHandler(IAuthenticateRTSP authenticatePlayHandler)
Set the authentication play handler |
void |
setAuthenticatePublishHandler(IAuthenticateRTSP authenticatePublishHandler)
Set the RTP authentication handler |
void |
setConnected(boolean isConnected)
Set session is connected |
void |
setCookieStr(String cookieStr)
Set cooking string |
void |
setDebugRTSPSession(boolean debugRTSPSession)
Set debugging RTSP session |
void |
setDescribe(boolean isDescribe)
Set DESCRIBE command been called on this session |
void |
setIdleFrequency(int idleFrequency)
Set idle frequency (milliseconds) |
void |
setIdleHandler(com.wowza.wms.rtp.model.RTPIdleHandler idleHandler)
Set idle handler |
void |
setIOPerformanceCounter(IOPerformanceCounter ioPerformanceCounter)
Set IO performance counter |
void |
setIp(String ip)
Set remote IP address |
void |
setLastAuthenticateMethod(int lastAuthenticateMethod)
Set last method received |
void |
setLoggedConnect(boolean loggedConnect)
Set connect logged |
void |
setQueryStr(String queryStr)
Set query string |
void |
setReferrer(String referrer)
Set referrer |
void |
setRTSPPlayRangeStart(double rtspPlayRangeStart)
Set play start range, Internal use. |
void |
setRTSPPlayRangeStop(double rtspPlayRangeStop)
Set play stop range, Internal use. |
void |
setRTSPTunnelingSessionId(String rtspTunnelingSessionId)
Set the RTSP/RTP tunneling session id |
void |
setServerIp(String serverIp)
Set the server IP address |
void |
setServerPort(int serverPort)
Set server port |
void |
setSessionId(String sessionId)
Set session id |
void |
setSessionValid(boolean isSessionValid)
Set session valid |
void |
setShutdownClient(boolean shutdownClient)
Set RTP session shutdown |
void |
setUri(String uri)
Set URI |
void |
setUserAgent(String userAgent)
Set user agent |
void |
setVHost(IVHost vhost)
Set vhost |
void |
shutdown()
shutdown RTP session, Internal use. |
void |
shutdown(com.wowza.wms.rtp.model.RTPRequestStatus status)
shutdown RTP session, Internal use. |
void |
touch()
Touch the stream so it doesn't timeout |
void |
updateLoggingValues()
Update logging values, Internal use. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<IRTSPActionNotify> actionListeners
protected IApplicationInstance appInstance
protected IApplicationInstance appInstanceShutdown
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> audioPacketizers
protected IAuthenticateRTSP authenticatePlayHandler
protected IAuthenticateRTSP authenticatePublishHandler
public static final int AUTHMETHOD_PLAY
public static final int AUTHMETHOD_PUBLISH
public static final int AUTHMETHOD_UNKNOWN
protected com.wowza.wms.client.ConnectionHolder connectionHolder
protected String cookieStr
protected boolean debugRTSPSession
protected ElapsedTimer elapsedTime
protected int idleFrequency
protected com.wowza.wms.rtp.model.RTPIdleHandler idleHandler
protected IOPerformanceCounter ioPerformanceCounter
protected String ip
protected boolean isAnnounce
protected boolean isConnected
protected boolean isDescribe
protected boolean isSessionValid
protected int lastAuthenticateMethod
protected boolean loggedConnect
protected WMSProperties properties
protected String queryStr
protected String referrer
protected com.wowza.wms.rtp.model.RTPWriteListener rtpWriteListener
protected double rtspPlayRangeStart
protected double rtspPlayRangeStop
protected String rtspTunnelingSessionId
protected String serverIp
protected int serverPort
protected String sessionId
protected boolean shutdownClient
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> streamPacketizers
protected java.util.Map<String,RTPStream> streams
protected java.util.List<RTPStream> streamsOrder
protected long timeCreated
protected IOPerformanceCounter totalIOPerformance2Last
protected IOPerformanceCounter totalIOPerformanceLast
protected String uri
protected String userAgent
protected IVHost vhost
protected java.util.Map<Integer,com.wowza.wms.rtp.model.RTPPacketizerItem> videoPacketizers
| Constructor Detail |
|---|
public RTPSession(String sessionId)
sessionId - session id| Method Detail |
|---|
public void acceptSession()
public void addActionListener(IRTSPActionNotify actionListener)
actionListener - action listenerpublic void addIOPerformance(IOPerformanceCounter totalIOPerformanceResult)
totalIOPerformanceResult - IO performance counterpublic void addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)
totalIOPerformanceResult - IO performance counterpublic void addRTSPStream(RTPStream stream)
stream - RTP streampublic void clearLoggingValues()
public IApplicationInstance getAppInstance()
public com.wowza.wms.rtp.model.RTPPacketizerItem getAudioPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
rtpContext - RTP contextappInstance - application instancecodecId - codec id
public IAuthenticateRTSP getAuthenticatePlayHandler()
public IAuthenticateRTSP getAuthenticatePublishHandler()
public com.wowza.wms.client.ConnectionHolder getConnectionHolder()
public String getCookieStr()
public int getIdleFrequency()
public com.wowza.wms.rtp.model.RTPIdleHandler getIdleHandler()
public IOPerformanceCounter getIOPerformanceCounter()
public String getIp()
public int getLastAuthenticateMethod()
public WMSProperties getProperties()
public String getQueryStr()
public String getReferrer()
public com.wowza.wms.rtp.model.RTPWriteListener getRTPWriteListener()
public double getRTSPPlayRangeStart()
public double getRTSPPlayRangeStop()
public RTPStream getRTSPStream()
public RTPStream getRTSPStream(String streamId)
streamId - stream id
public String getRTSPTunnelingSessionId()
public String getServerIp()
public int getServerPort()
public String getSessionId()
public com.wowza.wms.rtp.model.RTPPacketizerItem getStreamPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
rtpContext - RTP contextappInstance - application instancecodecId - codec id
public String getUri()
public String getUserAgent()
public IVHost getVHost()
public com.wowza.wms.rtp.model.RTPPacketizerItem getVideoPacketizerItem(RTPContext rtpContext,
IApplicationInstance appInstance,
int codecId)
rtpContext - RTP contextappInstance - application instancecodecId - codec id
public boolean isAnnounce()
public boolean isAnnounceOrDescribe()
public boolean isConnected()
public boolean isDebugRTSPSession()
public boolean isDescribe()
public boolean isLoggedConnect()
public boolean isSessionValid()
public boolean isShutdownClient()
public void onAnnounce(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onDescribe(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onGetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onOptions(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onPause(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onPlay(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onRecord(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onRedirect(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onSetParameter(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onSetup(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void onTeardown(com.wowza.wms.rtsp.RTSPRequestMessage req,
com.wowza.wms.rtsp.RTSPResponseMessages resp)
req - RTP requestresp - RTP response
public void putAudioPacketizerItem(int codecId,
String classPath)
codecId - codec idclassPath - class path
public void putStreamPacketizerItem(int codecId,
String classPath)
codecId - codec idclassPath - class path
public void putVideoPacketizerItem(int codecId,
String classPath)
codecId - codec idclassPath - class pathpublic void rejectSession()
public void removeActionListener(IRTSPActionNotify actionListener)
actionListener - action listenerpublic RTPStream removeRTSPStream(String streamId)
streamId - stream id
public void setAnnounce(boolean isAnnounce)
isAnnounce - true if calledpublic void setAppInstance(IApplicationInstance appInstance)
appInstance - application instancepublic void setAuthenticatePlayHandler(IAuthenticateRTSP authenticatePlayHandler)
authenticatePlayHandler - authentication play handlerpublic void setAuthenticatePublishHandler(IAuthenticateRTSP authenticatePublishHandler)
authenticatePublishHandler - RTP authentication handlerpublic void setConnected(boolean isConnected)
isConnected - true if connectedpublic void setCookieStr(String cookieStr)
cookieStr - cooking stringpublic void setDebugRTSPSession(boolean debugRTSPSession)
debugRTSPSession - true if debugging RTSP sessionpublic void setDescribe(boolean isDescribe)
isDescribe - true if calledpublic void setIdleFrequency(int idleFrequency)
idleFrequency - idle frequency (milliseconds)public void setIdleHandler(com.wowza.wms.rtp.model.RTPIdleHandler idleHandler)
idleHandler - idle handlerpublic void setIOPerformanceCounter(IOPerformanceCounter ioPerformanceCounter)
ioPerformanceCounter - IO performance counterpublic void setIp(String ip)
ip - remote IP addresspublic void setLastAuthenticateMethod(int lastAuthenticateMethod)
lastAuthenticateMethod - last method receivedpublic void setLoggedConnect(boolean loggedConnect)
loggedConnect - true if loggedpublic void setQueryStr(String queryStr)
queryStr - query stringpublic void setReferrer(String referrer)
referrer - referrerpublic void setRTSPPlayRangeStart(double rtspPlayRangeStart)
rtspPlayRangeStart - start rangepublic void setRTSPPlayRangeStop(double rtspPlayRangeStop)
rtspPlayRangeStop - stop rangepublic void setRTSPTunnelingSessionId(String rtspTunnelingSessionId)
rtspTunnelingSessionId - RTSP/RTP tunneling session idpublic void setServerIp(String serverIp)
serverIp - IP addresspublic void setServerPort(int serverPort)
serverPort - server portpublic void setSessionId(String sessionId)
sessionId - session idpublic void setSessionValid(boolean isSessionValid)
isSessionValid - true if validpublic void setShutdownClient(boolean shutdownClient)
shutdownClient - true if shutdownpublic void setUri(String uri)
uri - URIpublic void setUserAgent(String userAgent)
userAgent - user agentpublic void setVHost(IVHost vhost)
vhost - vhostpublic void shutdown()
public void shutdown(com.wowza.wms.rtp.model.RTPRequestStatus status)
status - public void touch()
public void updateLoggingValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||