Merge pull request #21346 from SWBennett06/master

Updated video.js definition with documented options
This commit is contained in:
Daniel Rosenwasser
2017-11-09 00:17:07 -08:00
committed by GitHub
+9
View File
@@ -2,6 +2,7 @@
// Project: https://github.com/zencoder/video-js
// Definitions by: Vincent Bortone <https://github.com/vbortone>
// Simon Clériot <https://github.com/scleriot>
// Sean Bennett <https://github.com/SWBennett06>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// The Video.js API allows you to interact with the video through
@@ -15,15 +16,23 @@ export as namespace videojs;
declare namespace videojs {
interface PlayerOptions {
techOrder?: string[];
sourceOrder?: boolean;
html5?: any;
width?: number;
height?: number;
defaultVolume?: number;
children?: string[];
loop?: boolean;
muted?: boolean;
controls?: boolean;
src?: string;
autoplay?: boolean;
preload?: string;
sources?: Source[];
apsectRatio?: string;
fluid?: boolean;
language?: string;
notSupportedMessage?: string;
}
interface Source {