|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MsConnection
Represents the actual RTP connection. MsConnection is created as shown below
MsSession msSession;
....
MsConnection msConnection = msSession.createNetworkConnection("media/trunk/Announcement/$")
At this stage MsConnection is in IDLE state and
CONNECTION_CREATED event is fired.
Through out the lifetime of MsConnection, it maintains the
reference to MsSession
| Method Summary | |
|---|---|
void |
addConnectionListener(MsConnectionListener listener)
Adds connection listener at MsConnection level. |
void |
addNotificationListener(MsNotificationListener listener)
Add the MsNotificationListener at MsConnection level. |
MsEndpoint |
getEndpoint()
Returns the concrete endpoint which executes this connection. |
java.lang.String |
getId()
Retrieves the MsConnection ID, basically a UUID |
java.lang.String |
getLocalDescriptor()
Gets the session descriptor of the local end. |
MsConnectionMode |
getMode()
Get the current mode of MsConnection |
java.lang.String |
getRemoteDescriptor()
Gets the session descriptor of the remote end. |
MsSession |
getSession()
Retrieves the MsSession that is associated with this
MsConnection. |
MsConnectionState |
getState()
Returns the state of MsConnection |
void |
modify(java.lang.String localDesc,
java.lang.String remoteDesc)
Creates or modify network connection on the media server side. |
void |
release()
Deletes related connection from media server. |
void |
removeConnectionListener(MsConnectionListener listener)
Removes connection listener. |
void |
removeNotificationListener(MsNotificationListener listener)
Remove the instance of MsNotificationListener to no longer receive the events for state change of MsConnection |
void |
setMode(MsConnectionMode mode)
By default the MsConnection starts in
MsConnectionMode.SEND_RECV mode. |
| Method Detail |
|---|
java.lang.String getId()
MsConnectionMsSession getSession()
MsSession that is associated with this
MsConnection. This MsSession reference
remains valid throughout the lifetime of the MsConnection
object despite the state of the MsConnection object. This
MsSession reference does not change once the
MsConnection object has been created.
MsConnectionState getState()
MsConnection
MsConnectionState representing the state of
MsConnectionjava.lang.String getLocalDescriptor()
java.lang.String getRemoteDescriptor()
MsEndpoint getEndpoint()
void addConnectionListener(MsConnectionListener listener)
MsConnectionListener registered at
MsProvider will be called before
MsConnectionListener at MsConnection level
listener - the listener object.void removeConnectionListener(MsConnectionListener listener)
listener - the listener object was added previously.void addNotificationListener(MsNotificationListener listener)
MsNotificationListener at MsConnection level. The
registered listener will be called for state change of this MsConnection
only. MsNotificationListener
registered at MsProvider will be called before
MsNotificationListener at MsConnection level
listener - Instance of MsNotificationListener to be registeredvoid removeNotificationListener(MsNotificationListener listener)
listener - Instance of MsNotificationListener to be de-registered
void modify(java.lang.String localDesc,
java.lang.String remoteDesc)
remoteDesc - the session desriptor of the remote party.void setMode(MsConnectionMode mode)
MsConnection starts in
MsConnectionMode.SEND_RECV mode.
SEND_ONLY or
RECV_ONLY by calling this method
mode - The mode to setMsConnectionMode getMode()
MsConnectionModevoid release()
MsSession becomes INVALID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||