Update Player with new function requestFullscreen/cancelFullscreen

But keep the legacy functions
This commit is contained in:
Simon Clériot
2017-09-20 18:39:40 +02:00
parent cd7b44a336
commit b73368a751
+3
View File
@@ -1,6 +1,7 @@
// Type definitions for Video.js 5.16
// Project: https://github.com/zencoder/video-js
// Definitions by: Vincent Bortone <https://github.com/vbortone>
// Simon Clériot <https://github.com/scleriot>
// 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;