@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 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 = `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grfzhl/vue-hls-player",
3
3
  "private": false,
4
- "version": "1.1.21",
4
+ "version": "1.1.22",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"