Set front camera as default

While starting live stream i want to set front camera as default. Now the back camera is used. How can i change.

use

app:defaultCamera="front" in xml file or call goCoderCameraView.switchCamera() to switch camera run time