bool UpdateQoS() { tmedia_pref_video_size_t prefVideoSize = (this.comboBoxPrefVideoSize.SelectedValue as PrefVideoSize).Value; this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PREF_VIDEO_SIZE, prefVideoSize.ToString()); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS, this.checkBoxSessionTimersEnable.IsChecked.Value); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_REFRESHER, this.comboBoxSessionTimerRefreser.SelectedValue.ToString()); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_TIMEOUT, this.textBoxSessionTimersTimeout.Text); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PRECOND_STRENGTH, Configuration.QoSStrengthFromString(this.comboBoxPreconditionStrength.SelectedValue.ToString()).ToString()); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PRECOND_TYPE, Configuration.QoSTypeFromString(this.comboBoxPreconditionType.SelectedValue.ToString()).ToString()); this.configurationService.Set(Configuration.ConfFolder.QOS, Configuration.ConfEntry.BANDWIDTH, Configuration.QoSBandwidthFromString(this.comboBoxPreconditionBandwidth.SelectedValue.ToString()).ToString()); // Transmit values to the native part (global) if (this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS, Configuration.DEFAULT_QOS_SESSION_TIMERS)) { MediaSessionMgr.defaultsSetInviteSessionTimers( this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_TIMEOUT, Configuration.DEFAULT_QOS_SESSION_TIMERS_TIMEOUT), this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_REFRESHER, Configuration.DEFAULT_QOS_SESSION_TIMERS_REFRESHER)); } else { MediaSessionMgr.defaultsSetInviteSessionTimers(0, null); } MediaSessionMgr.defaultsSetPrefVideoSize(prefVideoSize); return(true); }
public QosCfg(tmedia_pref_video_size_t prefVideoSizeIn, int fps) { this.prefVideoSize = prefVideoSizeIn; this.iVideoFPS = fps; this.prefVideoSizeValues = new PrefVideoSize[] { new PrefVideoSize("SQCIF (128 x 98)", tmedia_pref_video_size_t.tmedia_pref_video_size_sqcif), new PrefVideoSize("QCIF (176 x 144)", tmedia_pref_video_size_t.tmedia_pref_video_size_qcif), new PrefVideoSize("CIF (352 x 288)", tmedia_pref_video_size_t.tmedia_pref_video_size_cif), new PrefVideoSize("720P (1280 x 720)", tmedia_pref_video_size_t.tmedia_pref_video_size_720p), new PrefVideoSize("16CIF (1408 x 1152)", tmedia_pref_video_size_t.tmedia_pref_video_size_16cif), new PrefVideoSize("1080P (1920 x 1080)", tmedia_pref_video_size_t.tmedia_pref_video_size_1080p) }; }
void LoadQoS() { tmedia_pref_video_size_t prefVideoSize = (tmedia_pref_video_size_t)Enum.Parse(typeof(tmedia_pref_video_size_t), this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PREF_VIDEO_SIZE, Configuration.DEFAULT_QOS_PREF_VIDEO_SIZE)); int prefVideoSizeIndex = PrefVideoSizeValues.ToList().FindIndex(x => x.Value == prefVideoSize); String strength = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PRECOND_STRENGTH, Configuration.DEFAULT_QOS_PRECOND_STRENGTH); String type = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.PRECOND_TYPE, Configuration.DEFAULT_QOS_PRECOND_TYPE); String bandwidth = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.BANDWIDTH, Configuration.DEFAULT_QOS_BANDWIDTH); String refresher = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_REFRESHER, Configuration.DEFAULT_QOS_SESSION_TIMERS_REFRESHER); int timeout = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS_TIMEOUT, Configuration.DEFAULT_QOS_SESSION_TIMERS_TIMEOUT); this.comboBoxPrefVideoSize.SelectedIndex = Math.Max(0, prefVideoSizeIndex); this.checkBoxSessionTimersEnable.IsChecked = this.configurationService.Get(Configuration.ConfFolder.QOS, Configuration.ConfEntry.SESSION_TIMERS, Configuration.DEFAULT_QOS_SESSION_TIMERS); this.comboBoxPreconditionStrength.SelectedValue = Configuration.QoSStrengthToString((tmedia_qos_strength_t)Enum.Parse(typeof(tmedia_qos_strength_t), strength)); this.comboBoxPreconditionType.SelectedValue = Configuration.QoSTypeToString((tmedia_qos_stype_t)Enum.Parse(typeof(tmedia_qos_stype_t), type)); this.comboBoxPreconditionBandwidth.SelectedValue = Configuration.QoSBandwidthToString((tmedia_bandwidth_level_t)Enum.Parse(typeof(tmedia_bandwidth_level_t), bandwidth)); this.comboBoxSessionTimerRefreser.SelectedValue = refresher; this.textBoxSessionTimersTimeout.Text = timeout.ToString(); }
public PrefVideoSize(String text, tmedia_pref_video_size_t value) { this.text = text; this.value = value; }
public static bool defaultsSetPrefVideoSizeOutRange(tmedia_pref_video_size_t min, tmedia_pref_video_size_t max) { bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSizeOutRange((int)min, (int)max); return(ret); }
public static bool defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) { bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSize((int)pref_video_size); return(ret); }
public static bool defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) { bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSize((int)pref_video_size); return ret; }
public bool setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { bool ret = tinyWRAPPINVOKE.CallSession_setVideoPrefSize(swigCPtr, (int)pref_video_size); return ret; }
public bool setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { return(tinyWRAPPINVOKE.CallSession_setVideoPrefSize(this.swigCPtr, (int)pref_video_size)); }
public bool setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { bool ret = tinyWRAPPINVOKE.CallSession_setVideoPrefSize(swigCPtr, (int)pref_video_size); return(ret); }
public static bool defaultsSetPrefVideoSizeOutRange(tmedia_pref_video_size_t min, tmedia_pref_video_size_t max) { bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSizeOutRange((int)min, (int)max); return ret; }