Good day.
Please clarify what do you trying to implement.
If you try to switch a camera from front to back and vice versa, please use publishStream.switchCamera() functions, see Media Device example source code on GitHub.
If you try to capture something not from media device (camera and microphone), this is not implemented in Android SDK. You can use WebSDK to capture HTML5 canvas element in Chrome browser.