Merge pull request #981 from friday/hls-captions

Improve captions handling for streaming
This commit is contained in:
Sam Potts
2018-05-30 21:44:42 +10:00
committed by GitHub
6 changed files with 55 additions and 78 deletions

View File

@@ -115,7 +115,10 @@ const defaults = {
// Captions settings
captions: {
active: false,
language: (navigator.language || navigator.userLanguage).split('-')[0],
language: 'auto',
// Listen to new tracks added after Plyr is initialized.
// This is needed for streaming captions, but may result in unselectable options
update: false,
},
// Fullscreen settings