Skip to content
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

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

Open
piyu2468 opened this issue Dec 8, 2021 · 1 comment

Comments

@piyu2468
Copy link

piyu2468 commented Dec 8, 2021

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 piyu2468 changed the title Telephoto and Ultra widelangle camera suddenly stop working view is freezes Telephoto and Ultra wide angle camera suddenly stop working view is freezes Dec 8, 2021
@Silence-GitHub
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants