Git Product home page Git Product logo

ananthrajsingh / front-rear-simultaneous-camera Goto Github PK

View Code? Open in Web Editor NEW
51.0 2.0 14.0 166 KB

Android application to preview both front and rear cameras simultaneously. The application uses Camera2 API to get previews from cameras.

Home Page: https://medium.com/better-programming/simultaneous-front-and-rear-camera-preview-in-android-using-camera2-api-d9f2eb9af6b5

License: Apache License 2.0

Kotlin 100.00%
android camera2-api simultaneous camera-preview kotlin

front-rear-simultaneous-camera's People

Contributors

ananthrajsingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

front-rear-simultaneous-camera's Issues

Hardware And Phone OS

I've tried your code and it worked well on my colleague's phone (xiaoMi 9 or higher level)
but it didn't work on my HuaWei Honour (Android 10)and I tried the solution you have offered in above issues. didn't work either

I've searched on the Internet and it shows this function depends on not only API level but phone hardware

Streched

Hi!
I have gone through your repo and it was working fine but the texture views are stretched and they change the view when rotating the mobile.
Can you please solve it out or help me out to solve it after that I will create a PR for as well.
Thanks.

Dual Camera not working on Google Pixel 3a or Google Pixel 4a

Able to work with single camera only.
Tried reordering the code but only one first camera is working.

Getting this error:
CameraService::connect call (PID -1 "com.ananth.frontrearcamera", camera ID 0) for HAL version default and Camera API version 2
05-07 16:39:24.201 E/CameraService( 1084): CameraService::connect X (PID 22604) rejected (existing client(s) with higher priority).

Getting this error on opening the second camera.

Hardware

What device did you use? I'm using Huawei mate 30 and only one camera preview works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.