Knowledgebase: QB Assistance
Switch the camera for video call (Android)
Posted by on 09 January 2014 10:32 AM

How can I switch the camera?

The camera can be switched during a video call. To implement this option use:

cameraView.switchCamera();

For example,locate "Switch" button over cameraView in xml file:

<Button
android:id="@+id/switchBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

And in java.file apply clickListener for created button:

switchCameraBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) { cameraView.switchCamera(); }
});

Now users can switch camera during the video call.

(4 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: