示例#1
0
  @Override
  protected Map<String, String> getSystemPropertyDefaults() {
    // FIXME: some threads must be kept alive that prevent JVM
    // from shutting down
    FrameworkImpl.killAfterShutdown = true;

    Map<String, String> defaults = super.getSystemPropertyDefaults();
    String true_ = Boolean.toString(true);
    String false_ = Boolean.toString(false);

    // Audio system should not be disabled
    defaults.put(MediaServiceImpl.DISABLE_AUDIO_SUPPORT_PNAME, false_);

    defaults.put(DeviceConfiguration.PROP_AUDIO_SYSTEM, AudioSystem.LOCATOR_PROTOCOL_AUDIOSILENCE);
    defaults.put("org.jitsi.impl.neomedia.device.PortAudioSystem.disabled", true_);
    defaults.put("org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled", true_);

    // Disables COIN notifications
    defaults.put(OperationSetTelephonyConferencingJabberImpl.DISABLE_COIN_PROP_NAME, true_);

    // FIXME not sure about this one
    // It makes no sense for Jitsi Videobridge to pace its RTP output.
    defaults.put(
        DeviceConfiguration.PROP_VIDEO_RTP_PACING_THRESHOLD, Integer.toString(Integer.MAX_VALUE));

    // FIXME not sure about this one
    /*
     * XXX Explicitly support JitMeet by default because is is the primary
     * use case of Jitsi Videobridge right now.
     */
    defaults.put(SsrcTransformEngine.DROP_MUTED_AUDIO_SOURCE_IN_REVERSE_TRANSFORM, true_);
    defaults.put(SRTPCryptoContext.CHECK_REPLAY_PNAME, false_);

    return defaults;
  }
示例#2
0
  static {
    ConfigurationService cfg = LibJitsi.getConfigurationService();
    boolean dropUnencryptedPkts = false;

    if (cfg == null) {
      String s = System.getProperty(DROP_UNENCRYPTED_PKTS_PNAME);

      if (s != null) dropUnencryptedPkts = Boolean.parseBoolean(s);
    } else {
      dropUnencryptedPkts = cfg.getBoolean(DROP_UNENCRYPTED_PKTS_PNAME, dropUnencryptedPkts);
    }
    DROP_UNENCRYPTED_PKTS = dropUnencryptedPkts;
  }