aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 36e446f0..cdd23927 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1132,7 +1132,7 @@
if (track.activeCues && track.activeCues.length > 0) {
_setActiveCueForTrack(track);
}
- }
+ }
} else {
// Caption tracks not natively supported
_log('TextTracks not supported so rendering captions manually');
@@ -2456,17 +2456,15 @@
}
// Select active caption
- function _setCaptionIndex(index){
-
- //save active caption
+ function _setCaptionIndex(index) {
+ // Save active caption
config.captions.selectedIndex = index;
- // clear caption
+ // Clear caption
_setCaption();
- // re-run setup
+ // Re-run setup
_setupCaptions();
-
}
// Check if media is loading