static install() {
    if (shaka.device.DeviceFactory.getDevice().supportsMediaCapabilities()) {
      shaka.log.info(
          'MediaCapabilities: Native mediaCapabilities support found.');
      return;
    }

    shaka.log.info('MediaCapabilities: install');

    if (!navigator.mediaCapabilities) {
      navigator.mediaCapabilities = /** @type {!MediaCapabilities} */ ({});
    }

    // Keep the patched MediaCapabilities object from being garbage-collected in
    // Safari. See this issue for details on the garbage-collection:
    // https://github.com/shaka-project/shaka-player/issues/3696#issuecomment-1009472718
    //
    // Using string notation is very important to avoid the compiler from
    // collapsing the property into a variable. See these two issues for more
    // details:
    // https://github.com/shaka-project/shaka-player/issues/8607
    // https://github.com/vercel/next.js/issues/78438#issuecomment-2879434319
    shaka.polyfill.MediaCapabilities['originalMcap'] =
        navigator.mediaCapabilities;

    navigator.mediaCapabilities.decodingInfo =
        shaka.polyfill.MediaCapabilities.decodingInfo_;
  }
Install the polyfill if needed.
@suppress {const}
@export