Skip to content

Commit

Permalink
Add JSDoc for getDvrWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Dec 11, 2024
1 parent 64f9e75 commit 3720c9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/streaming/MediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,10 @@ function MediaPlayer() {
return t
}

/**
* Returns information about the current DVR window including the start time, the end time, the window size.
* @returns {{startAsUtc: (*|number), size: number, endAsUtc: (*|number), start, end}|{}}
*/
function getDvrWindow() {
if (!playbackInitialized) {
throw PLAYBACK_NOT_INITIALIZED_ERROR;
Expand Down

0 comments on commit 3720c9c

Please sign in to comment.