data_(event) {
    let segment = event.data.segment;

    // Cast ArrayBuffer to TypedArray
    segment.data = new Uint8Array(
      segment.data,
      event.data.byteOffset,
      event.data.byteLength
    );

    segment.initSegment = new Uint8Array(
      segment.initSegment.data,
      segment.initSegment.byteOffset,
      segment.initSegment.byteLength
    );

    createTextTracksIfNecessary(this, this.mediaSource_, segment);

    // Add the segments to the pendingBuffers array
    this.pendingBuffers_.push(segment);
    return;
  }
/**
   * When we get a data event from the transmuxer
   * we call this function and handle the data that
   * was sent to us
   *
   * @private
   * @param {Event} event the data event from the transmuxer
   */
When we get a data event from the transmuxer
we call this function and handle the data that
was sent to us

@private
@param {Event} event the data event from the transmuxer
When we get a data event from the transmuxer we call this function and handle the data that was sent to us @private @param { Event } event the data event from the transmuxer
data_(event) {
    let segment = event.data.segment;
    segment.data = new Uint8Array(
      segment.data,
      event.data.byteOffset,
      event.data.byteLength
    );
    segment.initSegment = new Uint8Array(
      segment.initSegment.data,
      segment.initSegment.byteOffset,
      segment.initSegment.byteLength
    );
    createTextTracksIfNecessary(this, this.mediaSource_, segment);
    this.pendingBuffers_.push(segment);
    return;
  }
data_ ( event ) { let segment = event . data . segment ; segment . data = new Uint8Array ( segment . data , event . data . byteOffset , event . data . byteLength ) ; segment . initSegment = new Uint8Array ( segment . initSegment . data , segment . initSegment . byteOffset , segment . initSegment . byteLength ) ; createTextTracksIfNecessary ( this , this . mediaSource_ , segment ) ; this . pendingBuffers_ . push ( segment ) ; return ; }
When we get a data event from the transmuxer
 we call this function and handle the data that
 was sent to us
When we get a data event from the transmuxer we call this function and handle the data that was sent to us
// Cast ArrayBuffer to TypedArray // Add the segments to the pendingBuffers array