EricssonResearch / openwebrtc-android-sdk

SDK for adding OpenWebRTC to your Android app
BSD 2-Clause "Simplified" License
45 stars 29 forks source link

Is it possible to swith camera from front to back? #9

Closed onlyway closed 9 years ago

onlyway commented 9 years ago

I'm looking for solution how to switch camera from front to back. As I've noticed it is somwhere in the SDK

onlyway commented 9 years ago

Ok I've figuret out. It's simple. On native demo you can simple use: CameraSource.getInstance().selectSource(1); to switch camera. Only one thing you have to concern is to check if device has such number of cameras