Skip to content

Commit

Permalink
Merge pull request #1604 from tchakabam/media-player-get-live-delay
Browse files Browse the repository at this point in the history
Adds getLiveDelay to MediaPlayer API
  • Loading branch information
Dan Sparacio committed Sep 21, 2016
2 parents ba0d778 + 7beefe0 commit 89cacb0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/streaming/MediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,16 @@ function MediaPlayer() {
mediaPlayerModel.setLiveDelay(value);
}

/**
* @memberof module:MediaPlayer
* @see {@link module:MediaPlayer#setLiveDelay setLiveDelay()}
* @instance
* @returns {number|undefined} Current live stream delay in seconds when previously set, or `undefined`
*/
function getLiveDelay() {
return mediaPlayerModel.getLiveDelay();
}

/**
* <p>Set to true if you would like to override the default live delay and honor the SuggestedPresentationDelay attribute in by the manifest.</p>
* @param {boolean} value
Expand Down Expand Up @@ -1968,6 +1978,7 @@ function MediaPlayer() {
getSource: getSource,
setLiveDelayFragmentCount: setLiveDelayFragmentCount,
setLiveDelay: setLiveDelay,
getLiveDelay: getLiveDelay,
useSuggestedPresentationDelay: useSuggestedPresentationDelay,
enableLastBitrateCaching: enableLastBitrateCaching,
enableLastMediaSettingsCaching: enableLastMediaSettingsCaching,
Expand Down

0 comments on commit 89cacb0

Please sign in to comment.