public class AudioMediaSession extends JingleMediaSession
Constructor and Description |
---|
AudioMediaSession(PayloadType payloadType,
TransportCandidate remote,
TransportCandidate local,
String locator,
JingleSession jingleSession)
Creates a org.jivesoftware.jingleaudio.jmf.AudioMediaSession with defined payload type, remote and local candidates
|
Modifier and Type | Method and Description |
---|---|
protected int |
getFreePort()
Obtain a free port we can use.
|
void |
initialize()
Initialize the Audio Channel to make it able to send and receive audio
|
void |
setTrasmit(boolean active)
Set transmit activity.
|
void |
startReceive()
For NAT Reasons this method does nothing.
|
void |
startTrasmit()
Starts transmission and for NAT Traversal reasons start receiving also.
|
void |
stopReceive()
For NAT Reasons this method does nothing.
|
void |
stopTrasmit()
Stops transmission and for NAT Traversal reasons stop receiving also.
|
addMediaReceivedListener, getJingleSession, getLocal, getMediaLocator, getPayloadType, getRemote, mediaReceived, removeAllMediaReceivedListener, removeMediaReceivedListener, setMediaLocator
public AudioMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, String locator, JingleSession jingleSession)
payloadType
- Payload of the jmfremote
- the remote information. The candidate that the jmf will be sent to.local
- the local information. The candidate that will receive the jmflocator
- media locatorpublic void initialize()
initialize
in class JingleMediaSession
public void startTrasmit()
startTrasmit
in class JingleMediaSession
public void setTrasmit(boolean active)
setTrasmit
in class JingleMediaSession
active
- active statepublic void startReceive()
startReceive
in class JingleMediaSession
public void stopTrasmit()
stopTrasmit
in class JingleMediaSession
public void stopReceive()
stopReceive
in class JingleMediaSession
protected int getFreePort()