createItems() {
    let items = [];

    let tracks = this.player_.textTracks();

    if (!tracks) {
      return items;
    }

    for (let i = 0; i < tracks.length; i++) {
      let track = tracks[i];
      if (track['kind'] === this.kind_) {
        items.push(new TextTrackMenuItem(this.player_, {
          'track': track
        }));
      }
    }

    return items;
  }
/**
   * Create a menu item for each text track
   *
   * @return {Array} Array of menu items
   * @method createItems
   */
Create a menu item for each text track
@return {Array} Array of menu items
@method createItems
Create a menu item for each text track @return { Array } Array of menu items @method createItems
createItems() {
    let items = [];
    let tracks = this.player_.textTracks();
    if (!tracks) {
      return items;
    }
    for (let i = 0; i < tracks.length; i++) {
      let track = tracks[i];
      if (track['kind'] === this.kind_) {
        items.push(new TextTrackMenuItem(this.player_, {
          'track': track
        }));
      }
    }
    return items;
  }
createItems ( ) { let items = [ ] ; let tracks = this . player_ . textTracks ( ) ; if ( ! tracks ) { return items ; } for ( let i = 0 ; i < tracks . length ; i ++ ) { let track = tracks [ i ] ; if ( track [ 'kind' ] === this . kind_ ) { items . push ( new TextTrackMenuItem ( this . player_ , { 'track' : track } ) ) ; } } return items ; }
Create a menu item for each text track
 @return {Array} Array of menu items
 @method createItems
Create a menu item for each text track @return { Array } Array of menu items @method createItems