-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安卓主板无法同时打开两个摄像头预览 #75
Comments
这种场景我们还未测试,后续我们看下。 你那边有错误log输出么? |
@buliaoyin 这种场景是必现的,你们可以用安卓主板试试,这是我操作时候的日志: |
我们验证了下,SDK目前为了健壮性的考虑,暂不支持同时开启多个camera,后续我们会考虑改进这块的逻辑,保证健壮性的前提下支持多camera输出。 |
用的sdk版本:
compile 'com.ksyun.media:libksylive-java:2.4.2'
compile 'com.ksyun.media:libksylive-armv7a:2.4.2'
创建两个KSYStreamer对象mPusher1和mPusher2,并且分别设置了GLSurfaceView。
mPusher1.setCameraFacing(CameraCapture.FACING_FRONT),mPusher2.setCameraFacing(CameraCapture.FACING_BACK),
然后mPusher1.startCameraPreview()的时候显示第1个预览画面
再调用mPusher2.startCameraPreview()的时候显示第2个预览画面,但是第1个预览画面卡住了。
我直接用安卓原生的方法可以同时开启两个摄像头预览。
The text was updated successfully, but these errors were encountered: