public class RTPSessions
extends Object
RTPSessions: collection of RTP sessions
| Constructor | Description |
|---|---|
RTPSessions(IVHost vhost) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
RTPSession |
addSession(RTPSession session) |
Add RTP session
|
void |
addSessionListener(IRTPSessionNotify listener) |
Add a RTP session listener
|
String |
getNextSessionId() |
Get next RTP session id for new session
|
RTPSession |
getSession(String sessionId) |
Get RTP session by session id
|
java.util.List<String> |
getSessionIds() |
Get list of current RTP session ids
|
IVHost |
getVHost() |
Get vhost
|
void |
notifySessionCreate(IApplicationInstance appInstance,
RTPSession rtpSession) |
Notify session create
|
void |
notifySessionCreate(RTPSession rtpSession) |
Notify session create
|
void |
notifySessionDestroy(IApplicationInstance appInstance,
RTPSession rtpSession) |
Notify session destroy
|
void |
notifySessionDestroy(RTPSession rtpSession) |
Notify session destroy
|
void |
releaseSessionId(String sessionIdStr) |
Release an RTP session id
|
RTPSession |
removeSession(RTPSession session) |
Remove RTP session by object
|
RTPSession |
removeSession(String sessionId) |
Remove RTP session by session id
|
void |
removeSessionListener(IRTPSessionNotify listener) |
Remove an RTP session listener
|
public RTPSessions(IVHost vhost)
vhost - vhostpublic RTPSession addSession(RTPSession session)
session - RTP sessionpublic void addSessionListener(IRTPSessionNotify listener)
listener - RTP session listenerpublic String getNextSessionId()
public RTPSession getSession(String sessionId)
sessionId - session idpublic java.util.List<String> getSessionIds()
public IVHost getVHost()
public void notifySessionCreate(IApplicationInstance appInstance, RTPSession rtpSession)
appInstance - application instancertpSession - RTP sessionpublic void notifySessionCreate(RTPSession rtpSession)
rtpSession - RTP sessionpublic void notifySessionDestroy(IApplicationInstance appInstance, RTPSession rtpSession)
appInstance - application instancertpSession - RTP sessionpublic void notifySessionDestroy(RTPSession rtpSession)
rtpSession - RTP sessionpublic void releaseSessionId(String sessionIdStr)
sessionIdStr - RTP session idpublic RTPSession removeSession(RTPSession session)
session - RTP sessionpublic RTPSession removeSession(String sessionId)
sessionId - session idpublic void removeSessionListener(IRTPSessionNotify listener)
listener - RTP session listener