# Zoom and Flashlight Implementation

**URL:** <https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855>\
**Category:** Android\
**Created:** [July 15, 2020, 1:39pm UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855 "2020-07-15T13:39:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tangle](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@Tangle](https://react-native-webrtc.discourse.group/u/Tangle)\
**Post date:** [July 15, 2020, 1:39pm UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855/1 "2020-07-15T13:39:01Z")

</div>

Hi,

I am triying to create an app with the capabilities of turning on/off the flashlight and zooming.  
I see 2 different ways:

1- Implementing the applyConstraints() (which has the torch and zoom advanced options) and getCapabilities() in MediaStreamTrack.js  
2- Or maybe using the RN camera (from which I should be able to control the torch and zoom) along with webrtc, maybe following this [Live stream not working while using react-native-camera along with webRTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259)

Any trace or indication in how to perform or start with this would be highly appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![lino202](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/lino202/32/441_2.png) [@lino202](https://react-native-webrtc.discourse.group/u/lino202)\
**Post date:** [May 8, 2021, 7:29pm UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855/2 "2021-05-08T19:29:13Z")

</div>

I made a naive implementation of this some time ago.

See last commits in the fork I did

> **[lino202/react-native-webrtc](https://github.com/lino202/react-native-webrtc)**
>
> The WebRTC module for React Native. Contribute to lino202/react-native-webrtc development by creating an account on GitHub.

and a minimalist example for seeing the module working

> **[lino202/SimpleWebRtc](https://github.com/lino202/SimpleWebRtc)**
>
> This repository contains basic implementations for getting started with webrtc. Signaling server, android and web clients are available..

---

<div class="post-metadata">

**Author:** ![ahmetozalp](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/ahmetozalp/32/445_2.png) [@ahmetozalp](https://react-native-webrtc.discourse.group/u/ahmetozalp)\
**Post date:** [May 10, 2021, 11:03am UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855/3 "2021-05-10T11:03:31Z")

</div>

Will there be ios support?

---

<div class="post-metadata">

**Author:** ![lino202](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/lino202/32/441_2.png) [@lino202](https://react-native-webrtc.discourse.group/u/lino202)\
**Post date:** [May 19, 2021, 12:08am UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855/4 "2021-05-19T00:08:59Z")

</div>

I am so sorry but for now is not something I was thinking of doing. Feel free to collaborate if you want!

---

<div class="post-metadata">

**Author:** ![ahmetozalp](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/ahmetozalp/32/445_2.png) [@ahmetozalp](https://react-native-webrtc.discourse.group/u/ahmetozalp)\
**Post date:** [May 21, 2021, 12:30pm UTC](https://react-native-webrtc.discourse.group/t/zoom-and-flashlight-implementation/855/5 "2021-05-21T12:30:34Z")

</div>

send me email address?
