mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
parent
6787ab82ff
commit
69eef12275
1 changed files with 12 additions and 8 deletions
|
@ -491,6 +491,9 @@ export default {
|
||||||
if (qualityConds) this.$player.configure("abr.enabled", false);
|
if (qualityConds) this.$player.configure("abr.enabled", false);
|
||||||
|
|
||||||
player.load(uri, 0, mime).then(() => {
|
player.load(uri, 0, mime).then(() => {
|
||||||
|
const isSafari = window.navigator?.vendor?.includes("Apple");
|
||||||
|
|
||||||
|
if (!isSafari) {
|
||||||
// Set the audio language
|
// Set the audio language
|
||||||
const prefLang = this.getPreferenceString("hl", "en").substr(0, 2);
|
const prefLang = this.getPreferenceString("hl", "en").substr(0, 2);
|
||||||
var lang = "en";
|
var lang = "en";
|
||||||
|
@ -501,6 +504,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.selectAudioLanguage(lang);
|
player.selectAudioLanguage(lang);
|
||||||
|
}
|
||||||
|
|
||||||
if (qualityConds) {
|
if (qualityConds) {
|
||||||
var leastDiff = Number.MAX_VALUE;
|
var leastDiff = Number.MAX_VALUE;
|
||||||
|
|
Loading…
Reference in a new issue