|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.RtpFlowImpl
public class RtpFlowImpl
Implementation of a RtpFlow which is a bridge for data transmission between two end points. Data which transit on this flow are encoded with a specified format.
| Constructor Summary | |
|---|---|
RtpFlowImpl(MediaServiceImpl mediaServie,
String localIpAddress,
String remoteIpAddress,
int localPort,
int remotePort,
Hashtable<String,List<String>> mediaEncoding)
Creates an instance of RtpFlowImpl for media transmission. |
|
| Method Summary | |
|---|---|
void |
addMediaListener(MediaListener listener)
Add a listener to be informed of media events hapening on this flow. |
void |
controllerUpdate(javax.media.ControllerEvent ce)
Implements controllerUpdate from javax.media.rtp.ControllerListener |
String |
getLocalAddress()
Returns the local address used by this flow. |
int |
getLocalPort()
Returns the local port used by this flow. |
String |
getRemoteAddress()
Returns the remote address used by this flow. |
int |
getRemotePort()
Returns the remote port used by this flow. |
void |
pause()
Pause media transmission on this flow |
void |
resume()
Resume media transmission on this flow |
void |
start()
Implementation of start to send media data. |
void |
stop()
Stops the transmission if already started. |
void |
update(javax.media.rtp.event.ReceiveStreamEvent evt)
Implements update from javax.media.rtp.ReceiveStreamListener |
void |
update(javax.media.rtp.event.SessionEvent evt)
Implements update from javax.media.rtp.SessionListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtpFlowImpl(MediaServiceImpl mediaServie,
String localIpAddress,
String remoteIpAddress,
int localPort,
int remotePort,
Hashtable<String,List<String>> mediaEncoding)
throws MediaException
mediaServie - the media service which created uslocalIpAddress - local IP addresslocalPort - local port numberremoteIpAddress - remote IP addressremotePort - remote port numbermediaEncoding - media encoding used for data
MediaException - if initializing the flow fails.| Method Detail |
|---|
public int getLocalPort()
getLocalPort in interface RtpFlowpublic String getLocalAddress()
getLocalAddress in interface RtpFlowpublic int getRemotePort()
getRemotePort in interface RtpFlowpublic String getRemoteAddress()
getRemoteAddress in interface RtpFlowpublic void start()
start in interface RtpFlowpublic void stop()
stop in interface RtpFlowpublic void resume()
resume in interface RtpFlowpublic void pause()
pause in interface RtpFlowpublic void update(javax.media.rtp.event.SessionEvent evt)
update in interface javax.media.rtp.SessionListenerevt - received eventpublic void update(javax.media.rtp.event.ReceiveStreamEvent evt)
update in interface javax.media.rtp.ReceiveStreamListenerevt - received eventpublic void controllerUpdate(javax.media.ControllerEvent ce)
controllerUpdate in interface javax.media.ControllerListenerce - received eventpublic void addMediaListener(MediaListener listener)
addMediaListener in interface RtpFlow
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||