# Audio and video options are not correctly passed when joining a session

**URL:** <https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100>\
**Category:** React Native\
**Created:** [November 10, 2021, 11:23pm UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100 "2021-11-10T23:23:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [November 10, 2021, 11:23pm UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/1 "2021-11-10T23:23:06Z")

</div>

Hi there!

I finally found time to try out your React Native SDK. The API is so similar to my own implementation that I was able to swap it out without any problems. \o/

Still, I’m having trouble with the boolean options of the joinSession call on iOS. After joining the session with these options, the audio is still muted.

```auto
audioOptions: {
  connect: true,
  mute: false,
},

```

Debugging the native code `audioOption.mute` is always `true`.

```auto
audioOption.mute = [audioOptionConfig valueForKey:@"mute"];

```

It seems that the values from the `NSDictionary` must be interpreted with `boolValue` first. Same for the video options, of course.

Cheers,  
Bernd

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 11, 2021, 11:59pm UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/2 "2021-11-11T23:59:04Z")

</div>

Hey @blindgaenger ,

Happy to hear you were able to get started easily! 🙂

As for the `mute` value, by default the value will be `true` so the user will be muted for privacy reasons, until they umute themselves.

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [November 12, 2021, 1:58am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/3 "2021-11-12T01:58:29Z")

</div>

Hi Tommy,

Thanks for your answer. The default is fine, but I can’t override it.

Sorry, I think I should have made it clearer that this is a bug report. So here it is with the correct template.

**Description**

In the React Native SDK, a `JoinSessionConfig` can be used to set whether or not a user is muted when joining a session. On iOS, these options are called the [SessionContext](https://marketplace.zoom.us/docs/sdk/video/macos/essential/create-join-session).

**Errors**

Setting the `mute` option has no effect and the audio will always remain muted after joining the session.

**Which React Native Video SDK version?**

NPM Package: @zoom1234/react-native-videosdk: 1.1.1  
iOS Framework: zoom-video-sdk-iOS-1.1.1

**Video SDK Code Snippets**

Joining a session from the React Native SDK (code from the official SDK example):

```
await zoom.joinSession({
  sessionName: params.sessionName,
  sessionPassword: params.sessionPassword,
  token: token,
  userName: params.displayName,
  audioOptions: {
    connect: true,
    mute: false, // ← should have an effect
  },
  videoOptions: {
    localVideoOn: true,
  },
});

```

**To Reproduce(If applicable)**

Steps to reproduce the behavior:

1. Use the official `react-native-zoom-video-sdk/example`
2. Change the audioOption to `mute: false` (which it already is).
3. Start the app.
4. Join a session.
5. The local user is muted.

**Screenshots**

Both screenshots from debugging in Xcode of the same debugging session with the config shown above.

The incoming NSDictionary `audioOptionConfig` shows the correct values.

 ![Screenshot 2021-11-12 at 02.47.41](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/7/77ca48340504012bacfbc633f573e5649f28eb8a.jpeg)

After retrieving the vales from the dictionary the `mute` value is still `true`.

 ![Screenshot 2021-11-12 at 02.48.25](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/1/e1bd93181601f6c15c7953d4bcebe984b22f5d77.jpeg)

**Smartphone (please complete the following information):**

- Device: iPhone XS Max
- OS: iOS 15.1

**Additional context**

Boolean values have to be interpreted with `boolValue` when retrieved from an NSDictionary. I’ve patched the code of my local Pod to use `boolValue` and it works as expected now.

```
audioOption.mute = [[audioOptionConfig valueForKey:@"mute"] boolValue];

```

The same must be applied to the other boolean options as well.

---

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [December 6, 2021, 10:53am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/4 "2021-12-06T10:53:34Z")

</div>

Hi @tommy, I just wanted to follow up before the topic is closed. Has the problem already been addressed or do you need more information?

Cheers,  
Bernd

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 8, 2021, 4:55pm UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/5 "2021-12-08T16:55:15Z")

</div>

Hey @blindgaenger ,

Thanks for the in-depth write up! We are taking a look at this issue and will share an update shortly. (ZOOM-330058)

We do apologize for the delayed response.

-Tommy

---

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [December 10, 2021, 7:34am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/6 "2021-12-10T07:34:18Z")

</div>

Hi @tommy. Nice! thanks for taking care of this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 10, 2021, 11:23pm UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/7 "2021-12-10T23:23:55Z")

</div>

Closed on December 10, 2021, 11:23pm UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 4, 2022, 5:13am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/8 "2022-01-04T05:13:15Z")

</div>

Hey @blindgaenger ,

We found the bug. This does not only apply to the “mute” option, but also impact other options as well. We will fix this in the next React Native Video SDK release. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 4, 2022, 5:13am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/9 "2022-01-04T05:13:20Z")

</div>

Opened on January 4, 2022, 5:13am UTC



---

<div class="post-metadata">

**Author:** ![NickM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickm/32/32147_2.png) [@NickM](https://devforum.zoom.us/u/NickM)\
**Post date:** [February 9, 2022, 2:23am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/10 "2022-02-09T02:23:05Z")

</div>

Hi Tommy, any update on when the next release will be? We are also experiencing this issue.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 10, 2022, 12:47am UTC](https://devforum.zoom.us/t/audio-and-video-options-are-not-correctly-passed-when-joining-a-session/60100/11 "2022-02-10T00:47:46Z")

</div>

Hi @NickM, thanks for using the dev forum.

The v1.2.0 release of the React Native wrapper will be available toward the end of this month. In case you weren’t already aware, the best places to stay up-to-date with new SDK releases are the #new-releases category and the [changelog](https://marketplace.zoom.us/docs/guides/stay-up-to-date/changelog/).

Thanks!
