I want to switch Front/Back camera while having a live stream. How can this be accomplished?
I’m not sure if this is for iOS or Android SDK so I will provide both:
1. Here is the SDK class for Android for initial view:
2. You can see how to switch camera views here with the switchCamera method.
(See here on GitHub sample for switch camera)
3. For the UI:
mBtnSwitchCamera = (MultiStateButton) findViewById(R.id.ic_switch_camera);
And here is how you would change that in iOS SDK:
Please note that you will need to enable the switch camera method using “previewCamera”.
Here is the GitHub sample code for you. Please scroll through to see UI switch camera options as well in the code: