From b73368a751561168d3183db61300bb8b5217a45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Cl=C3=A9riot?= Date: Wed, 20 Sep 2017 18:39:40 +0200 Subject: [PATCH 1/4] Update Player with new function requestFullscreen/cancelFullscreen But keep the legacy functions --- types/video.js/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index db62520ac3..550c166009 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for Video.js 5.16 // Project: https://github.com/zencoder/video-js // Definitions by: Vincent Bortone +// Simon Clériot // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The Video.js API allows you to interact with the video through @@ -49,6 +50,8 @@ declare namespace videojs { size(width: number, height: number): Player; requestFullScreen(): Player; cancelFullScreen(): Player; + requestFullscreen(): Player; + cancelFullscreen(): Player; ready(callback: (this: Player) => void): Player; on(eventName: string, callback: (eventObject: Event) => void): void; off(eventName?: string, callback?: (eventObject: Event) => void): void; From 2e11a032592dbd7eea9649cc445e08306f9e60d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Cl=C3=A9riot?= Date: Wed, 20 Sep 2017 18:43:39 +0200 Subject: [PATCH 2/4] Update Videojs version --- types/video.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 550c166009..13914e9ba0 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Video.js 5.16 +// Type definitions for Video.js 6.2 // Project: https://github.com/zencoder/video-js // Definitions by: Vincent Bortone // Simon Clériot From 0cb8d1f7c8e89dad22613d4caa9d9488874a0dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Cl=C3=A9riot?= Date: Wed, 20 Sep 2017 18:46:31 +0200 Subject: [PATCH 3/4] Replace cancelFullScreen by exitFullscreen --- types/video.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 13914e9ba0..93080c3b40 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -51,7 +51,7 @@ declare namespace videojs { requestFullScreen(): Player; cancelFullScreen(): Player; requestFullscreen(): Player; - cancelFullscreen(): Player; + exitFullscreen(): Player; ready(callback: (this: Player) => void): Player; on(eventName: string, callback: (eventObject: Event) => void): void; off(eventName?: string, callback?: (eventObject: Event) => void): void; From bce38ced14f6a7b502d6c103463532df3fd03703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Cl=C3=A9riot?= Date: Wed, 20 Sep 2017 19:41:24 +0200 Subject: [PATCH 4/4] Fix space in comments --- types/video.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 93080c3b40..c6df37371c 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Video.js 6.2 // Project: https://github.com/zencoder/video-js // Definitions by: Vincent Bortone -// Simon Clériot +// Simon Clériot // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The Video.js API allows you to interact with the video through