From 6020f95e50f8a0dba028e527dbec378c9fd17aec Mon Sep 17 00:00:00 2001 From: Hugues Date: Tue, 25 Feb 2020 11:10:06 +0000 Subject: [PATCH] Add missing Typescripts types and options --- src/js/plyr.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/js/plyr.d.ts b/src/js/plyr.d.ts index cd204a6f..1ff7d51f 100644 --- a/src/js/plyr.d.ts +++ b/src/js/plyr.d.ts @@ -134,6 +134,21 @@ declare class Plyr { */ pip: boolean; + /** + * Gets or sets the aspect ratio for embedded players. + */ + ratio?: string; + + /** + * Returns the current video Provider + */ + readonly provider: 'html5' | 'vimeo' | 'youtube'; + + /** + * Returns the native API for Vimeo or Youtube players + */ + readonly embed?: any; + readonly fullscreen: Plyr.FullscreenControl; /** @@ -472,6 +487,16 @@ declare namespace Plyr { * enabled: Whether to enable vi.ai ads. publisherId: Your unique vi.ai publisher ID. */ ads?: AdOptions; + + /** + * Vimeo Player Options. + */ + vimeo?: object; + + /** + * Youtube Player Options. + */ + youtube?: object; } interface QualityOptions {