Merge captions setText and setCue into updateCues (fixes #998 and vimeo cuechange event)

This commit is contained in:
Albin Larsson
2018-06-04 14:22:09 +02:00
parent 8e634862ff
commit b12eeb0eb7
4 changed files with 50 additions and 63 deletions

View File

@@ -895,7 +895,7 @@ class Plyr {
this.captions.language = language;
// Clear caption
captions.setText.call(this, null);
captions.updateCues.call(this, []);
// Update captions
captions.setLanguage.call(this);