endOfStream(error) {
    if (error === 'network') {
      // MEDIA_ERR_NETWORK
      this.tech_.error(2);
    } else if (error === 'decode') {
      // MEDIA_ERR_DECODE
      this.tech_.error(3);
    }
    if (this.readyState !== 'ended') {
      this.readyState = 'ended';
      this.swfObj.vjs_endOfStream();
    }
  }
/**
   * Signals the end of the stream.
   *
   * @link https://w3c.github.io/media-source/#widl-MediaSource-endOfStream-void-EndOfStreamError-error
   * @param {String=} error Signals that a playback error
   * has occurred. If specified, it must be either "network" or
   * "decode".
   */
Signals the end of the stream.
Signals the end of the stream .
endOfStream(error) {
    if (error === 'network') {
      this.tech_.error(2);
    } else if (error === 'decode') {
      this.tech_.error(3);
    }
    if (this.readyState !== 'ended') {
      this.readyState = 'ended';
      this.swfObj.vjs_endOfStream();
    }
  }
endOfStream ( error ) { if ( error === 'network' ) { this . tech_ . error ( 2 ) ; } else if ( error === 'decode' ) { this . tech_ . error ( 3 ) ; } if ( this . readyState !== 'ended' ) { this . readyState = 'ended' ; this . swfObj . vjs_endOfStream ( ) ; } }
Signals the end of the stream.
Signals the end of the stream .
// MEDIA_ERR_NETWORK // MEDIA_ERR_DECODE