diff options
author | Sam Potts <sam@potts.es> | 2020-02-09 21:53:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 21:53:24 +0000 |
commit | 8c44425665e4f1cd4fb3fa8593e960d5a518147b (patch) | |
tree | 7d7d3eb58ab402a204b5a81c3daead4fd695ade6 /src/js/config/defaults.js | |
parent | b2ac730572ad81aa9755e8b7852c53ceba0e8e9f (diff) | |
parent | 93e3f8946a0bcbca27912658d82930e4a5deb2b8 (diff) | |
download | plyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.tar.lz plyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.tar.xz plyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.zip |
Merge pull request #1679 from sampotts/develop
3.5.7
Diffstat (limited to 'src/js/config/defaults.js')
-rw-r--r-- | src/js/config/defaults.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/js/config/defaults.js b/src/js/config/defaults.js index c50a8900..289764e4 100644 --- a/src/js/config/defaults.js +++ b/src/js/config/defaults.js @@ -61,7 +61,7 @@ const defaults = { // Sprite (for icons) loadSprite: true, iconPrefix: 'plyr', - iconUrl: 'https://cdn.plyr.io/3.5.6/plyr.svg', + iconUrl: 'https://cdn.plyr.io/3.5.7-beta.0/plyr.svg', // Blank video (used to prevent errors on source change) blankVideo: 'https://cdn.plyr.io/static/blank.mp4', @@ -69,7 +69,10 @@ const defaults = { // Quality default quality: { default: 576, + // The options to display in the UI, if available for the source media options: [4320, 2880, 2160, 1440, 1080, 720, 576, 480, 360, 240], + forced: false, + onChange: null, }, // Set loops @@ -82,7 +85,8 @@ const defaults = { // Speed default and options to display speed: { selected: 1, - options: [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], + // The options to display in the UI, if available for the source media (e.g. Vimeo and YouTube only support 0.5x-4x) + options: [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 4], }, // Keyboard shortcut settings @@ -164,6 +168,7 @@ const defaults = { frameTitle: 'Player for {title}', captions: 'Captions', settings: 'Settings', + pip: 'PIP', menuBack: 'Go back to previous menu', speed: 'Speed', normal: 'Normal', |