aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/config/defaults.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-17 01:34:11 +1000
committerGitHub <noreply@github.com>2018-06-17 01:34:11 +1000
commit3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42 (patch)
tree90075d3343777a67dc78fcec4c295b140961788e /src/js/config/defaults.js
parentd4abb4b1438cb316aacae480e7b7e9b055a60b24 (diff)
parent599883e684cf72a631ea366d0cb821fcb1c3d013 (diff)
downloadplyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.lz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.xz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.zip
Merge pull request #1041 from sampotts/a11y-improvements
A11y improvements
Diffstat (limited to 'src/js/config/defaults.js')
-rw-r--r--src/js/config/defaults.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/js/config/defaults.js b/src/js/config/defaults.js
index 0e07b75c..1e90a4f0 100644
--- a/src/js/config/defaults.js
+++ b/src/js/config/defaults.js
@@ -18,6 +18,10 @@ const defaults = {
// Only allow one media playing at once (vimeo only)
autopause: true,
+ // Allow inline playback on iOS (this effects YouTube/Vimeo - HTML5 requires the attribute present)
+ // TODO: Remove iosNative fullscreen option in favour of this (logic needs work)
+ playsinline: true,
+
// Default time to skip when rewind/fast forward
seekTime: 10,
@@ -153,6 +157,7 @@ const defaults = {
pause: 'Pause',
fastForward: 'Forward {seektime}s',
seek: 'Seek',
+ seekLabel: '{currentTime} of {duration}',
played: 'Played',
buffered: 'Buffered',
currentTime: 'Current time',
@@ -167,6 +172,7 @@ const defaults = {
frameTitle: 'Player for {title}',
captions: 'Captions',
settings: 'Settings',
+ menuBack: 'Go back to previous menu',
speed: 'Speed',
normal: 'Normal',
quality: 'Quality',
@@ -334,6 +340,7 @@ const defaults = {
posterEnabled: 'plyr__poster-enabled',
ads: 'plyr__ads',
control: 'plyr__control',
+ controlPressed: 'plyr__control--pressed',
playing: 'plyr--playing',
paused: 'plyr--paused',
stopped: 'plyr--stopped',