我正在构建一个必须支持Android 4.2及更高版本的应用程序。 该应用程序播放来自HLS路径的视频。一切在Android 6.0(API 23)和更高版本上都可以正常运行,但是在较低版本上,我无法播放HLS。
通过Remote JS Debugging
的Debugger不显示任何错误。 您是否知道如何在适用于6.0或更早版本的Android上运行HLS或如何调试元素?
这是我的package.json:
{
"name": "testVideo4",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"android-linux": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android"
},
"dependencies": {
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-video": "^3.2.1",
"react-navigation": "^2.18.1",
"react-native-webview": "2.5.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}