mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
Revert "Remove withCredentials from xhrSetup in hls.js"
This reverts commit 3a8e0394dc
.
This commit is contained in:
parent
76d2b7018c
commit
804077263c
@ -131,7 +131,10 @@ class HtmlAudioPlayer {
|
|||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
requireHlsPlayer(function () {
|
requireHlsPlayer(function () {
|
||||||
const hls = new Hls({
|
const hls = new Hls({
|
||||||
manifestLoadingTimeOut: 20000
|
manifestLoadingTimeOut: 20000,
|
||||||
|
xhrSetup: function (xhr, url) {
|
||||||
|
xhr.withCredentials = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
hls.loadSource(val);
|
hls.loadSource(val);
|
||||||
hls.attachMedia(elem);
|
hls.attachMedia(elem);
|
||||||
|
@ -398,7 +398,10 @@ function tryRemoveElement(elem) {
|
|||||||
const hls = new Hls({
|
const hls = new Hls({
|
||||||
manifestLoadingTimeOut: 20000,
|
manifestLoadingTimeOut: 20000,
|
||||||
maxBufferLength: maxBufferLength,
|
maxBufferLength: maxBufferLength,
|
||||||
maxMaxBufferLength: maxMaxBufferLength
|
maxMaxBufferLength: maxMaxBufferLength,
|
||||||
|
xhrSetup(xhr) {
|
||||||
|
xhr.withCredentials = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
hls.loadSource(url);
|
hls.loadSource(url);
|
||||||
hls.attachMedia(elem);
|
hls.attachMedia(elem);
|
||||||
|
Loading…
Reference in New Issue
Block a user