get duration() {
    return typeof this._player.getDuration === 'function'
      ? this._player.getDuration()
      : -1;
  }
/**
   * Gets the duration of the video
   *
   * @returns {number}  - Duration of the video in seconds
   */
Gets the duration of the video
@returns {number}  - Duration of the video in seconds
Gets the duration of the video @returns { number } - Duration of the video in seconds
get duration() {
    return typeof this._player.getDuration === 'function'
      ? this._player.getDuration()
      : -1;
  }
get duration ( ) { return typeof this . _player . getDuration === 'function' ? this . _player . getDuration ( ) : - 1 ; }
Gets the duration of the video
 @returns {number}  - Duration of the video in seconds
Gets the duration of the video @returns { number } - Duration of the video in seconds