From 2ba7a343a611fec0ec1cf8ff75cb5b4acf70c619 Mon Sep 17 00:00:00 2001 From: sgotre Date: Tue, 11 Sep 2018 00:14:16 +0200 Subject: [PATCH] [@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 --- types/video.js/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index bea88fcc9d..1981528a55 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -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,