build/temp/dash.mss.debug.js
/**
   * @description Public facing external events to be used when developing a player that implements dash.js.
   */
@description Public facing external events to be used when developing a player that implements dash.js.
@description Public facing external events to be used when developing a player that implements dash . js .
function MediaPlayerEvents() {
    _classCallCheck(this, MediaPlayerEvents);
    _get(Object.getPrototypeOf(MediaPlayerEvents.prototype), 'constructor', this).call(this);
    this.AST_IN_FUTURE = 'astInFuture';
    this.BUFFER_EMPTY = 'bufferStalled';
    this.BUFFER_LOADED = 'bufferLoaded';
    this.BUFFER_LEVEL_STATE_CHANGED = 'bufferStateChanged';
    this.ERROR = 'error';
    this.FRAGMENT_LOADING_COMPLETED = 'fragmentLoadingCompleted';
    this.FRAGMENT_LOADING_PROGRESS = 'fragmentLoadingProgress';
    this.FRAGMENT_LOADING_STARTED = 'fragmentLoadingStarted';
    this.FRAGMENT_LOADING_ABANDONED = 'fragmentLoadingAbandoned';
    this.LOG = 'log';
    this.MANIFEST_LOADED = 'manifestLoaded';
    this.METRICS_CHANGED = 'metricsChanged';
    this.METRIC_CHANGED = 'metricChanged';
    this.METRIC_ADDED = 'metricAdded';
    this.METRIC_UPDATED = 'metricUpdated';
    this.PERIOD_SWITCH_COMPLETED = 'periodSwitchCompleted';
    this.PERIOD_SWITCH_STARTED = 'periodSwitchStarted';
    this.QUALITY_CHANGE_REQUESTED = 'qualityChangeRequested';
    this.QUALITY_CHANGE_RENDERED = 'qualityChangeRendered';
    this.TRACK_CHANGE_RENDERED = 'trackChangeRendered';
    this.SOURCE_INITIALIZED = 'sourceInitialized';
    this.STREAM_INITIALIZED = 'streamInitialized';
    this.STREAM_TEARDOWN_COMPLETE = 'streamTeardownComplete';
    this.TEXT_TRACKS_ADDED = 'allTextTracksAdded';
    this.TEXT_TRACK_ADDED = 'textTrackAdded';
    this.TTML_PARSED = 'ttmlParsed';
    this.TTML_TO_PARSE = 'ttmlToParse';
    this.CAPTION_RENDERED = 'captionRendered';
    this.CAPTION_CONTAINER_RESIZE = 'captionContainerResize';
    this.CAN_PLAY = 'canPlay';
    this.PLAYBACK_ENDED = 'playbackEnded';
    this.PLAYBACK_ERROR = 'playbackError';
    this.PLAYBACK_NOT_ALLOWED = 'playbackNotAllowed';
    this.PLAYBACK_METADATA_LOADED = 'playbackMetaDataLoaded';
    this.PLAYBACK_PAUSED = 'playbackPaused';
    this.PLAYBACK_PLAYING = 'playbackPlaying';
    this.PLAYBACK_PROGRESS = 'playbackProgress';
    this.PLAYBACK_RATE_CHANGED = 'playbackRateChanged';
    this.PLAYBACK_SEEKED = 'playbackSeeked';
    this.PLAYBACK_SEEKING = 'playbackSeeking';
    this.PLAYBACK_SEEK_ASKED = 'playbackSeekAsked';
    this.PLAYBACK_STALLED = 'playbackStalled';
    this.PLAYBACK_STARTED = 'playbackStarted';
    this.PLAYBACK_TIME_UPDATED = 'playbackTimeUpdated';
    this.PLAYBACK_WAITING = 'playbackWaiting';
    this.MANIFEST_VALIDITY_CHANGED = 'manifestValidityChanged';
  }
