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

Add support for custom camera engines #1069

Closed
ObsidianX opened this issue Mar 16, 2021 · 2 comments
Closed

Add support for custom camera engines #1069

ObsidianX opened this issue Mar 16, 2021 · 2 comments

Comments

@ObsidianX
Copy link
Contributor

Problem to be addressed

Allow apps to supply their own CameraEngine implementations to support alternative camera sources such as USB cameras, videos, streaming sources, etc.

Describe the solution you'd like

Add an API to provide a custom CameraEngine implementation.

Additional context

@natario1
Copy link
Owner

This has always been possible, just through a different mechanism - you subclass CameraView and override instantiateCameraEngine. You'll get the callbacks as well. Is there anything else that you'd need?

Direct API is easier, but it's like me and you using it, I prefer that an advanced use case like this has an advanced implementation path as well, since using CameraEngine requires familiarity with the source code.

@ObsidianX
Copy link
Contributor Author

Ah gotcha, that should work just fine. Thanks!

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