Class MultiMediaManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.media.JingleMediaManager
-
- org.jivesoftware.smackx.jingleold.mediaimpl.multi.MultiMediaManager
-
public class MultiMediaManager extends JingleMediaManager
Implements a MultiMediaManager using other JingleMediaManager implementations. It supports every Codec that JingleMediaManagers added has.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description MultiMediaManager(JingleTransportManager transportManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMediaManager(JingleMediaManager manager)
JingleMediaSession
createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new JingleMediaSession.java.lang.String
getName()
java.util.List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.PayloadType
getPreferredPayloadType()
Returns the Preferred PayloadType of the Media Manager.void
removeMediaManager(JingleMediaManager manager)
void
setPreferredPayloadType(PayloadType preferredPayloadType)
-
Methods inherited from class org.jivesoftware.smackx.jingleold.media.JingleMediaManager
getTransportManager
-
-
-
-
Field Detail
-
MEDIA_NAME
public static final java.lang.String MEDIA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiMediaManager
public MultiMediaManager(JingleTransportManager transportManager)
-
-
Method Detail
-
addMediaManager
public void addMediaManager(JingleMediaManager manager)
-
removeMediaManager
public void removeMediaManager(JingleMediaManager manager)
-
getPayloads
public java.util.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
-
setPreferredPayloadType
public void setPreferredPayloadType(PayloadType preferredPayloadType)
-
getName
public java.lang.String getName()
- Overrides:
getName
in classJingleMediaManager
-
-