aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/defaults.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2017-11-18 19:33:01 +1100
committerSam Potts <me@sampotts.me>2017-11-18 19:33:01 +1100
commit5a244b7fedf185842b04f817eb07f49ae589d4a6 (patch)
tree86bcff6d5b6f9843df0d4f1ad3da926569066662 /src/js/defaults.js
parent4dca4bf93c5cfcb8adb40b78528867de271b8361 (diff)
parent6984d6fb1606a71edd35ac043ac1116b6de8e98b (diff)
downloadplyr-5a244b7fedf185842b04f817eb07f49ae589d4a6.tar.lz
plyr-5a244b7fedf185842b04f817eb07f49ae589d4a6.tar.xz
plyr-5a244b7fedf185842b04f817eb07f49ae589d4a6.zip
Merge branch 'develop' of https://github.com/Selz/plyr into develop
# Conflicts: # dist/plyr.js # dist/plyr.js.map # src/js/controls.js
Diffstat (limited to 'src/js/defaults.js')
-rw-r--r--src/js/defaults.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/js/defaults.js b/src/js/defaults.js
index cf6bc344..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
@@ -203,7 +210,7 @@ const defaults = {
'exitfullscreen',
'captionsenabled',
'captionsdisabled',
- 'captionchange',
+ 'languagechange',
'controlshidden',
'controlsshown',
'ready',
@@ -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;