function MediaPlayerEvents ( ) { _classCallCheck ( this , MediaPlayerEvents ) ; _get ( Object . getPrototypeOf ( MediaPlayerEvents . prototype ) , 'constructor' , this ) . call ( this ) ; this . AST_IN_FUTURE = 'astInFuture' ; this . BUFFER_EMPTY = 'bufferStalled' ; this . BUFFER_LOADED = 'bufferLoaded' ; this . BUFFER_LEVEL_STATE_CHANGED = 'bufferStateChanged' ; this . ERROR = 'error' ; this . FRAGMENT_LOADING_COMPLETED = 'fragmentLoadingCompleted' ; this . FRAGMENT_LOADING_PROGRESS = 'fragmentLoadingProgress' ; this . FRAGMENT_LOADING_STARTED = 'fragmentLoadingStarted' ; this . FRAGMENT_LOADING_ABANDONED = 'fragmentLoadingAbandoned' ; this . LOG = 'log' ; this . MANIFEST_LOADED = 'manifestLoaded' ; this . METRICS_CHANGED = 'metricsChanged' ; this . METRIC_CHANGED = 'metricChanged' ; this . METRIC_ADDED = 'metricAdded' ; this . METRIC_UPDATED = 'metricUpdated' ; this . PERIOD_SWITCH_COMPLETED = 'periodSwitchCompleted' ; this . PERIOD_SWITCH_STARTED = 'periodSwitchStarted' ; this . QUALITY_CHANGE_REQUESTED = 'qualityChangeRequested' ; this . QUALITY_CHANGE_RENDERED = 'qualityChangeRendered' ; this . TRACK_CHANGE_RENDERED = 'trackChangeRendered' ; this . SOURCE_INITIALIZED = 'sourceInitialized' ; this . STREAM_INITIALIZED = 'streamInitialized' ; this . STREAM_TEARDOWN_COMPLETE = 'streamTeardownComplete' ; this . TEXT_TRACKS_ADDED = 'allTextTracksAdded' ; this . TEXT_TRACK_ADDED = 'textTrackAdded' ; this . TTML_PARSED = 'ttmlParsed' ; this . TTML_TO_PARSE = 'ttmlToParse' ; this . CAPTION_RENDERED = 'captionRendered' ; this . CAPTION_CONTAINER_RESIZE = 'captionContainerResize' ; this . CAN_PLAY = 'canPlay' ; this . PLAYBACK_ENDED = 'playbackEnded' ; this . PLAYBACK_ERROR = 'playbackError' ; this . PLAYBACK_NOT_ALLOWED = 'playbackNotAllowed' ; this . PLAYBACK_METADATA_LOADED = 'playbackMetaDataLoaded' ; this . PLAYBACK_PAUSED = 'playbackPaused' ; this . PLAYBACK_PLAYING = 'playbackPlaying' ; this . PLAYBACK_PROGRESS = 'playbackProgress' ; this . PLAYBACK_RATE_CHANGED = 'playbackRateChanged' ; this . PLAYBACK_SEEKED = 'playbackSeeked' ; this . PLAYBACK_SEEKING = 'playbackSeeking' ; this . PLAYBACK_SEEK_ASKED = 'playbackSeekAsked' ; this . PLAYBACK_STALLED = 'playbackStalled' ; this . PLAYBACK_STARTED = 'playbackStarted' ; this . PLAYBACK_TIME_UPDATED = 'playbackTimeUpdated' ; this . PLAYBACK_WAITING = 'playbackWaiting' ; this . MANIFEST_VALIDITY_CHANGED = 'manifestValidityChanged' ; }
@description Public facing external events to be used when developing a player that implements dash.js.
@description Public facing external events to be used when developing a player that implements dash . js .
/**
     * Triggered when playback will not start yet
     * as the MPD's availabilityStartTime is in the future.
     * Check delay property in payload to determine time before playback will start.
     */ /**
     * Triggered when the video element's buffer state changes to stalled.
     * Check mediaType in payload to determine type (Video, Audio, FragmentedText).
     * @event MediaPlayerEvents#BUFFER_EMPTY
     */ /**
     * Triggered when the video element's buffer state changes to loaded.
     * Check mediaType in payload to determine type (Video, Audio, FragmentedText).
     * @event MediaPlayerEvents#BUFFER_LOADED
     */ /**
     * Triggered when the video element's buffer state changes, either stalled or loaded. Check payload for state.
     * @event MediaPlayerEvents#BUFFER_LEVEL_STATE_CHANGED
     */ /**
     * Triggered when there is an error from the element or MSE source buffer.
     * @event MediaPlayerEvents#ERROR
     */ /**
     * Triggered when a fragment download has completed.
     * @event MediaPlayerEvents#FRAGMENT_LOADING_COMPLETED
     */ /**
     * Triggered when a partial fragment download has completed.
     * @event MediaPlayerEvents#FRAGMENT_LOADING_PROGRESS
     */ /**
     * Triggered when a fragment download has started.
     * @event MediaPlayerEvents#FRAGMENT_LOADING_STARTED
     */ /**
     * Triggered when a fragment download is abandoned due to detection of slow download base on the ABR abandon rule..
     * @event MediaPlayerEvents#FRAGMENT_LOADING_ABANDONED
     */ /**
     * Triggered when {@link module:Debug} logger methods are called.
     * @event MediaPlayerEvents#LOG
     */ //TODO refactor with internal event /**
     * Triggered when the manifest load is complete
     * @event MediaPlayerEvents#MANIFEST_LOADED
     */ /**
     * Triggered anytime there is a change to the overall metrics.
     * @event MediaPlayerEvents#METRICS_CHANGED
     */ /**
     * Triggered when an individual metric is added, updated or cleared.
     * @event MediaPlayerEvents#METRIC_CHANGED
     */ /**
     * Triggered every time a new metric is added.
     * @event MediaPlayerEvents#METRIC_ADDED
     */ /**
     * Triggered every time a metric is updated.
     * @event MediaPlayerEvents#METRIC_UPDATED
     */ /**
     * Triggered at the stream end of a period.
     * @event MediaPlayerEvents#PERIOD_SWITCH_COMPLETED
     */ /**
     * Triggered when a new period starts.
     * @event MediaPlayerEvents#PERIOD_SWITCH_STARTED
     */ /**
     * Triggered when an ABR up /down switch is initiated; either by user in manual mode or auto mode via ABR rules.
     * @event MediaPlayerEvents#QUALITY_CHANGE_REQUESTED
     */ /**
     * Triggered when the new ABR quality is being rendered on-screen.
     * @event MediaPlayerEvents#QUALITY_CHANGE_RENDERED
     */ /**
     * Triggered when the new track is being rendered.
     * @event MediaPlayerEvents#TRACK_CHANGE_RENDERED
     */ /**
     * Triggered when the source is setup and ready.
     * @event MediaPlayerEvents#SOURCE_INITIALIZED
     */ /**
     * Triggered when a stream (period) is loaded
     * @event MediaPlayerEvents#STREAM_INITIALIZED
     */ /**
     * Triggered when the player has been reset.
     * @event MediaPlayerEvents#STREAM_TEARDOWN_COMPLETE
     */ /**
     * Triggered once all text tracks detected in the MPD are added to the video element.
     * @event MediaPlayerEvents#TEXT_TRACKS_ADDED
     */ /**
     * Triggered when a text track is added to the video element's TextTrackList
     * @event MediaPlayerEvents#TEXT_TRACK_ADDED
     */ /**
     * Triggered when a ttml chunk is parsed.
     * @event MediaPlayerEvents#TTML_PARSED
     */ /**
     * Triggered when a ttml chunk has to be parsed.
     * @event MediaPlayerEvents#TTML_TO_PARSE
     */ /**
     * Triggered when a caption is rendered.
     * @event MediaPlayerEvents#CAPTION_RENDERED
     */ /**
     * Triggered when the caption container is resized.
     * @event MediaPlayerEvents#CAPTION_CONTAINER_RESIZE
     */ /**
     * Sent when enough data is available that the media can be played,
     * at least for a couple of frames.  This corresponds to the
     * HAVE_ENOUGH_DATA readyState.
     * @event MediaPlayerEvents#CAN_PLAY
     */ /**
     * Sent when playback completes.
     * @event MediaPlayerEvents#PLAYBACK_ENDED
     */ /**
     * Sent when an error occurs.  The element's error
     * attribute contains more information.
     * @event MediaPlayerEvents#PLAYBACK_ERROR
     */ /**
     * Sent when playback is not allowed (for example if user gesture is needed).
     * @event MediaPlayerEvents#PLAYBACK_NOT_ALLOWED
     */ /**
     * The media's metadata has finished loading; all attributes now
     * contain as much useful information as they're going to.
     * @event MediaPlayerEvents#PLAYBACK_METADATA_LOADED
     */ /**
     * Sent when playback is paused.
     * @event MediaPlayerEvents#PLAYBACK_PAUSED
     */ /**
     * Sent when the media begins to play (either for the first time, after having been paused,
     * or after ending and then restarting).
     *
     * @event MediaPlayerEvents#PLAYBACK_PLAYING
     */ /**
     * Sent periodically to inform interested parties of progress downloading
     * the media. Information about the current amount of the media that has
     * been downloaded is available in the media element's buffered attribute.
     * @event MediaPlayerEvents#PLAYBACK_PROGRESS
     */ /**
     * Sent when the playback speed changes.
     * @event MediaPlayerEvents#PLAYBACK_RATE_CHANGED
     */ /**
     * Sent when a seek operation completes.
     * @event MediaPlayerEvents#PLAYBACK_SEEKED
     */ /**
     * Sent when a seek operation begins.
     * @event MediaPlayerEvents#PLAYBACK_SEEKING
     */ /**
     * Sent when a seek operation has been asked.
     * @event MediaPlayerEvents#PLAYBACK_SEEK_ASKED
     */ /**
     * Sent when the video element reports stalled
     * @event MediaPlayerEvents#PLAYBACK_STALLED
     */ /**
     * Sent when playback of the media starts after having been paused;
     * that is, when playback is resumed after a prior pause event.
     *
     * @event MediaPlayerEvents#PLAYBACK_STARTED
     */ /**
     * The time indicated by the element's currentTime attribute has changed.
     * @event MediaPlayerEvents#PLAYBACK_TIME_UPDATED
     */ /**
     * Sent when the media playback has stopped because of a temporary lack of data.
     *
     * @event MediaPlayerEvents#PLAYBACK_WAITING
     */ /**
     * Manifest validity changed - As a result of an MPD validity expiration event.
     * @event MediaPlayerEvents#MANIFEST_VALIDITY_CHANGED
     */