我正在尝试使用“react-native-nodemediaclient”实现实时视频流功能。并面临android设备中的问题。它在ios中正常工作。
使用 ignite 样板管理项目架构时无法在 android 设备中打开相机。它在ios中正常工作。当我使用简单的 react-native 创建时,它适用于 android 和 ios。
"dependencies": {
"apisauce": "^0.14.2",
"format-json": "^1.0.3",
"identity-obj-proxy": "^3.0.0",
"lodash": "^4.17.11",
"prop-types": "^15.6.1",
"querystringify": "1.0.0",
"ramda": "^0.26.1",
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-animatable": "^1.3.0",
"react-native-config": "^0.10.0",
"react-native-extended-stylesheet": "^0.11.1",
"react-native-gesture-handler": "^1.0.9",
"react-native-nodemediaclient": "^0.1.2",
"react-native-permissions": "^1.1.1",
"react-native-vector-icons": "6.1.0",
"react-navigation": "^3.0.9",
"react-navigation-redux-helpers": "^2.0.6",
"react-redux": "^5.0.6",
"redux": "^4.0.0",
"redux-persist": "^5.10.0",
"redux-saga": "^0.16.0",
"reduxsauce": "0.7.0",
"seamless-immutable": "^7.1.4"
},
"devDependencies": {
"babel-core": "6.26.0",
"babel-eslint": "^10.0.1",
"babel-jest": "23.6.0",
"babel-plugin-ignite-ignore-reactotron": "^0.3.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react-native": "^3.0.2",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint": "^5.11.1",
"eslint-plugin-react": "^7.12.2",
"eslint-plugin-react-native": "^3.5.0",
"eslint-plugin-eslint-comments": "^3.0.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"ignite-animatable": "^1.0.2",
"ignite-ir-boilerplate-andross": "^2.4.1",
"ignite-redux-persist": "^1.1.2",
"ignite-standard": "^1.0.0",
"ignite-vector-icons": "^1.1.1",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.51.1",
"mockery": "^2.1.0",
"react-dom": ">=16.3.3",
"react-test-renderer": "16.6.3",
"reactotron-react-native": "^2.1.0",
"reactotron-redux": "^2.1.0",
"reactotron-redux-saga": "^2.1.0"
}