Class JingleMediaManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.media.JingleMediaManager
-
- Direct Known Subclasses:
JmfMediaManager
,MultiMediaManager
,ScreenShareMediaManager
,SpeexMediaManager
,TestMediaManager
public abstract class JingleMediaManager extends java.lang.Object
This class provides necessary Jingle Session jmf methods and behavior.The goal of this class is to provide a flexible way to make JingleManager control jmf streaming APIs without implement them. For instance you can implement a file transfer using java sockets or a VOIP Media Manager using JMF. You can implement many JingleMediaManager according to you necessity.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description JingleMediaManager(JingleTransportManager transportManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JingleMediaSession
createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Create a Media Session Implementation.java.lang.String
getName()
abstract java.util.List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.PayloadType
getPreferredPayloadType()
Returns the Preferred PayloadType of the Media Manager.JingleTransportManager
getTransportManager()
Returns the transport manager that goes with this media manager.
-
-
-
Field Detail
-
MEDIA_NAME
public static final java.lang.String MEDIA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JingleMediaManager
public JingleMediaManager(JingleTransportManager transportManager)
-
-
Method Detail
-
getTransportManager
public JingleTransportManager getTransportManager()
Returns the transport manager that goes with this media manager.- Returns:
- the transport manager.
-
getPayloads
public abstract java.util.List<PayloadType> getPayloads()
Return all supported Payloads for this Manager.- Returns:
- The Payload List
-
getPreferredPayloadType
public PayloadType getPreferredPayloadType()
Returns the Preferred PayloadType of the Media Manager.- Returns:
- The PayloadType
-
createMediaSession
public abstract JingleMediaSession createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Create a Media Session Implementation.- Parameters:
payloadType
- TODO javadoc me pleaseremote
- TODO javadoc me pleaselocal
- TODO javadoc me pleasejingleSession
- the jingle session.- Returns:
- the media session
-
getName
public java.lang.String getName()
-
-