async function sendEncryptedEvent(
      initDataType = 'cenc', initData = new Uint8Array(1), keyId = null) {
    // For some platforms, such as Xbox, where parseInbandPssh defaults to
    // true, this listener may never be set.
    if (mockVideo.on['encrypted']) {
      mockVideo.on['encrypted']({initDataType, initData, keyId});
    }

    await Util.shortDelay();
  }
@param {string} initDataType
@param {Uint8Array} initData
@param {string|null} keyId