diff options
author | Sam Potts <sam@potts.es> | 2017-11-18 19:30:26 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2017-11-18 19:30:26 +1100 |
commit | 6984d6fb1606a71edd35ac043ac1116b6de8e98b (patch) | |
tree | 1dc18a90bb2870b3c4665e40a3dcaeb75f3bb831 /src/js/defaults.js | |
parent | d7a1c4428138d2dd5af09e41e998d1e08dafe76e (diff) | |
download | plyr-6984d6fb1606a71edd35ac043ac1116b6de8e98b.tar.lz plyr-6984d6fb1606a71edd35ac043ac1116b6de8e98b.tar.xz plyr-6984d6fb1606a71edd35ac043ac1116b6de8e98b.zip |
Controls cleanup, work on captions bug, click to invert time
Diffstat (limited to 'src/js/defaults.js')
-rw-r--r-- | src/js/defaults.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/js/defaults.js b/src/js/defaults.js index 14c7204d..c9a81842 100644 --- a/src/js/defaults.js +++ b/src/js/defaults.js @@ -22,13 +22,20 @@ const defaults = { // Pass a custom duration duration: null, - // Display the media duration + // Display the media duration on load in the current time position + // If you have opted to display both duration and currentTime, this is ignored displayDuration: true, + // Invert the current time to be a countdown + invertTime: true, + + // Clicking the currentTime inverts it's value to show time left rather than elapsed + toggleInvert: true, + // Aspect ratio (for embeds) ratio: '16:9', - // Click video to play + // Click video container to play/pause clickToPlay: true, // Auto hide the controls @@ -276,6 +283,7 @@ const defaults = { isIos: 'plyr--is-ios', isTouch: 'plyr--is-touch', uiSupported: 'plyr--full-ui', + noTransition: 'plyr--no-transition', menu: { value: 'plyr__menu__value', badge: 'plyr__badge', @@ -298,6 +306,11 @@ const defaults = { }, tabFocus: 'plyr__tab-focus', }, + + // API keys + keys: { + google: null, + }, }; export default defaults; |