Class JmfMediaManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.media.JingleMediaManager
-
- org.jivesoftware.smackx.jingleold.mediaimpl.jmf.JmfMediaManager
-
public class JmfMediaManager extends JingleMediaManager
Implements a jingleMediaManager using JMF based API. It supports GSM and G723 codices. This API only currently works on windows and Mac.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description JmfMediaManager(java.lang.String mediaLocator, JingleTransportManager transportManager)
Creates a Media Manager instance.JmfMediaManager(JingleTransportManager transportManager)
Creates a Media Manager instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JingleMediaSession
createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new jingleMediaSession.java.lang.String
getMediaLocator()
Return the media locator or null if not defined.java.lang.String
getName()
java.util.List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.void
setMediaLocator(java.lang.String mediaLocator)
Set the media locator.static void
setupJMF()
Runs JMFInit the first time the application is started so that capture devices are properly detected and initialized by JMF.-
Methods inherited from class org.jivesoftware.smackx.jingleold.media.JingleMediaManager
getPreferredPayloadType, getTransportManager
-
-
-
-
Field Detail
-
MEDIA_NAME
public static final java.lang.String MEDIA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JmfMediaManager
public JmfMediaManager(JingleTransportManager transportManager)
Creates a Media Manager instance.- Parameters:
transportManager
- the transport manger.
-
JmfMediaManager
public JmfMediaManager(java.lang.String mediaLocator, JingleTransportManager transportManager)
Creates a Media Manager instance.- Parameters:
mediaLocator
- Media LocatortransportManager
- the transport manger.
-
-
Method Detail
-
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 TODO javadoc me please
-
getPayloads
public java.util.List<PayloadType> getPayloads()
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
getMediaLocator
public java.lang.String getMediaLocator()
Return the media locator or null if not defined.- Returns:
- media locator
-
setMediaLocator
public void setMediaLocator(java.lang.String mediaLocator)
Set the media locator.- Parameters:
mediaLocator
- media locator or null to use default
-
setupJMF
public static void setupJMF()
Runs JMFInit the first time the application is started so that capture devices are properly detected and initialized by JMF.
-
getName
public java.lang.String getName()
- Overrides:
getName
in classJingleMediaManager
-
-