public class ScreenShareSession extends JingleMediaSession
Constructor and Description |
---|
ScreenShareSession(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 screen share channels.
|
void |
setDecoder(ImageDecoder decoder) |
void |
setEncoder(ImageEncoder encoder) |
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 ScreenShareSession(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()
public void setEncoder(ImageEncoder encoder)
public void setDecoder(ImageDecoder decoder)