# Can't render video on specific iphoneX (16.7.8) and ip12 (17.5.1)

**URL:** <https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118>\
**Category:** Web\
**Tags:** phone, video-sdk\
**Created:** [June 18, 2024, 7:57am UTC](https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118 "2024-06-18T07:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dunt/32/60077_2.png) [@dunt](https://devforum.zoom.us/u/dunt)\
**Post date:** [June 18, 2024, 7:57am UTC](https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118/1 "2024-06-18T07:57:00Z")

</div>

**Description**  
Can’t render video on iphoneX (16.7.8) and ip12 (17.5.1) using Canvas.

**Browser Console Error**  
**[Log] [VIDEO-SDK JS] renderGalleryVideo error: {“type”:“INVALID\_PARAMETERS”,“reason”:"You must use a video  
element to render self video for Chromium browser, Android browser without SharedArrayBuffer or iOS browser "}**

**Which Web Video SDK version?**

- 1.11.0  
**Video SDK Code Snippets**  
const canvasElement = document.getElementById(‘zoom\_gallery\_view’);  
await state.mediaStream.renderVideo(canvasElement, userId, width, height, x, y, quality);

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
1- create any meeting room. example chrome with name “Chrome name”  
2- join meeting by Iphone (specific iphoneX (16.7.8) and ip12 (17.5.1) device that used) with name IphoneX  
3- currently, host is Chrome name and participant is IphoneX  
4- on iphoneX, main screen is video of iphoneX and participant is Chrome name  
5- on IphoneX, click on participant(Chrome name) then pin video of chrome on main screen of IphoneX and iphoneX displayed in participant.  
6- video of chrome display successfully on main screen of IphoneX but IphoneX can’t display in participant layout

**we’re using renderVideo to rendering video for IphoneX but console displayed error like above.**  
**But we also tested on iphone 7(15.8.2), it works normally.**  
**This error just show on iphoneX (16.7.8) and ip12 (17.5.1).**

**other devices work normally (android mobile device, chrome, safari…)**

**Screenshots**  
IphoneX - get trouble

 ![Screenshot 2024-06-18 at 13.25.26](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/6/86fbab90bd6749c970116a02b839b69ddbcdfcd0.png)

Iphone7 - work normally

 ![Screenshot 2024-06-18 at 13.23.04](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/c/fcfe212a8d59964d42920290ea0d1ceded0c2f4a.png)

function from SDK that used

![Screenshot 2024-06-18 at 14.59.22](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/f/6f952d5567ffc7721f05b9f0f1b2ac00e5b37a72.png)

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

- Device: iphoneX (16.7.8) and ip12 (17.5.1)

Thanks  
DuNT

---

<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, 2:56am UTC](https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118/2 "2024-06-19T02:56:51Z")

</div>

Hey @dunt

Thanks for your feedback.

As the error message prompts, on higher versions of iOS, you need to use a **video element** to render the self-view.

In Video SDK Web, we provide the `stream.isRenderSelfViewWithVideoElement()` method to help you determine this case.

Alternatively, a simpler approach is to use **individual HTML elements** for rendering. This way, you don’t need to worry about choosing between canvas or video elements. You just need to call `stream.attachVideo` and then add the returned element to the appropriate DOM element.

> **[Video SDK - web - Video](https://developers.zoom.us/docs/video-sdk/web/video/#render-video)**
>
> 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:** ![dunt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dunt/32/60077_2.png) [@dunt](https://devforum.zoom.us/u/dunt)\
**Post date:** [June 19, 2024, 3:18am UTC](https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118/3 "2024-06-19T03:18:06Z")

</div>

Hi @vic.yang  
Thank for your reply.

---

<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 19, 2024, 1:18pm UTC](https://devforum.zoom.us/t/cant-render-video-on-specific-iphonex-16-7-8-and-ip12-17-5-1/112118/4 "2024-07-19T13:18:47Z")

</div>

Closed on July 19, 2024, 1:18pm UTC

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