BBMetalImage icon indicating copy to clipboard operation
BBMetalImage copied to clipboard

Telephoto and Ultra wide angle camera suddenly stop working view is freezes

Open piyu2468 opened this issue 3 years ago • 1 comments

Hello i m using this library it's awesome but suddenly when i change Avacpture device type wideangel to telephoto BBMetal view is freeze earlier it's work properly please help to what is and issue and if you change and implement new settings which is required for above functionality please tell us Thanks

piyu2468 avatar Dec 08 '21 06:12 piyu2468

I don't have any device supporting telephoto camera. I tested builtInUltraWideCamera and it worked well.

Ensure your camera is running, call start() function after creating a new camera.

The problem may be cause by filter chain. If one of the image sources dose not transmit texture, the metal view freezes. For example, see the code below. The imageSource should transmit texture each time before or after camera transmitting. If the imageSource stops transmitting, the filter will not transmit texture, so the metalView freezes.

camera.add(consumer: filter)
imageSource.add(consumer: filter)
filter.add(consumer: metalView)

Silence-GitHub avatar Dec 09 '21 18:12 Silence-GitHub