# Android SDK zoom management

**URL:** https://community.wowza.com/t/android-sdk-zoom-management/54060
**Category:** Wowza GoCoder SDK
**Created:** [October 11, 2019, 2:53pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060 "2019-10-11T14:53:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DarthXander](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@DarthXander](https://community.wowza.com/u/DarthXander)
#### Post date: [October 11, 2019, 2:53pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060/1 "2019-10-11T14:53:39Z")

</div>

Hi.

I’m trying to manage the zoom in my android app but no zoom is displayed in the camera preview and goCoderCameraView.getCamera().getPlatformDevice().getParameters().getZoom(); is always 0.

Any tutorial for this?

Thanks

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [October 11, 2019, 10:31pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060/2 "2019-10-11T22:31:39Z")

</div>

Checking for you…

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [October 11, 2019, 11:15pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060/3 "2019-10-11T23:15:11Z")

</div>

Hi @DarthXander, I have confirmed that we do not yet support the Zoom function in the Android SDK and do not have an estimate on when we will. Sorry for any inconvenience.

---

<div class="post-metadata">

### Author: ![DarthXander](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@DarthXander](https://community.wowza.com/u/DarthXander)
#### Post date: [October 21, 2019, 3:37pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060/4 "2019-10-21T15:37:34Z")

</div>

About zoom management I implemented a solution with actual SDK.

I get my active camera using this code:

WOWZCamera[] cams = mySurfaceView.getCameras();

WOWZCamera activeCamera = null;

for (int camIndex = 0; camIndex \< cams.length; camIndex++) {

WOWZCamera cam = cams[camIndex]; if (cam.getStatus().isRunning()) activeCamera = cam;

}

and then I update the zoom value using this code

Camera.Parameters camParams = activeCamera.getPlatformDevice().getParameters(); camParams.setZoom(newZoom);

activeCamera.getPlatformDevice().setParameters(camParams);

This solution works ( activeCamera.getPlatformDevice().getParameters().setZoom( newZoom ) does not work).

The problem is that Camera.Parameters is deprecated so could you tell me if there is another way to obtain the same behavior using not deprecated classes?

Thanks

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [October 21, 2019, 4:10pm UTC](https://community.wowza.com/t/android-sdk-zoom-management/54060/5 "2019-10-21T16:10:58Z")

</div>

Thanks for sharing what you were able to accomplish with setting up zoom yourself @DarthXander.

I’m happy to check on an alternative for that deprecated Camera.Parameters. I’ll respond when I have the info from my SDK team so I appreciate your patience since this is not something we support- it may take time to get the answer in the next 24 hrs.
