@grfzhl/vue-hls-player 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/VideoPlayer/BasePlayer.vue +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -207,6 +207,8 @@ At the moment the following attribute are supported:
|
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
### Last release:
|
|
210
|
+
v1.1.22
|
|
211
|
+
- Only show language selection if subtitles or audio options are > 1
|
|
210
212
|
v1.1.21
|
|
211
213
|
- Added more tolerant processing for .txt transcripts to allow empty lines as narrators
|
|
212
214
|
v1.1.20
|
|
@@ -662,7 +662,8 @@ function initVideo() {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
// --- Amazon Prime Style Language Switcher ---
|
|
665
|
-
if (controlBar && !controlBar.querySelector('.lang-switcher')
|
|
665
|
+
if (controlBar && !controlBar.querySelector('.lang-switcher')
|
|
666
|
+
&& (props.multiLangSources.length > 1 || props.subtitles.length > 1)) {
|
|
666
667
|
const langDiv = document.createElement('div');
|
|
667
668
|
langDiv.className = 'lang-switcher';
|
|
668
669
|
langDiv.innerHTML = `
|