getSupportedMediaKeySystemConfigurations = function getSupportedMediaKeySystemConfigurations(keySystem, audioCodecs, videoCodecs, drmSystemOptions) {
  switch (keySystem) {
    case _utils_mediakeys_helper__WEBPACK_IMPORTED_MODULE_3__["KeySystems"].WIDEVINE:
      return createWidevineMediaKeySystemConfigurations(audioCodecs, videoCodecs, drmSystemOptions);

    default:
      throw new Error("Unknown key-system: " + keySystem);
  }
}
The idea here is to handle key-system (and their respective platforms) specific configuration differences
in order to work with the local requestMediaKeySystemAccess method.

We can also rule-out platform-related key-system support at this point by throwing an error.

@param {string} keySystem Identifier for the key-system, see `KeySystems` enum
@param {Array<string>} audioCodecs List of required audio codecs to support
@param {Array<string>} videoCodecs List of required video codecs to support
@throws will throw an error if a unknown key system is passed
@returns {Array<MediaSystemConfiguration>} A non-empty Array of MediaKeySystemConfiguration objects