/* global APP, $, JitsiMeetJS */
import UIUtil from "../../util/UIUtil";
import UIEvents from "../../../../service/UI/UIEvents";
import languages from "../../../../service/translation/languages";
import Settings from '../../../settings/Settings';
import mediaDeviceHelper from '../../../devices/mediaDeviceHelper';
const RTCUIUtils = JitsiMeetJS.util.RTCUIHelper;
var constructAudioIndicatorHtml = function() {
return ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ ''
+ '';
};
var constructMediaSettingsHtml = function() {
return '
'
+ '
'
//+ constructAudioIndicatorHtml()
+ '
'
+ ''
+ ' '
+ ''
+ ''
+ ' '
+ ''
+ ''
+ ' '
+ ''
+ '
'
+ '
';
};
/**
* The callback function corresponding to the openSettingsWindow parameter.
*
* @type {function}
*/
var settingsWindowCallback = null;
/**
* Defines all methods in connection to the Settings dialog.
*/
var SettingsDialog = {
init(eventEmitter) {
this.eventEmitter = eventEmitter;
},
/**
* Generate html select options for available physical devices.
* @param {{ deviceId, label }[]} items available devices
* @param {string} [selectedId] id of selected device
* @param {boolean} permissionGranted if permission to use selected device
* type is granted
* @returns {string}
*/
_generateDevicesOptions(items, selectedId, permissionGranted) {
if (!permissionGranted && items.length) {
return '