public void switchCamera() throws RuntimeException, IOException {
		if (Camera.getNumberOfCameras() == 1) throw new IllegalStateException("Phone only has one camera !");
		boolean streaming = mStreaming;
		boolean previewing = mCamera!=null && mCameraOpenedManually; 
		mCameraId = (mCameraId == CameraInfo.CAMERA_FACING_BACK) ? CameraInfo.CAMERA_FACING_FRONT : CameraInfo.CAMERA_FACING_BACK; 
		setCamera(mCameraId);
		stopPreview();
		mFlashEnabled = false;
		if (previewing) startPreview();
		if (streaming) start(); 
	}
Switch between the front facing and the back facing camera of the phone. 
If {@link #startPreview()} has been called, the preview will be  briefly interrupted. 
If {@link #start()} has been called, the stream will be  briefly interrupted.
You should not call this method from the main thread if you are already streaming. 
@throws IOException 
@throws RuntimeException
src/net/majorkernelpanic/streaming/video/VideoStream.java