# How to enable zoom option in camera

**URL:** <https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178>\
**Category:** Wowza Streaming Engine\
**Created:** [November 20, 2017, 12:05pm UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178 "2017-11-20T12:05:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvind\_medala](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@arvind\_medala](https://community.wowza.com/u/arvind_medala)\
**Post date:** [November 20, 2017, 12:05pm UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/1 "2017-11-20T12:05:37Z")

</div>

Missing title. Missing body.

---

<div class="post-metadata">

**Author:** ![arvind\_medala](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@arvind\_medala](https://community.wowza.com/u/arvind_medala)\
**Post date:** [November 20, 2017, 5:55pm UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/2 "2017-11-20T17:55:32Z")

</div>

i am using gocoder sdk in my app for live streaming.

but there is requirement of zooming camera, but not found option in wowza.

need help?

---

<div class="post-metadata">

**Author:** ![Harpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@Harpreet\_Singh](https://community.wowza.com/u/Harpreet_Singh)\
**Post date:** [November 21, 2017, 10:30am UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/3 "2017-11-21T10:30:53Z")

</div>

I have tried to create it as like below:- (It worked for me, hope the same for you as well)

```auto
protected void ZoomOut() {
    Log.e("Camera", "-- ZOOM OUT --");

    if (goCoderCameraView == null) return;

    if (currentZoomLevel > 0) {
        currentZoomLevel--;

        android.hardware.Camera.Parameters params = goCoderCameraView.getCamera().getPlatformDevice().getParameters();
        params.setZoom(currentZoomLevel);
        goCoderCameraView.getCamera().getPlatformDevice().setParameters(params);
    }
}	

```

---

<div class="post-metadata">

**Author:** ![Harpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@Harpreet\_Singh](https://community.wowza.com/u/Harpreet_Singh)\
**Post date:** [November 21, 2017, 11:44am UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/4 "2017-11-21T11:44:43Z")

</div>

```auto
// Add this line after you have initialised Wowza Services.

int currentZoomLevel = goCoderCameraView.getCamera().getPlatformDevice().getParameters().getZoom();

```

---

<div class="post-metadata">

**Author:** ![arvind\_medala](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@arvind\_medala](https://community.wowza.com/u/arvind_medala)\
**Post date:** [November 22, 2017, 6:39am UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/5 "2017-11-22T06:39:17Z")

</div>

thanks alot , worked for me

---

<div class="post-metadata">

**Author:** ![Lissa\_Martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@Lissa\_Martin](https://community.wowza.com/u/Lissa_Martin)\
**Post date:** [November 22, 2017, 6:57am UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/6 "2017-11-22T06:57:05Z")

</div>

Yes Harpreet Singh this is working thanks for sharing !!!

* * *

[Web Design San Jose](http://www.friscowebsoft.com/web-design-company/)

---

<div class="post-metadata">

**Author:** ![Guru\_Ji](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Guru\_Ji](https://community.wowza.com/u/Guru_Ji)\
**Post date:** [January 29, 2018, 4:19pm UTC](https://community.wowza.com/t/how-to-enable-zoom-option-in-camera/50178/7 "2018-01-29T16:19:45Z")

</div>

Thank for sharing this thread…

* * *

[Vashikaran Specialist in Madhya Pradesh](http://www.vashikaranspecialist.com/vashikaran-specialist-astrologer-in-madhya-pradesh)
