# Self-view video is not visible in IOS devices

**URL:** <https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [December 12, 2022, 10:50am UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145 "2022-12-12T10:50:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eswarsai305](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/eswarsai305/32/43586_2.png) [@eswarsai305](https://devforum.zoom.us/u/eswarsai305)\
**Post date:** [December 12, 2022, 10:50am UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145/1 "2022-12-12T10:50:24Z")

</div>

**Description**  
We are integrating Video SDK into our web application with React-js web platform.The self view video rendering is not visible on IOS Devices(safari browser).In android browsers self video rendering is working. Whenever two users join in the same session in safari browser user’s own streaming is not visible to them. Other users are able to see their streaming, we tried to fix this and did multiple tests in Safari browser it’s only showing black screen.

**Browser Console Error**  
{  
reason: “Received Canvas is Falsy” ​,  
type: “INVALID\_PARAMETERS”  
}

**Web Video SDK version**  
version : 1.5.1

**Video SDK Code Snippet**  
Here you can see the video rendering code

```auto
if (isAndroidBrowser() || (isSupportOffscreenCanvas() && !mediaStream?.isSupportMultipleVideos())) {
        const videoElement = document.querySelector(`#${SELF_VIDEO_ID}`) as HTMLVideoElement;

        if (videoElement) {
          await mediaStream?.startVideo({ hd: true, videoElement, cameraId: 'environment' });
        }
      } else {
        const startVideoOptions = { hd: true, cameraId: 'environment' };

        if (mediaStream?.isSupportVirtualBackground()) {
          Object.assign(startVideoOptions, { virtualBackground: { imageUrl: 'blur' } });
        }
        await mediaStream?.startVideo(startVideoOptions);
        if (!mediaStream?.isSupportMultipleVideos()) {
          try{
            const canvasElement = document.querySelector(`#${SELF_VIDEO_ID}`) as HTMLCanvasElement;
            await mediaStream?.renderVideo(canvasElement, zmClient.getSessionInfo().userId, 1280, 720, 0, 0, 3);
          } catch (error) {
            console.log(error);
          }
        }
      }

```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 20, 2022, 9:07pm UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145/2 "2022-12-20T21:07:49Z")

</div>

I pinged our team to see if there are any differences when using Safari that we should watch out for. Just to confirm, is this only with IOS devices, or are you seeing this with MacOS and iPadOS when using Safari as well?

---

<div class="post-metadata">

**Author:** ![eswarsai305](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/eswarsai305/32/43586_2.png) [@eswarsai305](https://devforum.zoom.us/u/eswarsai305)\
**Post date:** [December 21, 2022, 4:19am UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145/3 "2022-12-21T04:19:04Z")

</div>

Thaks for your reply @MaxM , we are facing this issue with IOS, MacOS and iPadOS devices when using Safari.In the MacOS, IOS when we test with chrome browser it’s working.

---

<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:** [December 22, 2022, 2:41am UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145/4 "2022-12-22T02:41:23Z")

</div>

Hey @eswarsai305

In your code snippet,

> if (!mediaStream?.isSupportMultipleVideos()) {  
> try{  
> _**const canvasElement = document.querySelector(`#${SELF_VIDEO_ID}`) as HTMLCanvasElement;**_  
> await mediaStream?.renderVideo(canvasElement, zmClient.getSessionInfo().userId, 1280, 720, 0, 0, 3);  
> } catch (error) {  
> console.log(error);  
> }  
> }

I saw you are using the same ID for the video element and canvas element, could you please check whether the element is a canvas element, the `renderVideo` requires a canvas element.

We will improve the verbose conditions for rendering videos in the next release. There will be an API to tell you when to use Video Element as the parameter explicitly.

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:** [January 21, 2023, 12:42pm UTC](https://devforum.zoom.us/t/self-view-video-is-not-visible-in-ios-devices/80145/5 "2023-01-21T12:42:20Z")

</div>

Closed on January 21, 2023, 12:42pm UTC

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