コード例 #1
0
 /**
  * Set the priority for the codec for a given bandwidth type
  *
  * @param codecName the name of the codec as announced by codec
  * @param type bandwidth type <br>
  *     For now, valid constants are : {@link SipConfigManager#CODEC_NB} and {@link
  *     SipConfigManager#CODEC_WB}
  * @param newValue Short value for preference as a string.
  */
 public void setCodecPriority(String codecName, String type, String newValue) {
   String key = SipConfigManager.getCodecKey(codecName, type);
   if (key != null) {
     setPreferenceStringValue(key, newValue);
   }
   // TODO : else raise error
 }
コード例 #2
0
 public void setVideoCodecList(List<String> codecs) {
   if (codecs != null) {
     setPreferenceStringValue(
         PreferencesWrapper.CODECS_VIDEO_LIST,
         TextUtils.join(PreferencesWrapper.CODECS_SEPARATOR, codecs));
   }
 }