constructor(video, label) {
    shaka.Deprecate.deprecateFeature(5,
        'SimpleTextDisplayer', 'Please migrate to NativeTextDisplayer');
    /** @private {HTMLMediaElement} */
    this.video_ = video;

    /** @private {string} */
    this.textTrackLabel_ = label;

    /** @private {TextTrack} */
    this.textTrack_ = null;

    // TODO: Test that in all cases, the built-in CC controls in the video
    // element are toggling our TextTrack.

    // If the video element has TextTracks, disable them.  If we see one that
    // was created by a previous instance of Shaka Player, reuse it.
    for (const track of Array.from(this.video_.textTracks)) {
      if (track.kind === 'metadata' || track.kind === 'chapters') {
        continue;
      }
      // NOTE: There is no API available to remove a TextTrack from a video
      // element.
      track.mode = 'disabled';

      if (track.label == this.textTrackLabel_) {
        this.textTrack_ = track;
      }
    }
    if (this.textTrack_) {
      this.textTrack_.mode = 'hidden';
    }
  }
@param {HTMLMediaElement} video
@param {string} label