@Override
				public void onError(int error, Camera camera) {
					// On some phones when trying to use the camera facing front the media server will die
					// Whether or not this callback may be called really depends on the phone
					if (error == Camera.CAMERA_ERROR_SERVER_DIED) {
						// In this case the application must release the camera and instantiate a new one
						Log.e(TAG,"Media server died !");
						// We don't know in what thread we are so stop needs to be synchronized
						mCameraOpenedManually = false;
						stop();
					} else {
						Log.e(TAG,"Error unknown with the camera: "+error);
					}	
				}
Opens the camera in a new Looper thread so that the preview callback is not called from the main thread
If an exception is thrown in this Looper thread, we bring it back into the main thread.
@throws RuntimeException Might happen if another app is already using the camera.
src/net/majorkernelpanic/streaming/video/VideoStream.java