static generateId3Frame(type, value) {
    goog.asserts.assert(type, 'type must be non-null');
    goog.asserts.assert(type.length == 4, 'type must contain 4 characters');
    const Id3Generator = shaka.test.Id3Generator;
    const Uint8ArrayUtils = shaka.util.Uint8ArrayUtils;
    const result = Uint8ArrayUtils.concat(
        Id3Generator.stringToInts_(type),
        new Uint8Array([
          0x00, 0x00, 0x00, 0x00, // size
          0xe0, 0x00,             // flags
        ]),
        value);

    // set the size
    const size = result.length - 10;

    result[4] = (size >>> 21) & 0x7f;
    result[5] = (size >>> 14) & 0x7f;
    result[6] = (size >>> 7) & 0x7f;
    result[7] = size & 0x7f;

    return result;
  }
Generate an ID3 frame from a type and value.

@param {string} type
@param {!Uint8Array} value
@return {!Uint8Array}