8

I know this question has been asked before but its been a long time. Asking this question again to gather any new hacks/thoughts/approaches.

I need to access both front and back camera simultaneously.

So far I have tried implementations using android camera API (Dual Camera- by Jens) and camera2 API. Both implementations work fine on devices having hardware support(Dual Image Signal Processors) for dual camera feature.I have tested and both implementations works fine on HTC one M8(Snapdragon 801) & Xiaomi Mi4(Snapdragon 801).

Both implementations fails on Samsung s6 even though it's hardware capable (Exynos 7420 has dual ISP). Also, the default camera app on S6 supports dual camera mode.

Any ideas/advice on this ?

Thanks in advance.

Update:18/11/2015 --> Tried using the Samsung Galaxy Camera SDK but still no luck.

vishnu narayanan
  • 3,813
  • 2
  • 24
  • 28
  • I like the idea, it's new. But what would be the real word application scenarios for this? Only thing coming to mind is Skype. – LilaQ Nov 10 '15 at 08:59
  • @LilaQ You never know for sure what all amazing experiences people will build. Some ideas randomly coming to mind are first person reporter scenarios, camera apps that work for all phones having dual ISP support not just for Samsung [link](http://www.rogers.com/cms/page-specific/wireless/samsung/s4/images/samsung-galaxy-s4-dual-camera.jpg). :) – vishnu narayanan Nov 10 '15 at 09:07

1 Answers1

3

I had to implement the exact same thing in a previous project. I know the struggle, and I know how much code you have to write to make this work. Especially with Google providing TWO camera apis (camera and camera2).

Even though I got it working on some devices (like HTC M8) which basically had two Image Signal Processor (necessary to access both cameras at the same time), I had trouble with the Samsung devices that had this feature implemented in their native camera application.

Then I turned around and found out that Samsung provides different special APIs for its "very special" OS. What that means, is that for every special feature that Samsung has (like the finger print sensor, the S-pen, and soooo on), they provide a API for the developers to work with.

I found the SCamera API on their site here . They also provide very good documentation and it is ok to implement.

The question you need to ask yourself: is it really worth it to integrate yet another camera API in your app to make this work on Samsung devices as well? Take in consideration that the proportion of Samsung devices is really high.

My advice? Try and implement it in a different project and see how that goes. If you get it to work in a decent amount of time and it's not very complicated, then integrate it in your main project.

I hope this helps you. Have a great day and good luck!

DDsix
  • 1,966
  • 1
  • 18
  • 23
  • 2
    Thanks for the answer :). I did try with galaxy camera sdk but got the same problem. I found the galaxy camera sdk to be a wrapper for the android camera2 api with some additional filters and stuff thrown over it. Also I couldn't find any documentation for the dual cam feature. Were you able to get dual cam working on Samsung devices with galaxy sdk ? – vishnu narayanan Nov 18 '15 at 10:48
  • Unfortunately, this answer, though thoughtful and well-written, does not address the actual question. Samsung has chosen to keep the dual-camera feature private. – Alex Cohn Jan 29 '16 at 14:54