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
@@ -1,4 +1,4 @@
# react-native-omni
# omni
A library to have real players on android and web. It uses VLC on android and
videojs v10 on the web (ios not implemented yet, PR welcome)
+603 -228
View File
File diff suppressed because it is too large Load Diff
+14 -14
View File
@@ -57,26 +57,26 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@expo/config-plugins": "^10.0.2",
"@expo/config-plugins": "^57.0.3",
"@videojs/react": "10.0.0-beta.25",
"jassub": "^2.5.6",
"jassub": "^2.5.7",
"libpgs": "^0.8.1"
},
"devDependencies": {
"@biomejs/biome": "2.4.10",
"@types/jest": "^29.5.12",
"@types/react": "19.2.0",
"nitrogen": "0.35.3",
"react": "19.2.3",
"react-native": "0.84.1",
"react-native-builder-bob": "^0.40.18",
"react-native-nitro-modules": "0.35.3",
"typescript": "^5.8.3"
"@biomejs/biome": "2.5.3",
"@types/jest": "^30.0.0",
"@types/react": "19.2.17",
"nitrogen": "0.36.1",
"react": "19.2.7",
"react-native": "0.86.0",
"react-native-builder-bob": "^0.43.0",
"react-native-nitro-modules": "0.36.1",
"typescript": "^7.0.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "*"
"react": "19.2.7",
"react-native": "0.86.0",
"react-native-nitro-modules": "0.36.1"
},
"react-native-builder-bob": {
"source": "src",
+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);
}
},
},
-2
View File
@@ -12,8 +12,6 @@
"noEmit": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noStrictGenericChecks": false,
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,