mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Merge pull request #4393 from EnableSoftware/youtube_api_updates
Add missing definitions for youtube.d.ts
This commit is contained in:
18
youtube/youtube.d.ts
vendored
18
youtube/youtube.d.ts
vendored
@@ -38,11 +38,11 @@ declare module YT {
|
||||
iv_load_policy?: number;
|
||||
list?: string;
|
||||
listType?: ListType;
|
||||
loop?;
|
||||
loop?: number;
|
||||
modestbranding?: number;
|
||||
origin?;
|
||||
origin?: string;
|
||||
playerpiid?: string;
|
||||
playlist?;
|
||||
playlist?: string[];
|
||||
rel?: number;
|
||||
showinfo?: number;
|
||||
start?: number;
|
||||
@@ -84,17 +84,17 @@ declare module YT {
|
||||
|
||||
// Queueing functions
|
||||
loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
|
||||
loadVideoById(VideoByIdParams): void;
|
||||
loadVideoById(VideoByIdParams: Object): void;
|
||||
cueVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
|
||||
cueVideoById(VideoByIdParams): void;
|
||||
cueVideoById(VideoByIdParams: Object): void;
|
||||
|
||||
loadVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
|
||||
loadVideoByUrl(VideoByUrlParams): void;
|
||||
loadVideoByUrl(VideoByUrlParams: Object): void;
|
||||
cueVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
|
||||
cueVideoByUrl(VideoByUrlParams): void;
|
||||
cueVideoByUrl(VideoByUrlParams: Object): void;
|
||||
|
||||
// Properties
|
||||
size;
|
||||
size: any;
|
||||
|
||||
// Playing
|
||||
playVideo(): void;
|
||||
@@ -156,4 +156,4 @@ declare module YT {
|
||||
PAUSED,
|
||||
PLAYING
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user