diff options
Diffstat (limited to 'src/js/config/defaults.js')
-rw-r--r-- | src/js/config/defaults.js | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/js/config/defaults.js b/src/js/config/defaults.js index a3859638..c50a8900 100644 --- a/src/js/config/defaults.js +++ b/src/js/config/defaults.js @@ -42,8 +42,9 @@ const defaults = { // Clicking the currentTime inverts it's value to show time left rather than elapsed toggleInvert: true, - // Aspect ratio (for embeds) - ratio: '16:9', + // Force an aspect ratio + // The format must be `'w:h'` (e.g. `'16:9'`) + ratio: null, // Click video container to play/pause clickToPlay: true, @@ -60,7 +61,7 @@ const defaults = { // Sprite (for icons) loadSprite: true, iconPrefix: 'plyr', - iconUrl: 'https://cdn.plyr.io/3.5.0-beta.5/plyr.svg', + iconUrl: 'https://cdn.plyr.io/3.5.6/plyr.svg', // Blank video (used to prevent errors on source change) blankVideo: 'https://cdn.plyr.io/static/blank.mp4', @@ -127,6 +128,7 @@ const defaults = { // 'fast-forward', 'progress', 'current-time', + // 'duration', 'mute', 'volume', 'captions', @@ -194,8 +196,7 @@ const defaults = { }, youtube: { sdk: 'https://www.youtube.com/iframe_api', - api: - 'https://www.googleapis.com/youtube/v3/videos?id={0}&key={1}&fields=items(snippet(title))&part=snippet', + api: 'https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}', }, googleIMA: { sdk: 'https://imasdk.googleapis.com/js/sdkloader/ima3.js', @@ -319,9 +320,6 @@ const defaults = { progress: '.plyr__progress', captions: '.plyr__captions', caption: '.plyr__caption', - menu: { - quality: '.js-plyr__menu__list--quality', - }, }, // Class hooks added to the player in different states @@ -330,6 +328,7 @@ const defaults = { provider: 'plyr--{0}', video: 'plyr__video-wrapper', embed: 'plyr__video-embed', + videoFixedRatio: 'plyr__video-wrapper--fixed-ratio', embedContainer: 'plyr__video-embed__container', poster: 'plyr__poster', posterEnabled: 'plyr__poster-enabled', @@ -394,11 +393,6 @@ const defaults = { }, }, - // API keys - keys: { - google: null, - }, - // Advertisements plugin // Register for an account here: http://vi.ai/publisher-video-monetization/?aid=plyrio ads: { |