Class JmfMediaManager
java.lang.Object
org.jivesoftware.smackx.jingleold.media.JingleMediaManager
org.jivesoftware.smackx.jingleold.mediaimpl.jmf.JmfMediaManager
Implements a jingleMediaManager using JMF based API.
It supports GSM and G723 codices.
This API only currently works on windows and Mac.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJmfMediaManager
(String mediaLocator, JingleTransportManager transportManager) Creates a Media Manager instance.JmfMediaManager
(JingleTransportManager transportManager) Creates a Media Manager instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateMediaSession
(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession) Returns a new jingleMediaSession.Return the media locator or null if not defined.getName()
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 Details
-
MEDIA_NAME
- See Also:
-
-
Constructor Details
-
JmfMediaManager
Creates a Media Manager instance.- Parameters:
transportManager
- the transport manger.
-
JmfMediaManager
Creates a Media Manager instance.- Parameters:
mediaLocator
- Media LocatortransportManager
- the transport manger.
-
-
Method Details
-
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
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
getMediaLocator
Return the media locator or null if not defined.- Returns:
- media locator
-
setMediaLocator
Set the media locator.- Parameters:
mediaLocator
- media locator or null to use default
-
setupJMF
Runs JMFInit the first time the application is started so that capture devices are properly detected and initialized by JMF. -
getName
- Overrides:
getName
in classJingleMediaManager
-