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.
- package/README.md +5 -0
- package/dist/dev/{vidply.HLSRenderer-PNP5OPES.js → vidply.HLSRenderer-X46P47LY.js} +7 -1
- package/dist/dev/{vidply.HLSRenderer-PNP5OPES.js.map → vidply.HLSRenderer-X46P47LY.js.map} +2 -2
- package/dist/dev/vidply.esm.js +5 -2
- package/dist/dev/vidply.esm.js.map +2 -2
- package/dist/legacy/vidply.js +10 -1
- package/dist/legacy/vidply.js.map +2 -2
- package/dist/legacy/vidply.min.js +1 -1
- package/dist/legacy/vidply.min.meta.json +5 -5
- package/dist/prod/{vidply.HLSRenderer-4PW35TCX.min.js → vidply.HLSRenderer-LDXSMWTI.min.js} +1 -1
- package/dist/prod/vidply.esm.min.js +1 -1
- package/dist/vidply.css +1 -1
- package/dist/vidply.esm.min.meta.json +8 -8
- package/dist/vidply.min.css +1 -1
- package/package.json +1 -1
- package/src/core/Player.js +7 -2
package/dist/legacy/vidply.js
CHANGED
|
@@ -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
|
}
|