Android多相机预览 [英] Android multiple camera preview
问题描述
是否可以同时将android摄像头预览广播到2个不同的SurfaceView控件中?我看过一些可以实时在不同预览中显示效果的应用程序,它们是如何实现的?我读了有关TextureView的文章,这是要使用的视图吗?在哪里可以找到多个同时进行相机预览的示例?
Is it possible to broadcast the android camera preview into 2 different SurfaceView controls at the same time? I have seen some apps that show effects into different previews in real-time, how do they achieve that? I read about the TextureView, is this the view to use? where can I find examples of multiple simultaneous camera previews?
谢谢
推荐答案
我不认为可以同时打开2个摄像机预览,因为摄像机被视为共享资源.但是,可以将多个SurfaceView吸引到您描述的应用程序中.
I don't think that it is possible to independently open 2 camera previews at the same time, as the camera is treated as a shared resource. However, it will be possible to draw to multiple SurfaceViews which is what the apps you describe do.
这篇关于Android多相机预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!