static rejectCodec_(codec) {
    const isTypeSupported =
        // eslint-disable-next-line no-restricted-syntax
        MediaSource.isTypeSupported.bind(MediaSource);

    MediaSource.isTypeSupported = (mimeType) => {
      const actualCodec = shaka.util.MimeUtils.getCodecBase(mimeType);
      return actualCodec != codec && isTypeSupported(mimeType);
    };

    if (window.ManagedMediaSource) {
      const isTypeSupportedManaged =
          // eslint-disable-next-line no-restricted-syntax
          ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);

      window.ManagedMediaSource.isTypeSupported = (mimeType) => {
        const actualCodec = shaka.util.MimeUtils.getCodecBase(mimeType);
        return actualCodec != codec && isTypeSupportedManaged(mimeType);
      };
    }
  }
Patch |MediaSource.isTypeSupported| to always reject |codec|. This is used
when we know that we are on a platform that does not work well with a given
codec.

@param {string} codec
@private