aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/defaults.js12
-rw-r--r--src/js/plugins/youtube.js6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/js/defaults.js b/src/js/defaults.js
index b11aaf9d..64783aed 100644
--- a/src/js/defaults.js
+++ b/src/js/defaults.js
@@ -19,9 +19,15 @@ const defaults = {
volume: 1,
muted: false,
+ // Pass a custom duration
+ duration: null,
+
// Display the media duration
displayDuration: true,
+ // Aspect ratio (for embeds)
+ ratio: '16:9',
+
// Click video to play
clickToPlay: true,
@@ -42,12 +48,6 @@ const defaults = {
// Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
- // Pass a custom duration
- duration: null,
-
- // Aspect ratio (for embeds)
- ratio: '16:9',
-
// Quality default
quality: {
default: 'default',
diff --git a/src/js/plugins/youtube.js b/src/js/plugins/youtube.js
index ca0f2991..84d16488 100644
--- a/src/js/plugins/youtube.js
+++ b/src/js/plugins/youtube.js
@@ -75,9 +75,9 @@ const youtube = {
origin: window && window.location.hostname,
widget_referrer: window && window.location.href,
- // Captions is flaky on YouTube
- // cc_load_policy: (this.captions.active ? 1 : 0),
- // cc_lang_pref: 'en',
+ // Captions are flaky on YouTube
+ cc_load_policy: (this.captions.active ? 1 : 0),
+ cc_lang_pref: this.config.captions.language,
},
events: {
onError(event) {