public class ScreenShareSession extends JingleMediaSession
| Constructor and Description |
|---|
ScreenShareSession(PayloadType payloadType,
TransportCandidate remote,
TransportCandidate local,
java.lang.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 |
setTransmit(boolean active)
Set transmit activity.
|
void |
setTrasmit(boolean active)
Deprecated.
use
setTransmit(boolean) instead. |
void |
startReceive()
For NAT Reasons this method does nothing.
|
void |
startTransmit()
Starts transmission and for NAT Traversal reasons start receiving also.
|
void |
startTrasmit()
Deprecated.
use
startTransmit() instead. |
void |
stopReceive()
For NAT Reasons this method does nothing.
|
void |
stopTransmit()
Stops transmission and for NAT Traversal reasons stop receiving also.
|
void |
stopTrasmit()
Deprecated.
use
stopTransmit() instead. |
addMediaReceivedListener, getJingleSession, getLocal, getMediaLocator, getPayloadType, getRemote, mediaReceived, removeAllMediaReceivedListener, removeMediaReceivedListener, setMediaLocatorpublic ScreenShareSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, java.lang.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@Deprecated public void startTrasmit()
startTransmit() instead.public void startTransmit()
startTransmit in class JingleMediaSession@Deprecated public void setTrasmit(boolean active)
setTransmit(boolean) instead.active - active statepublic void setTransmit(boolean active)
setTransmit in class JingleMediaSessionactive - active statepublic void startReceive()
startReceive in class JingleMediaSession@Deprecated public void stopTrasmit()
stopTransmit() instead.public void stopTransmit()
stopTransmit in class JingleMediaSessionpublic void stopReceive()
stopReceive in class JingleMediaSessionprotected int getFreePort()
public void setEncoder(ImageEncoder encoder)
public void setDecoder(ImageDecoder decoder)