本文整理汇总了Java中com.csipsimple.utils.PreferencesWrapper.setPreferenceBooleanValue方法的典型用法代码示例。如果您正苦于以下问题:Java PreferencesWrapper.setPreferenceBooleanValue方法的具体用法?Java PreferencesWrapper.setPreferenceBooleanValue怎么用?Java PreferencesWrapper.setPreferenceBooleanValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.csipsimple.utils.PreferencesWrapper
的用法示例。
在下文中一共展示了PreferencesWrapper.setPreferenceBooleanValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "60");
prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "60");
}
示例2: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.mysecretary.net");
}
示例3: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, false);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, false);
}
示例4: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add ice and stun
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true);
}
示例5: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.setPreferenceBooleanValue(SipConfigManager.DISABLE_RPORT, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
}
示例6: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
}
示例7: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
}
示例8: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
}
示例9: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
}
示例10: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true);
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ECHO_CANCELLATION, true);
prefs.setPreferenceStringValue(SipConfigManager.SND_CLOCK_RATE, "44100");
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"240");
prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB,"245");
prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB,"0");
prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_WB, "242");
prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_WB, "244");
prefs.setCodecPriority("G726-16/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G726-24/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G726-32/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G726-40/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"240");
prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB,"245");
prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_NB,"0");
prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_NB, "244");
prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G726-16/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G726-24/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G726-32/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G726-40/8000/1", SipConfigManager.CODEC_NB, "0");
}
示例11: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
prefs.setPreferenceStringValue(SipConfigManager.OVERRIDE_NAMESERVER, "67.214.119.234");
}
示例12: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Stun
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun01.1worldtelecom.mobi");
prefs.addStunServer("stun02.1worldtelecom.mobi");
// User agent -- useful?
//prefs.setPreferenceStringValue(SipConfigManager.USER_AGENT, "1WorldVoip");
// Codecs -- Assume they have legal rights to provide g729 to each users
// As they activate it by default in their forked app.
// For Narrowband
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB, "100");
prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "150");
prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB, "200");
prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB, "0"); /*
* Disable
* by
* default
*/
prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("CODEC2/8000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G7221/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("G7221/32000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("ISAC/16000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("ISAC/32000/1", SipConfigManager.CODEC_NB, "0");
prefs.setCodecPriority("AMR/8000/1", SipConfigManager.CODEC_NB, "0");
// For Wideband
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "100");
prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "150");
prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB, "200");
prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB, "0"); /*
* Disable
* by
* default
*/
prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("CODEC2/8000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G7221/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("G7221/32000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("ISAC/16000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("ISAC/32000/1", SipConfigManager.CODEC_WB, "0");
prefs.setCodecPriority("AMR/8000/1", SipConfigManager.CODEC_WB, "0");
}
示例13: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
}
示例14: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
}
示例15: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("85.204.232.6:3478");
}