# ZOOM Video SDK. Audio is not working on mozilla and Safari

**URL:** <https://devforum.zoom.us/t/zoom-video-sdk-audio-is-not-working-on-mozilla-and-safari/100219>\
**Category:** Web\
**Created:** [December 15, 2023, 8:02am UTC](https://devforum.zoom.us/t/zoom-video-sdk-audio-is-not-working-on-mozilla-and-safari/100219 "2023-12-15T08:02:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gireesh.ks](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gireesh.ks/32/48293_2.png) [@gireesh.ks](https://devforum.zoom.us/u/gireesh.ks)\
**Post date:** [December 15, 2023, 8:02am UTC](https://devforum.zoom.us/t/zoom-video-sdk-audio-is-not-working-on-mozilla-and-safari/100219/1 "2023-12-15T08:02:00Z")

</div>

**Description**  
Integrated zoom video sdk in our project and it is working fine in chrome and edge. But audio is not working safari and Mozilla. Participants unable to hear each other.

**Browser Console Error**  
Nothing

**Which Web Video SDK version?**  
1.10.0

**Video SDK Code Snippets**

> if(stream.isRenderSelfViewWithVideoElement()) {  
> stream.startVideo({ videoElement: document.querySelector(‘#self-view-video’) }).then(() =\> {  
> if(!(typeof MediaStreamTrackProcessor === ‘function’)) {  
> stream.renderVideo(document.querySelector(‘#self-view-canvas’), client.getCurrentUserInfo().userId, 230, 190, 0, 0, 3)  
> document.querySelector(‘#self-view-canvas’).style.display = ‘none’  
> }else {  
> stream.renderVideo(document.querySelector(‘#self-view-canvas’), client.getCurrentUserInfo().userId, 230, 190, 0, 0, 3)  
> document.querySelector(‘#self-view-canvas’).style.display=“none”;  
> stream.unmuteAudio(client.getCurrentUserInfo().userId)  
> stream.startAudio();  
> }  
> })  
> } else {  
> stream.startVideo({ mirrored: true, hd: true }).then(() =\> {  
> stream.renderVideo(document.querySelector(‘#self-view-canvas’), client.getCurrentUserInfo().userId, 1920, 1080, 0, 0, 3).then(() =\> {  
> document.querySelector(‘#self-view-canvas’).style.display = ‘block’  
> document.querySelector(‘#self-view-video’).style.display = ‘none’  
> }).catch((error) =\> {  
> console.log(error)  
> })  
> }).catch((error) =\> {  
> console.log(error)  
> })  
> startAudio();  
> }
> 
> function startAudio() {  
> console.log(“startAudio…”)  
> var isSafari = window.safari !== undefined  
> var isFirefox = navigator.userAgent.toLowerCase().indexOf(‘firefox’) \> -1;  
> if(isSafari || isFirefox) {  
> console.log(‘desktop safari’,audioDecode , audioEncode)  
> if(audioDecode && audioEncode){  
> mediaStream.startAudio()  
> } else {  
> console.log(‘desktop safari audio init has not finished’)  
> }  
> } else {  
> console.log(‘not desktop safari’)  
> mediaStream.startAudio()  
> }  
> }

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

- Device: iMac
- OS: MacOS 14.1.2
- Browser: Safari, Mozilla firefox
- Browser Version 17.1.2, 103.0.1

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [December 15, 2023, 8:56am UTC](https://devforum.zoom.us/t/zoom-video-sdk-audio-is-not-working-on-mozilla-and-safari/100219/2 "2023-12-15T08:56:29Z")

</div>

Hey @gireesh.ks

Thanks for your feedback.

In the code snippet, I noticed that on the Safari and Firefox platforms, you check the conditions `audioDecode && audioEncode`. Could you please check if both variables have a value of `true` when calling startAudio?

Alternatively, could you integrate our client-side telemetry to report logs?

> **[Video SDK - web - Service quality](https://developers.zoom.us/docs/video-sdk/web/quality/#report-issues-to-zoom)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<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:** [January 14, 2024, 6:56pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-audio-is-not-working-on-mozilla-and-safari/100219/3 "2024-01-14T18:56:52Z")

</div>

Closed on January 14, 2024, 6:56pm UTC

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