function updateSetting(setting, container, input) {
	    var pane = this.elements.settings.panels[setting];
	    var value = null;
	    var list = container;

	    if (setting === 'captions') {
	      value = this.currentTrack;
	    } else {
	      value = !is$1.empty(input) ? input : this[setting]; // Get default

	      if (is$1.empty(value)) {
	        value = this.config[setting].default;
	      } // Unsupported value


	      if (!is$1.empty(this.options[setting]) && !this.options[setting].includes(value)) {
	        this.debug.warn("Unsupported value of '".concat(value, "' for ").concat(setting));
	        return;
	      } // Disabled value


	      if (!this.config[setting].options.includes(value)) {
	        this.debug.warn("Disabled value of '".concat(value, "' for ").concat(setting));
	        return;
	      }
	    } // Get the list if we need to


	    if (!is$1.element(list)) {
	      list = pane && pane.querySelector('[role="menu"]');
	    } // If there's no list it means it's not been rendered...


	    if (!is$1.element(list)) {
	      return;
	    } // Update the label


	    var label = this.elements.settings.buttons[setting].querySelector(".".concat(this.config.classNames.menu.value));
	    label.innerHTML = controls.getLabel.call(this, setting, value); // Find the radio option and check it

	    var target = list && list.querySelector("[value=\"".concat(value, "\"]"));

	    if (is$1.element(target)) {
	      target.checked = true;
	    }
	  }
function updateSetting(setting, container, input) {
	    var pane = this.elements.settings.panels[setting];
	    var value = null;
	    var list = container;

	    if (setting === 'captions') {
	      value = this.currentTrack;
	    } else {
	      value = !is$1.empty(input) ? input : this[setting]; 

	      if (is$1.empty(value)) {
	        value = this.config[setting].default;
	      } 


	      if (!is$1.empty(this.options[setting]) && !this.options[setting].includes(value)) {
	        this.debug.warn("Unsupported value of '".concat(value, "' for ").concat(setting));
	        return;
	      } 


	      if (!this.config[setting].options.includes(value)) {
	        this.debug.warn("Disabled value of '".concat(value, "' for ").concat(setting));
	        return;
	      }
	    } 


	    if (!is$1.element(list)) {
	      list = pane && pane.querySelector('[role="menu"]');
	    } 


	    if (!is$1.element(list)) {
	      return;
	    } 


	    var label = this.elements.settings.buttons[setting].querySelector(".".concat(this.config.classNames.menu.value));
	    label.innerHTML = controls.getLabel.call(this, setting, value); 

	    var target = list && list.querySelector("[value=\"".concat(value, "\"]"));

	    if (is$1.element(target)) {
	      target.checked = true;
	    }
	  }
function updateSetting ( setting , container , input ) { var pane = this . elements . settings . panels [ setting ] ; var value = null ; var list = container ; if ( setting === 'captions' ) { value = this . currentTrack ; } else { value = ! is$1 . empty ( input ) ? input : this [ setting ] ; // Get default if ( is$1 . empty ( value ) ) { value = this . config [ setting ] . default ; } // Unsupported value if ( ! is$1 . empty ( this . options [ setting ] ) && ! this . options [ setting ] . includes ( value ) ) { this . debug . warn ( "Unsupported value of '" . concat ( value , "' for " ) . concat ( setting ) ) ; return ; } // Disabled value if ( ! this . config [ setting ] . options . includes ( value ) ) { this . debug . warn ( "Disabled value of '" . concat ( value , "' for " ) . concat ( setting ) ) ; return ; } } // Get the list if we need to if ( ! is$1 . element ( list ) ) { list = pane && pane . querySelector ( '[role="menu"]' ) ; } // If there's no list it means it's not been rendered... if ( ! is$1 . element ( list ) ) { return ; } // Update the label var label = this . elements . settings . buttons [ setting ] . querySelector ( "." . concat ( this . config . classNames . menu . value ) ) ; label . innerHTML = controls . getLabel . call ( this , setting , value ) ; // Find the radio option and check it var target = list && list . querySelector ( "[value=\"" . concat ( value , "\"]" ) ) ; if ( is$1 . element ( target ) ) { target . checked = true ; } }
Update the selected setting
Update the selected setting