Skip to content
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

Camera cannot autofocus and cannot start surfaceView when the activity access in the second time #27

Open
hei1682004 opened this issue Mar 29, 2014 · 1 comment

Comments

@hei1682004
Copy link

Although I have added:
< uses-feature android:name="android.hardware.camera.autofocus" / >

The camera still cannot autofocus
how to fix it?

camera.getParameters().setFocusMode(android.hardware.Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
may have to be set but I do not know how to access the camera instance of libstreaming

Is it possible to control the parameter of camera myself?


In onDestory of activity,
super.onDestroy();
mClient.release();
mSession.release();
have been added.
And other coding almost exactly with example 3.

but when I get into this activity again,
the surface view does not show anything.
(I have checked and confirm that the onDestory is run when I get back to the previous activity)
what's wrong?

@hei1682004 hei1682004 changed the title Camera cannot autofocus Camera cannot autofocus and cannot start surfaceView when the activity access in the second time Mar 29, 2014
@ghost
Copy link

ghost commented Dec 22, 2015

Hi hei1682004,
Did you resolve this issue?
Even I am not able to set auto-focus, plz help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant