mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Update stuff, fix jassub font issue
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user