Skip to content

Commit

Permalink
feat: add buffered api (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Dec 3, 2017
1 parent 75a576e commit d761b6c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,15 @@ export default class Player extends FakeEventTarget {
}
}

buffered(): void {
/**
* Get the first buffered range of the engine.
* @returns {TimeRanges} - First buffered range of the engine in seconds.
* @public
*/
get buffered(): ?TimeRanges {
if (this._engine) {
return this._engine.buffered;
}
}

/**
Expand Down

0 comments on commit d761b6c

Please sign in to comment.