Package com.wowza.wms.rtp.model
Class RTPSessions
Object
com.wowza.wms.rtp.model.RTPSessions
RTPSessions: collection of RTP sessions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSession(RTPSession session) Add RTP sessionvoidaddSessionListener(IRTPSessionNotify listener) Add a RTP session listenerGet next RTP session id for new sessiongetSession(String sessionId) Get RTP session by session idGet list of current RTP session idsgetVHost()Get vhostvoidnotifySessionCreate(IApplicationInstance appInstance, RTPSession rtpSession) Notify session createvoidnotifySessionCreate(RTPSession rtpSession) Notify session createvoidnotifySessionDestroy(IApplicationInstance appInstance, RTPSession rtpSession) Notify session destroyvoidnotifySessionDestroy(RTPSession rtpSession) Notify session destroyvoidreleaseSessionId(String sessionIdStr) Release an RTP session idremoveSession(RTPSession session) Remove RTP session by objectremoveSession(String sessionId) Remove RTP session by session idvoidremoveSessionListener(IRTPSessionNotify listener) Remove an RTP session listener
-
Constructor Details
-
RTPSessions
Constructor- Parameters:
vhost- vhost
-
-
Method Details
-
getNextSessionId
Get next RTP session id for new session- Returns:
- RTP session id
-
getSessionIds
Get list of current RTP session ids- Returns:
- list of current RTP session ids
-
releaseSessionId
Release an RTP session id- Parameters:
sessionIdStr- RTP session id
-
getSession
Get RTP session by session id- Parameters:
sessionId- session id- Returns:
- RTP session
-
removeSession
Remove RTP session by session id- Parameters:
sessionId- session id- Returns:
- RTP session if removed
-
removeSession
Remove RTP session by object- Parameters:
session- RTP session- Returns:
- RTP session if removed
-
addSession
Add RTP session- Parameters:
session- RTP session- Returns:
- RTP session added
-
getVHost
Get vhost- Returns:
- vhost
-
addSessionListener
Add a RTP session listener- Parameters:
listener- RTP session listener
-
removeSessionListener
Remove an RTP session listener- Parameters:
listener- RTP session listener
-
notifySessionCreate
Notify session create- Parameters:
appInstance- application instancertpSession- RTP session
-
notifySessionDestroy
Notify session destroy- Parameters:
appInstance- application instancertpSession- RTP session
-
notifySessionCreate
Notify session create- Parameters:
rtpSession- RTP session
-
notifySessionDestroy
Notify session destroy- Parameters:
rtpSession- RTP session
-