-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samsung devices not focus #35
Comments
could you post your code and the system log? |
/**
* Inits the camera view
*/
private void initCamera() {
//creates the config for the camera
RxCameraConfig config = RxCameraConfigChooser.obtain().
useBackCamera().
setPreferPreviewSize(new Point(640, 480), true).
setAutoFocus(true).
setHandleSurfaceEvent(true).
get();
// opens the camera
RxCamera.open(getContext(), config).flatMap(new Func1<RxCamera, Observable<RxCamera>>() {
@Override public Observable<RxCamera> call(RxCamera rxCamera) {
return rxCamera.bindTexture(camTextureView);
}
}).flatMap(new Func1<RxCamera, Observable<RxCamera>>() {
@Override public Observable<RxCamera> call(RxCamera rxCamera) {
return rxCamera.startPreview();
}
}).observeOn(new UIThread().getScheduler()).subscribe(new Subscriber<RxCamera>() {
@Override public void onCompleted() {
}
@Override public void onError(Throwable e) {
}
@Override public void onNext(RxCamera rxCamera) {
rxCamera = rxCamera;
}
});
} |
In general seems that camera doesn't focus in any device and it's a problem |
your devices may not support FOCUS_MODE_AUTO, you can try to use |
@ragnraok users are complaining and the device is Samsung Galaxy S7. As you understand it's very difficult to not support FOCUS_MODE_AUTO such a device. |
Hi, have you try the focus mode |
I got the same issue on Nexus 5X, auto-focus doesn't work |
I can see that for a plenty of Samsung devices the camera cannot auto-focus for some reason.
The text was updated successfully, but these errors were encountered: