fix: switch DASH delivery from data: URI to local MPD file via expo-file-system

data: URI scheme for DASH manifests is unreliable in ExoPlayer.
Write MPD XML to FileSystem.cacheDirectory/bili_dash.mpd and pass
file:// URI to react-native-video instead. URL resolution is now
async via useEffect+state in NativeVideoPlayer.
This commit is contained in:
Developer
2026-03-10 20:16:01 +08:00
parent 911eeb9052
commit 35371cebff
4 changed files with 41 additions and 26 deletions

21
package-lock.json generated
View File

@@ -14,6 +14,7 @@
"expo": "~55.0.5",
"expo-av": "^16.0.8",
"expo-dev-client": "~55.0.11",
"expo-file-system": "~55.0.10",
"expo-linear-gradient": "~55.0.8",
"expo-router": "~55.0.4",
"expo-status-bar": "~55.0.4",
@@ -4397,6 +4398,16 @@
"expo": "*"
}
},
"node_modules/expo-file-system": {
"version": "55.0.10",
"resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-55.0.10.tgz",
"integrity": "sha512-ysFdVdUgtfj2ApY0Cn+pBg+yK4xp+SNwcaH8j2B91JJQ4OXJmnyCSmrNZYz7J4mdYVuv2GzxIP+N/IGlHQG3Yw==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
"react-native": "*"
}
},
"node_modules/expo-font": {
"version": "55.0.4",
"resolved": "https://registry.npmjs.org/expo-font/-/expo-font-55.0.4.tgz",
@@ -4974,16 +4985,6 @@
"react-native": "*"
}
},
"node_modules/expo/node_modules/expo-file-system": {
"version": "55.0.10",
"resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-55.0.10.tgz",
"integrity": "sha512-ysFdVdUgtfj2ApY0Cn+pBg+yK4xp+SNwcaH8j2B91JJQ4OXJmnyCSmrNZYz7J4mdYVuv2GzxIP+N/IGlHQG3Yw==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
"react-native": "*"
}
},
"node_modules/expo/node_modules/expo-keep-awake": {
"version": "55.0.4",
"resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-55.0.4.tgz",