Class TestMediaManager
java.lang.Object
org.jivesoftware.smackx.jingleold.media.JingleMediaManager
org.jivesoftware.smackx.jingleold.mediaimpl.test.TestMediaManager
Implements a MediaManager for test purposes.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMediaSession
(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession) Returns a new JingleMediaSession.getName()
Return all supported Payloads for this Manager.Returns the Preferred PayloadType of the Media Manager.void
setPayloads
(List<PayloadType> payloads) void
setPreferredPayloadType
(PayloadType preferredPayloadType) Methods inherited from class org.jivesoftware.smackx.jingleold.media.JingleMediaManager
getTransportManager
-
Field Details
-
MEDIA_NAME
- See Also:
-
-
Constructor Details
-
TestMediaManager
-
-
Method Details
-
getPayloads
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
setPayloads
-
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
Description copied from class:JingleMediaManager
Returns the Preferred PayloadType of the Media Manager.- Overrides:
getPreferredPayloadType
in classJingleMediaManager
- Returns:
- The PayloadType
-
setPreferredPayloadType
-
getName
- Overrides:
getName
in classJingleMediaManager
-