platform/video.videojs/dist/video.es.js
function TextTrackButton(player) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    classCallCheck(this, TextTrackButton);

    options.tracks = player.textTracks();

    return possibleConstructorReturn(this, _TrackButton.call(this, player, options));
  }
function TextTrackButton(player) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    classCallCheck(this, TextTrackButton);

    options.tracks = player.textTracks();

    return possibleConstructorReturn(this, _TrackButton.call(this, player, options));
  }
function TextTrackButton ( player ) { var options = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : { } ; classCallCheck ( this , TextTrackButton ) ; options . tracks = player . textTracks ( ) ; return possibleConstructorReturn ( this , _TrackButton . call ( this , player , options ) ) ; }
Creates an instance of this class.

@param {Player} player
The `Player` that this class should be attached to.

@param {Object} [options={}]
The key/value store of player options.
Creates an instance of this class .