aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.d.ts')
-rw-r--r--src/js/plyr.d.ts32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/js/plyr.d.ts b/src/js/plyr.d.ts
index cd204a6f..3071f2ec 100644
--- a/src/js/plyr.d.ts
+++ b/src/js/plyr.d.ts
@@ -94,9 +94,8 @@ declare class Plyr {
/**
* Gets or sets the quality for the player. The setter accepts a value from the options specified in your config.
- * Remarks: YouTube only. HTML5 will follow.
*/
- quality: string;
+ quality: number;
/**
* Gets or sets the current loop state of the player.
@@ -134,6 +133,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,11 +486,21 @@ 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 {
- default: string;
- options: string[];
+ default: number;
+ options: number[];
}
interface LoopOptions {