mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add getVideoData() + interfaces
This commit is contained in:
Vendored
+8
@@ -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