我正在评估Tokbox对于具有视频流的支持应用程序的react-native。
基本视频流可以正常工作,但是视频的清晰度还不清楚。看来自动对焦无法正常工作。
我能够在@ https://github.com/opentok/opentok-react-native-samples/tree/master/BasicVideoChat
提供的示例应用程序上重现同样的问题我唯一要做的更改是添加应用程序设置,并将后置摄像头作为默认设置。 @ https://github.com/nitheeshskiploop/opentokBasicVideo
可用相同的代码我已经测试过使用 WhatsApp 和 Agora 拍摄视频,并且视频质量很好。
下面是我的package.json配置
{
"name": "BasicVideoChat",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"opentok-react-native": "^0.10.1",
"react": "16.8.3",
"react-native": "0.59.5",
"react-native-device-info": "^1.6.1"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/runtime": "^7.4.4",
"babel-jest": "^24.7.1",
"jest": "^24.7.1",
"metro-react-native-babel-preset": "^0.53.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
设备信息为
{
"app_name": "BasicVideoChat",
"build_number": 1,
"bundle_id": "com.basicvideochat",
"carrier": "AIRTEL",
"device_country": "US",
"device_id": "sdm660",
"device_locale": "en-US",
"font_scale": 0.8500000238418579,
"freedisk_storage": 9232261120,
"manufacturer": "Xiaomi",
"max_memory": 268435456,
"model": "Mi A2",
"readable_version": "1.0.1",
"serial_number": "unknown",
"system_name": "Android",
"system_version": "9",
"timezone": "Asia/Kolkata",
"storage_size": 3121049600,
"total_memory": 3921362944,
"user_agent": "Mozilla/5.0 (Linux; Android 9; Mi A2 Build/PKQ1.180904.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36",
"is24_hour": false,
"is_emulator": false,
"device_uid": "cc60682ee481ec0f"
}
来自Tokbox的图像
来自Agora的图片