|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.net.rtsp.RTSPSession
public class RTSPSession
RTSP is primarily a connection-less protocol, that means that RTSP request can be made over multiples TCP connections. To identify such a "session", a 64-bit identifier is used.
| Constructor Summary | |
|---|---|
protected |
RTSPSession(String sessionId)
|
| Method Summary | |
|---|---|
void |
addTrack(Track track)
Adds a new track to the session |
static void |
close(long id)
Close the session and removes it. |
static void |
close(String id)
Close a session and remove resources. |
static RTSPSession |
create()
|
static RTSPSession |
create(String sessionId)
Creates a new empty RTSPSession and stores it. |
static RTSPSession |
get(String id)
Access an opened session. |
String |
getId()
|
Track |
getTrack(String control)
|
int |
getTracksCount()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RTSPSession(String sessionId)
| Method Detail |
|---|
public static RTSPSession create(String sessionId)
sessionId - Session identifier
public static RTSPSession create()
public static RTSPSession get(String id)
id - Session identifier
public static void close(String id)
id - Session identifierpublic static void close(long id)
id - the session IDpublic String getId()
public Track getTrack(String control)
control - the key to access the track
public int getTracksCount()
public void addTrack(Track track)
track - a Track object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||