mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
youtube: Add alternative YT.Player constructor (#11844)
Add constructor from HTMLElement instead of id string.
This commit is contained in:
committed by
Mohamed Hegazy
parent
41202eb817
commit
67ac001d6c
Vendored
+1
@@ -83,6 +83,7 @@ declare namespace YT {
|
||||
export class Player {
|
||||
// Constructor
|
||||
constructor(id: string, playerOptions: PlayerOptions);
|
||||
constructor(element: HTMLElement, playerOptions: PlayerOptions);
|
||||
|
||||
// Queueing functions
|
||||
loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
|
||||
|
||||
Reference in New Issue
Block a user