Using both cameras on android: “Fail to connect to camera service”

后端 未结 3 1029
野的像风
野的像风 2020-12-14 11:58

I\'m having troubles in accessing both (front and rear cameras at the same time). When turn on one camera it works. When i turn off first and turn on second it works. It g

3条回答
  •  遥遥无期
    2020-12-14 12:29

    I also wanted to do the same, but can't achieve it, its limitation of android os.

    You HAVE TO RELEASE the connected camera object to be accessed by another.

    The same problem is faced while accessing AudioRecord class, you just can't make an object of it until you release the first one.

提交回复
热议问题