# {"type": "OPERATION\_TIMEOUT"} error on startAudio in iOS Safari

**URL:** <https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077>\
**Category:** Web\
**Tags:** video-sdk, ios\
**Created:** [July 4, 2024, 1:51pm UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077 "2024-07-04T13:51:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arfa.ahmed](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arfa.ahmed/32/33501_2.png) [@arfa.ahmed](https://devforum.zoom.us/u/arfa.ahmed)\
**Post date:** [July 4, 2024, 1:51pm UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/1 "2024-07-04T13:51:23Z")

</div>

* * *

**Description**  
I am experiencing an issue with the Zoom Video Web SDK sample app code on iOS Safari. When attempting to start audio using the `startAudio` function with no any parameters, the operation gets stuck and eventually throws an error with the message: `{"type": "OPERATION_TIMEOUT"}`. This issue occurs intermittently and affects the ability to start audio reliably.

**Browser Console Error**  
{“type”: “OPERATION\_TIMEOUT”}

**Which Web Video SDK version?**  
1.11.6

**Video SDK Code Snippets**

```auto
const onMicrophoneClick = useCallback(async () => {
    if (isStartedAudio) {
      if (isMuted) {
        await mediaStream?.unmuteAudio();
      } else {
        await mediaStream?.muteAudio();
      }
    } else {
      try {
        await mediaStream?.startAudio();
      } catch (e: any) {
        if (e.type === 'INSUFFICIENT_PRIVILEGES' && e.reason === 'USER_FORBIDDEN_MICROPHONE') {
          setIsMicrophoneForbidden(true);
        }
       message.error(e?.reason || JSON.stringify(e));
      }
    }
  }, [mediaStream, isStartedAudio, isMuted]);

```

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Run [GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample](https://github.com/zoom/videosdk-web-sample/tree/master)
2. Join from iOS Safari
3. Press start mic button
4. Nothing will happen long time then error throws {“type”: “OPERATION\_TIMEOUT”}

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

- Device: iPhone SE
- OS: iOS 16.5
- Browser: Safari
- Browser Version 16.5

**Additional context**  
Issue may reproduce after internet disconnet and then reconnect

---

<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:** [July 8, 2024, 2:14am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/2 "2024-07-08T02:14:26Z")

</div>

Hey @arfa.ahmed

Thanks for your feedback.

Could you share the problematic Session IDs with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![arfa.ahmed](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arfa.ahmed/32/33501_2.png) [@arfa.ahmed](https://devforum.zoom.us/u/arfa.ahmed)\
**Post date:** [July 8, 2024, 7:26am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/3 "2024-07-08T07:26:58Z")

</div>

After upgrading to version 1.11.10, this issue no longer happens. Thanks.

---

<div class="post-metadata">

**Author:** ![michel.dang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michel.dang/32/50060_2.png) [@michel.dang](https://devforum.zoom.us/u/michel.dang)\
**Post date:** [August 7, 2024, 9:30am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/4 "2024-08-07T09:30:30Z")

</div>

Hi @vic.yang  
Now I still have this problem. Please help me check it

- Zoom: v1.11.10
- Safari: Version 17.2.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:** [August 7, 2024, 10:16am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/5 "2024-08-07T10:16:51Z")

</div>

Hey @michel.dang

Could you share the problematic Session IDs with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![michel.dang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michel.dang/32/50060_2.png) [@michel.dang](https://devforum.zoom.us/u/michel.dang)\
**Post date:** [August 7, 2024, 10:59am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/6 "2024-08-07T10:59:18Z")

</div>

SessionID: tLLNcLg1SJyVKrh0YbyQDQ==  
Issue occur first time when call. After that I call it start normally.  
It also happens every time refresh website.

Thanks

---

<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:** [August 7, 2024, 11:38am UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/7 "2024-08-07T11:38:21Z")

</div>

Hey @michel.dang

I want to confirm if you automatically call `stream.startAudio` right after joining the session.

If so, this is the browser privacy restriction that requires user interaction with the page before capturing and playing sound.

We also provide an `auto-play-audio-failed` event to notify you of this case.

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:** [September 7, 2024, 12:16pm UTC](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077/9 "2024-09-07T12:16:51Z")

</div>

Closed on September 7, 2024, 12:16pm UTC

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