Class ScreenShareMediaManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.media.JingleMediaManager
-
- org.jivesoftware.smackx.jingleold.mediaimpl.sshare.ScreenShareMediaManager
-
public class ScreenShareMediaManager extends JingleMediaManager
Implements a JingleMediaManager for ScreenSharing. It currently uses an Audio payload Type. Which needs to be fixed in the next version.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description ScreenShareMediaManager(JingleTransportManager transportManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JingleMediaSession
createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new JingleMediaSession.ImageDecoder
getDecoder()
ImageEncoder
getEncoder()
String
getName()
List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.PayloadType
getPreferredPayloadType()
Returns the Preferred PayloadType of the Media Manager.void
setDecoder(ImageDecoder decoder)
void
setEncoder(ImageEncoder encoder)
-
Methods inherited from class org.jivesoftware.smackx.jingleold.media.JingleMediaManager
getTransportManager
-
-
-
-
Field Detail
-
MEDIA_NAME
public static final String MEDIA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScreenShareMediaManager
public ScreenShareMediaManager(JingleTransportManager transportManager)
-
-
Method Detail
-
getPayloads
public List<PayloadType> getPayloads()
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
createMediaSession
public JingleMediaSession createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new JingleMediaSession.- Specified by:
createMediaSession
in classJingleMediaManager
- Parameters:
payloadType
- payloadTyperemote
- remote Candidatelocal
- local CandidatejingleSession
- the jingle session.- Returns:
- JingleMediaSession JingleMediaSession
-
getPreferredPayloadType
public PayloadType getPreferredPayloadType()
Description copied from class:JingleMediaManager
Returns the Preferred PayloadType of the Media Manager.- Overrides:
getPreferredPayloadType
in classJingleMediaManager
- Returns:
- The PayloadType
-
getDecoder
public ImageDecoder getDecoder()
-
setDecoder
public void setDecoder(ImageDecoder decoder)
-
getEncoder
public ImageEncoder getEncoder()
-
setEncoder
public void setEncoder(ImageEncoder encoder)
-
getName
public String getName()
- Overrides:
getName
in classJingleMediaManager
-
-