private void UpdateAudioEvents(string confId, int incident) { string script = null; string samplesPerSec = ProxyHelper.GetSettingValueString("AudioSamplesPerSec", "PLATFORM"); string speexQuality = ProxyHelper.GetSettingValueString("SpeexQuality", "PLATFORM"); string audioOutputDeviceID = ProxyHelper.GetSettingValueString("AudioOutputDeviceID", "PLATFORM"); string audioDeviceID = ProxyHelper.GetSettingValueString("VideoDeviceID", "PLATFORM"); string fileName = AudioUploadHelper.GetFileName(incident, AudioUploadHelper.SOURCE_CALLCENTER); script = "StartAudioPublisher(6, " + confId + ", 2, 0, '" + audioDeviceID + "', '" + samplesPerSec + "', '" + speexQuality + "', '" + fileName + "', 'OnRefreshAudioPublisher');"; ButtonAPStart.OnClientClick = "javascript:" + script + "return false;"; RunScript(script); script = "StartAudioSubscriber(6, " + confId + ", 2, 1, 0, '" + audioOutputDeviceID + "', 'OnRefreshAudioSubscriber');"; ButtonASStart.OnClientClick = "javascript:" + script + "return false;"; RunScript(script); string scriptHold = string.Empty; script = "javascript:StopAudioPublisher('aspp6_" + confId + "_2_1');"; scriptHold += script; ButtonAPStop.OnClientClick = script + "return false;"; ButtonAPMute.OnClientClick = script + "return false;"; script = "javascript:StopAudioSubscriber('auds6_" + confId + "_2_1_1');"; scriptHold += script; ButtonASStop.OnClientClick = script + "return false;"; ButtonASMute.OnClientClick = script + "return false;"; ButtonASHold.OnClientClick = scriptHold + "return false;"; }
private void UpdateAudioEvents(string confId, int incident) { string script = null; string samplesPerSec = ProxyHelper.GetSettingValueString("AudioSamplesPerSec", "KIOSK"); string speexQuality = ProxyHelper.GetSettingValueString("SpeexQuality", "KIOSK"); string audioOutputDeviceID = ProxyHelper.GetSettingValueString("AudioOutputDeviceID", "KIOSK"); string audioDeviceID = ProxyHelper.GetSettingValueString("VideoDeviceID", "KIOSK"); string fileName = AudioUploadHelper.GetFileName(incident, AudioUploadHelper.SOURCE_FACILITY); script = "StartAudioPublisher(6, " + confId + ", 1, 1, '" + audioDeviceID + "', '" + samplesPerSec + "', '" + speexQuality + "', '" + fileName + "', '');"; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "StartAudioPublisher", script, true); script = "StartAudioSubscriber(6, " + confId + ", 1, 2, 1, '" + audioOutputDeviceID + "');"; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "StartAudioSubscriber", script, true); }