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

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

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?

Thanks
Vic

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