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 String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description JmfMediaManager(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.String
getMediaLocator()
Return the media locator or null if not defined.String
getName()
List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.void
setMediaLocator(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 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(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 List<PayloadType> getPayloads()
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
getMediaLocator
public String getMediaLocator()
Return the media locator or null if not defined.- Returns:
- media locator
-
setMediaLocator
public void setMediaLocator(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 String getName()
- Overrides:
getName
in classJingleMediaManager
-
-