[@types/video.js] Add methods seeking() & seekable() (#28632)

* [@types/video.js] Add methods seeking() & seekable()

Methods according to video.js documentation 
https://docs.videojs.com/player

* fix codestyle

* code style
This commit is contained in:
sgotre
2018-09-10 15:14:16 -07:00
committed by Ryan Cavanaugh
parent 493073a4f0
commit 2ba7a343a6
+14
View File
@@ -4395,6 +4395,20 @@ declare namespace videojs {
*/
reset(): void;
/**
* Returns whether or not the player is in the "seeking" state.
*
* @return boolean True if the player is in the seeking state, false if not.
*/
seeking(): boolean;
/**
* Returns the TimeRanges of the media that are currently available for seeking to.
*
* @return TimeRanges Returns the TimeRanges of the media that are currently available for seeking to.
*/
seekable(): TimeRanges;
/**
* Select source based on tech-order or source-order
* Uses source-order selection if `options.sourceOrder` is truthy. Otherwise,