platform/video.videojs/dist/video.es.js
function setSelectedOption(el, value, parser) {
  if (!value) {
    return;
  }

  for (var i = 0; i < el.options.length; i++) {
    if (parseOptionValue(el.options[i].value, parser) === value) {
      el.selectedIndex = i;
      break;
    }
  }
}
function setSelectedOption(el, value, parser) {
  if (!value) {
    return;
  }

  for (var i = 0; i < el.options.length; i++) {
    if (parseOptionValue(el.options[i].value, parser) === value) {
      el.selectedIndex = i;
      break;
    }
  }
}
Sets the selected <option> element within a <select> element based on a
given value.

@param {Element} el
The element to look in.

@param {string} value
the property to look on.

@param {Function} [parser]
Optional function to adjust the value before comparing.

@private