# Video not working on iOS Safari with Web SDK

**URL:** <https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222>\
**Category:** Web\
**Tags:** ios\
**Created:** [May 29, 2023, 5:00pm UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222 "2023-05-29T17:00:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![twalterguyon](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@twalterguyon](https://devforum.zoom.us/u/twalterguyon)\
**Post date:** [May 29, 2023, 5:00pm UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/1 "2023-05-29T17:00:30Z")

</div>

**Description**  
We have a Zoom integration in our React App using an iFrame, getting scripts from CDN, and using Client view.  
Everything works fine on Desktop browsers and Android, but on iOS Safari Video is not working (camera cannot be activated, and permission is never prompted).

**Which Web Meeting SDK version?**  
2.12.2

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

- Device: iPhone 6s
- OS: iOS 14.4.1

**Additional context**  
We get the following errors in console:

- Unhandled Promise Rejection: [object Event] (from zoom-meeting-2.12.2.min.js)
- Unhandled Promise Rejection: AbortError: The operation was aborted. (native code)
- Unhandled Promise Rejection: TypeError: self.crypto.randomUUID is not a function. (In ‘self.crypto.randomUUID()’, ‘self.crypto.randomUUID’ is undefined) (from zoom-meeting-2.12.2.min.js)
- Error when trying to check for local RTC peer connection: TypeError: n.addStream is not a function. (In ‘n.addStream(h)’, ‘n.addStream’ is undefined) (from /lib/av/1502\_js\_media.min.js)
- Error when trying to determine support for VP9 codec: TypeError: Type error (from /lib/av/1502\_js\_media.min.js)

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [May 29, 2023, 7:42pm UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/2 "2023-05-29T19:42:47Z")

</div>

you need **iOS/iPadOS/Safari 15.4** or newer for zoom in the browser

the javascript function “crypto.randomUUID” is not availble for iOS below

> **["crypto.randomUUID" | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=crypto.randomUUID)**
>
> "Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.

---

<div class="post-metadata">

**Author:** ![twalterguyon](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@twalterguyon](https://devforum.zoom.us/u/twalterguyon)\
**Post date:** [May 30, 2023, 4:00pm UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/3 "2023-05-30T16:00:55Z")

</div>

I’ve upgraded the device to iOS 15.7.6.

It’s still not working, we now have a permission prompt for using microphone and camera but then, nothing is displayed.  
It seems that the camera preview and join button are in the DOM but not visible on screen due to the size of the div #content\_container wich size is 1100px.  
We do not have this behavior anywhere else (Windows/Android/Mac), only on iPhone.

We also have those errors in console:

- Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. (native code)
- Unhandled Promise Rejection: [object Event] (from zoom-meeting-2.12.2.min.js)

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [May 30, 2023, 5:46pm UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/4 "2023-05-30T17:46:49Z")

</div>

but still - one step further (to the next error)

you should check if it’s a problem of the SDK or the complete zoom browser solution

try the zoom non SDK web version on [zoom.us](http://zoom.us)

invite link → Popup “Allow this site to open …” → Cancel → Join from your browser

if there is the same error - we can stop looking for the errors in the SDK

---

<div class="post-metadata">

**Author:** ![twalterguyon](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@twalterguyon](https://devforum.zoom.us/u/twalterguyon)\
**Post date:** [May 31, 2023, 9:27am UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/5 "2023-05-31T09:27:19Z")

</div>

On Desktop I have a link to join from browser, but not on iOS… And when I click on Start Meeting it says “Safari cannot open the page because the address is invalid.” (actual sentence is in french “Safari ne peut pas ouvrir la page car l’adresse n’est pas valide.”).

But I don’t think that is the actual issue.  
As I said, I think it’s an UX one, here is the DOM part that seems odd:

```auto
<div id="content_container" class="preview-video main-content" style="background-color: white; height: 212px; width: 1100px; display: flex; justify-content: center; align-items: center; overflow: hidden scroll;">
  <span></span>
  <div id="zmmtg-preview"></div>
  <div id="content">
    <span id="previewOptions" value="7"></span>
    <div class="mini-layout-body" style="margin: 50px auto auto; padding-bottom: 0px; justify-content: center; display: flex; color: rgb(34, 34, 48); font-size: 24px; font-weight: 700; cursor: default;">
      <div class="form-group">
        <div class="mini-layout-body-title">Aperçu vidéo</div>
      </div>
    </div>
    <div class="preview-video preview-video2 preview-mobile" style="width: 254px; height: 143px;">
      <!-- Preview video is here -->
    </div>
    <div class="mini-layout-body" style="margin: 50px auto auto; padding-bottom: 0px; justify-content: center; display: flex;">
      <!-- Join button is here -->
    </div>
  </div>
</div>

```

We can see that the div #content\_container has a width of 1100px, which make the preview video and join button appear on the right of the screen, thus not visible to the user.  
I don’t understand why the SDK compute this size so wide. I have this behavior only on iOS…

---

<div class="post-metadata">

**Author:** ![twalterguyon](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@twalterguyon](https://devforum.zoom.us/u/twalterguyon)\
**Post date:** [June 1, 2023, 10:03am UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/6 "2023-06-01T10:03:13Z")

</div>

Ok, so the width at 1100px comes from style injected by the SDK:

```auto
html, body 
{
	height:100%;
	width:100%;
	min-width:1100px;
	overflow:hidden;
	font-size:16px;
	padding:0;
	margin:0;
	font-family:"Open Sans";
	color:#4a4a4a
}

```

On other Windows or Android devices, there is the same style but `content_container` div size is well computed.  
I have no idea why it’s not the same behavior on iOS…

Any idea?

---

<div class="post-metadata">

**Author:** ![alickabrook1](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@alickabrook1](https://devforum.zoom.us/u/alickabrook1)\
**Post date:** [June 5, 2023, 12:56am UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/7 "2023-06-05T00:56:31Z")

</div>

> [@j.schoenemeyer](#):
>
> ["crypto.randomUUID" | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=crypto.randomUUID)

“Can I use” provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.

---

<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:** [July 5, 2023, 10:56am UTC](https://devforum.zoom.us/t/video-not-working-on-ios-safari-with-web-sdk/89222/8 "2023-07-05T10:56:56Z")

</div>

Closed on July 5, 2023, 10:56am UTC

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