# Intermittent OPERATION\_TIMEOUT with stream.startAudio on iPhone in Zoom Video SDK

**URL:** <https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [June 19, 2024, 4:39am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177 "2024-06-19T04:39:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yusuke.yamashita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yusuke.yamashita/32/50754_2.png) [@yusuke.yamashita](https://devforum.zoom.us/u/yusuke.yamashita)\
**Post date:** [June 19, 2024, 4:39am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/1 "2024-06-19T04:39:16Z")

</div>

- To Submit a Ticket for Unexpected Video SDK Behavior:

I am developing a service using the Zoom Video SDK that involves video calls. When executing stream.startAudio from an iPhone, I occasionally encounter an OPERATION\_TIMEOUT error. This operation is triggered by a user clicking a button, and I have confirmed that the microphone permissions are granted before this process.

Additionally, after the OPERATION\_TIMEOUT occurs, there are rare cases where the “current-audio-change.{“action”:“join”,“type”:“computer”}” event is triggered about 2 to 3 minutes later, allowing audio to join. The “auto-play-audio-failed” event does not occur.

Could you please investigate the cause of this issue?

Below is a snippet of the code I am using.

```auto
const startAudio = useCallback(async () => {
    if (!stream) return
    if (isStartedRef.current) return

    setIsProcessing(true)
    return await stream
      .startAudio()
      .catch((e) => {
        handleError(e)
        throw e
      })
  }, [stream, handleError])

useEffect(() => {
    if (!client) return
    const handler = () => {
      console.error('failed auto-play')
    }
    client.on('auto-play-audio-failed', handler)
    return () => {
      client.off('auto-play-audio-failed', handler)
    }
  }, [client])

useEffect(() => {
    const handler = (payload: CurrentAudioChangePayloadType) => {
      console.log('current-audio-change.' + JSON.stringify(payload))
      const { action } = payload
      if (action === AudioChangeAction.Join) {
        setIsProcessing(false)
        setIsStared(true)
        isStartedRef.current = true
      } else if (action === AudioChangeAction.Leave) {
        setIsProcessing(false)
        setIsStared(false)
        isStartedRef.current = false
      } else if (action === AudioChangeAction.Muted) {
        setIsMute(true)
        localStorage.setItem(MIC_STATUS_KEY, 'true')
      } else if (action === AudioChangeAction.Unmuted) {
        setIsMute(false)
        localStorage.setItem(MIC_STATUS_KEY, 'false')
      }
    }
    client.on('current-audio-change', handler)
    return () => {
      client.off('current-audio-change', handler)
    }
  }, [client])

  useEffect(() => {
    const handler = (payload: any) => {
      console.log('device-permission-change' + JSON.stringify(payload))
    }
    client.on('device-permission-change', handler)
    return () => {
      client.off('device-permission-change', handler)
    }
  }, [client])

<button disabled={isAudioProcessing} onClick={startAudio}>
  start audio
 </button>

```

- For General & Integrations Related Guidance: [https://community.zoom.com/](https://community.zoom.com/)

* * *

### Format Your New Topic as Follows:

**Video SDK Type and Version**  
@zoom/videosdk: 1.11.6

**Error?**  
stream.startAudio()  
=\> OPERATION\_TIMEOUT

**Troubleshooting Routes**  
I am not sure if it is the same phenomenon, but after entering the session from the following site using the same device, I also received an OPERATION\_TIMEOUT notification at the bottom right. About a minute later, a popup appeared asking to use the camera, and I was able to join after granting permission.

> **[Zoom Video SDK UI toolkit](https://videosdk.dev/uitoolkit/)**

**How To Reproduce**

---

<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:** [June 19, 2024, 5:43am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/2 "2024-06-19T05:43:36Z")

</div>

Hey @yusuke.yamashita

Thanks for your feedback.

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

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![yusuke.yamashita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yusuke.yamashita/32/50754_2.png) [@yusuke.yamashita](https://devforum.zoom.us/u/yusuke.yamashita)\
**Post date:** [June 19, 2024, 6:28am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/3 "2024-06-19T06:28:17Z")

</div>

It happened again just now.  
WJUFVV8qQm+VCG9o9m4dMA==

User who encountered the error:  
iPhone 13 mini iOS 17.5.1  
Chrome

User who was also in the session:  
Apple M2 Pro, 16GB RAM  
Browser: Chrome 125.0.6422.78

Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![yusuke.yamashita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yusuke.yamashita/32/50754_2.png) [@yusuke.yamashita](https://devforum.zoom.us/u/yusuke.yamashita)\
**Post date:** [June 19, 2024, 6:30am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/4 "2024-06-19T06:30:02Z")

</div>

After the TIMEOUT occurred, about 2 minutes later, a prompt appeared asking for microphone permission. After granting permission, the audio was able to join.

---

<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:** [June 19, 2024, 8:02am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/5 "2024-06-19T08:02:06Z")

</div>

Hey @yusuke.yamashita

Thanks for sharing the session ID with us.

After analyzing the logs, we found that one of the media servers was unavailable. We have resolved this issue. Could you please try again?

We will continue to monitor the production servers to prevent similar issues from occurring in the future. We apologize for any inconvenience this has caused.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![yusuke.yamashita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yusuke.yamashita/32/50754_2.png) [@yusuke.yamashita](https://devforum.zoom.us/u/yusuke.yamashita)\
**Post date:** [June 19, 2024, 8:27am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/6 "2024-06-19T08:27:35Z")

</div>

Thank you for looking into this.  
I tried again, and it still seems to occur.  
The session ID is as follows:  
QiDUTh3EQce3svieIDb1Qw==

Does it take a long time to recover?

---

<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:** [June 19, 2024, 8:45am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/7 "2024-06-19T08:45:06Z")

</div>

Hey @yusuke.yamashita

Thanks for your feedback.

We have monitored that some issues still persist.

We will let you know as soon as possible once everything is resolved.

Thanks  
Vic

---

<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:** [June 19, 2024, 11:27am UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/8 "2024-06-19T11:27:55Z")

</div>

Hey @yusuke.yamashita

We fixed it now, could you try it again?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![yusuke.yamashita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yusuke.yamashita/32/50754_2.png) [@yusuke.yamashita](https://devforum.zoom.us/u/yusuke.yamashita)\
**Post date:** [June 19, 2024, 11:55pm UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/9 "2024-06-19T23:55:47Z")

</div>

I confirmed that the audio can join without any issues!  
Thank you for your assistance!!

---

<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:54pm UTC](https://devforum.zoom.us/t/intermittent-operation-timeout-with-stream-startaudio-on-iphone-in-zoom-video-sdk/112177/10 "2024-07-04T13:54:31Z")

</div>

@vic.yang this issue still happening with me, using video sdk web sdk version 1.11.6: [{"type": "OPERATION\_TIMEOUT"} error on startAudio in iOS Safari](https://devforum.zoom.us/t/type-operation-timeout-error-on-startaudio-in-ios-safari/113077)
