SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media
Class FMJConditionals

java.lang.Object
  extended by net.java.sip.communicator.impl.media.FMJConditionals

public class FMJConditionals
extends Object

Class to centralize workarounds or changes that need to be made for FMJ to work. This is also a place to tweak which workarounds are used.

Author:
Ken Larson

Field Summary
static boolean FMJ_CODECS
          Some SC codecs depend on internal Sun/IBM JMF classes.
static javax.media.format.AudioFormat FORCE_AUDIO_FORMAT
          FMJ's filter graph builder does not give specific formats for the tracks, but rather a general format with no encoding.
static boolean IS_FMJ
           
static boolean REGISTER_FORMATS_WITH_EVERY_RTP_MANAGER
          JMF stores CUSTOM_CODEC_FORMATS statically, so they only need to be registered once.
static boolean USE_JMF_INTERNAL_REGISTRY
          Whether to use JMF's internal registry to avoid auto-detecting capture devices each time, by tagging it with our own "author" property.
 
Constructor Summary
FMJConditionals()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_FMJ

public static final boolean IS_FMJ
See Also:
Constant Field Values

FMJ_CODECS

public static final boolean FMJ_CODECS
Some SC codecs depend on internal Sun/IBM JMF classes.

See Also:
Constant Field Values

FORCE_AUDIO_FORMAT

public static final javax.media.format.AudioFormat FORCE_AUDIO_FORMAT
FMJ's filter graph builder does not give specific formats for the tracks, but rather a general format with no encoding.


REGISTER_FORMATS_WITH_EVERY_RTP_MANAGER

public static final boolean REGISTER_FORMATS_WITH_EVERY_RTP_MANAGER
JMF stores CUSTOM_CODEC_FORMATS statically, so they only need to be registered once. FMJ does this dynamically (per instance), so it needs to be done for every time we instantiate an RTP manager. This variable determines whether we should register them every time (FMJ) or not (JMF).

See Also:
Constant Field Values

USE_JMF_INTERNAL_REGISTRY

public static final boolean USE_JMF_INTERNAL_REGISTRY
Whether to use JMF's internal registry to avoid auto-detecting capture devices each time, by tagging it with our own "author" property.

See Also:
Constant Field Values
Constructor Detail

FMJConditionals

public FMJConditionals()

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.