Update stuff, fix jassub font issue

This commit is contained in:
2026-07-14 12:59:28 +02:00
parent 14dca7405e
commit a4d125738a
6 changed files with 620 additions and 247 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export interface VideoSrc {
mimeType?: string;
// header sends with xhr requests (especially useful for HLS)
// might not be available depending on browser/platform.
headers: Record<string, string>;
headers: Record<string, string | undefined>;
}
export interface Subtitle {
+1 -1
View File
@@ -108,7 +108,7 @@ export const OmniView = ({
hlsJs: {
xhrSetup: (xhr: XMLHttpRequest) => {
for (const [key, value] of Object.entries(headers)) {
xhr.setRequestHeader(key, value);
if (value) xhr.setRequestHeader(key, value);
}
},
},