mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-30 02:16:01 +08:00
Add getVideoData() + interfaces
This commit is contained in:
8
youtube/youtube.d.ts
vendored
8
youtube/youtube.d.ts
vendored
@@ -71,6 +71,13 @@ declare module YT {
|
||||
suggestedQuality?: string;
|
||||
}
|
||||
|
||||
export interface VideoData
|
||||
{
|
||||
video_id: string;
|
||||
author: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export class Player {
|
||||
// Constructor
|
||||
constructor(id: string, playerOptions: PlayerOptions);
|
||||
@@ -132,6 +139,7 @@ declare module YT {
|
||||
getDuration(): number;
|
||||
getVideoUrl(): string;
|
||||
getVideoEmbedCode(): string;
|
||||
getVideoData(): VideoData;
|
||||
|
||||
// Playlist
|
||||
getPlaylist(): any[];
|
||||
|
||||
Reference in New Issue
Block a user