# ShareCanvas is not presenting any content until screen rotation

**URL:** <https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-until-screen-rotation/125201>\
**Category:** Android\
**Created:** [January 24, 2025, 8:30am UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-until-screen-rotation/125201 "2025-01-24T08:30:05Z")\
**Posts on this page:** 2\
**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:** [January 24, 2025, 8:30am UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-until-screen-rotation/125201/1 "2025-01-24T08:30:05Z")

</div>

**Description**  
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 Video SDK version?**  
2.1.0

**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:** [February 23, 2025, 6:30pm UTC](https://devforum.zoom.us/t/sharecanvas-is-not-presenting-any-content-until-screen-rotation/125201/2 "2025-02-23T18:30:12Z")

</div>

Closed on February 23, 2025, 6:30pm UTC

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