# ShareCanvas is not presenting any content before screen rotation

**URL:** <https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334>\
**Category:** Android\
**Created:** [March 6, 2025, 2:01pm UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334 "2025-03-06T14:01:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbialkowski](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jbialkowski/32/64954_2.png) [@jbialkowski](https://devforum.zoom.us/u/jbialkowski)\
**Post date:** [March 6, 2025, 2:01pm UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334/1 "2025-03-06T14:01:31Z")

</div>

Hi team,

I have following code in our app that presents the share canvas from remote user:

```auto
internal fun ZoomScreenShareVideo(
    userId: String,
    onError: (Throwable) -> Unit,
    modifier: Modifier = Modifier
) {
    val isPreview = LocalInspectionMode.current
    if (isPreview) return

    val zoom = try {
        ZoomVideoSDK.getInstance()
    } catch (expected: Throwable) {
        onError(expected)
        return
    }
    val videoCanvas = zoom.findUser(userId)?.shareActionList?.firstOrNull()?.shareCanvas ?: return
    var subscribed by remember { mutableStateOf(false) }

    AndroidView(
        modifier = modifier,
        factory = { context ->
            ZoomVideoSDKVideoView(context).apply {
                setZOrderOnTop(false)
            }
        },
        update = { view ->
            if (!subscribed) {
                videoCanvas.subscribe(
                    view,
                    ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original,
                    ZoomVideoSDKVideoResolution.ZoomVideoSDKResolution_Auto
                )
                subscribed = true
            } else {
                videoCanvas.setAspectMode(
                    view,
                    ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original
                )
            }
        },
        onRelease = { view ->
            if (subscribed) {
                videoCanvas.unSubscribe(view)
            }
        }
    )
}

```

However after starting by remote user the screen sharing the share canvas is not displaying any content within `ZoomVideoSDKVideoView` . After rotating the phone the screen sharing starts to work.

**Which Android:**  
2.1.5

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

- Device: [e.g Motorola g52]
- OS: [e.g. Android 13]

---

<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:** [April 6, 2025, 12:02am UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334/2 "2025-04-06T00:02:14Z")

</div>

Closed on April 6, 2025, 12:02am UTC

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

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [April 7, 2025, 3:33pm UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334/3 "2025-04-07T15:33:25Z")

</div>

Hi @jbialkowski Apologies for the wait. I will take a look at this and reach out to our engineers for some guidance.

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [April 9, 2025, 2:36pm UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-before-screen-rotation/129334/4 "2025-04-09T14:36:10Z")

</div>

Hi @jbialkowski quick question: When rotating the screen, does screen sharing only work in landscape mode or does rotating the screen cause the screen share to work for both portrait and landscape? Also, if you stop and then reshare, does the screen share work from the start?
