diff options
author | Sam Potts <sam@potts.es> | 2020-02-26 12:32:08 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 12:32:08 +1100 |
commit | 8a0086397f5eceb49df0ca080cda04bf70cc715a (patch) | |
tree | 7fda3387ef8f9101575e4ce77e63a39dc66bf0bb /src | |
parent | 75327f22429499979fdef86b8a764be9f41d92a7 (diff) | |
parent | 6020f95e50f8a0dba028e527dbec378c9fd17aec (diff) | |
download | plyr-8a0086397f5eceb49df0ca080cda04bf70cc715a.tar.lz plyr-8a0086397f5eceb49df0ca080cda04bf70cc715a.tar.xz plyr-8a0086397f5eceb49df0ca080cda04bf70cc715a.zip |
Merge pull request #1704 from hug963/add-missing-ts-types
Add missing Typescripts types and options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.d.ts | 25 |
1 files changed, 25 insertions, 0 deletions
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 { |