vidply 1.0.25 → 1.0.26

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.
@@ -5085,6 +5085,12 @@
5085
5085
  }
5086
5086
  return [];
5087
5087
  }
5088
+ getCurrentQuality() {
5089
+ if (this.hls) {
5090
+ return this.hls.currentLevel;
5091
+ }
5092
+ return -1;
5093
+ }
5088
5094
  destroy() {
5089
5095
  if (this.hls) {
5090
5096
  this.hls.destroy();
@@ -8447,7 +8453,7 @@
8447
8453
  }
8448
8454
  /**
8449
8455
  * Detect language from HTML lang attribute
8450
- * @returns {string|null} Language code if available in translations, null otherwise
8456
+ * @returns {string|null} Language code if available in translations or as built-in, null otherwise
8451
8457
  */
8452
8458
  detectHtmlLanguage() {
8453
8459
  const htmlLang = document.documentElement.lang || document.documentElement.getAttribute("lang");
@@ -8458,6 +8464,9 @@
8458
8464
  if (i18n.translations[normalizedLang]) {
8459
8465
  return normalizedLang;
8460
8466
  }
8467
+ if (i18n.builtInLanguageLoaders && i18n.builtInLanguageLoaders[normalizedLang]) {
8468
+ return normalizedLang;
8469
+ }
8461
8470
  this.log('Language "'.concat(htmlLang, '" not available, using English as fallback'));
8462
8471
  return null;
8463
8472
  }