# setFocusMode doesn't work

**URL:** <https://community.wowza.com/t/setfocusmode-doesnt-work/51546>\
**Category:** Wowza GoCoder SDK\
**Tags:** media-players-and-devices\
**Created:** [June 27, 2018, 1:30pm UTC](https://community.wowza.com/t/setfocusmode-doesnt-work/51546 "2018-06-27T13:30:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Ortega](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Alejandro\_Ortega](https://community.wowza.com/u/Alejandro_Ortega)\
**Post date:** [June 27, 2018, 1:30pm UTC](https://community.wowza.com/t/setfocusmode-doesnt-work/51546/1 "2018-06-27T13:30:13Z")

</div>

I see the camera preview withouts problem and the streming works well.

But the camera autofocus doen’t work.

```auto
goCoderCameraView.getCamera().hasCapability(WZCamera.FOCUS_MODE_CONTINUOUS) --> Returns true!

```

```auto
WZCamera camara = goCoderCameraView.getCamera();

camara.getFocusMode(); --> returns 4 (off)

```

```auto
camara.setFocusMode(WZCamera.FOCUS_MODE_CONTINUOUS);

```

```auto
camara.getFocusMode(); --> still returns 4 (off)<br>

```

How can I enable focus ?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jhon\_miller](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jhon\_miller](https://community.wowza.com/u/jhon_miller)\
**Post date:** [July 5, 2018, 5:15pm UTC](https://community.wowza.com/t/setfocusmode-doesnt-work/51546/2 "2018-07-05T17:15:30Z")

</div>

Yes, I can use the facebook account. I have a clean master to protect my phone or Facebook account. And in this, I am posting many types of images. I also use the email account which is very best for me. If I want any help about the Email then I go to the link [https://chathelp.org/gmail-support/](https://chathelp.org/gmail-support/) which provides the best support.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Ortega](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Alejandro\_Ortega](https://community.wowza.com/u/Alejandro_Ortega)\
**Post date:** [July 6, 2018, 10:30am UTC](https://community.wowza.com/t/setfocusmode-doesnt-work/51546/3 "2018-07-06T10:30:14Z")

</div>

Thanks to Jason Tuchler.

I have follow his advice.

And following this example I have been able to enable auto focus.

[https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/blob/master/app/src/main/java/com/wowza/gocoder/sdk/sampleapp/ui/AutoFocusListener.java](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/blob/master/app/src/main/java/com/wowza/gocoder/sdk/sampleapp/ui/AutoFocusListener.java)
