# Using a CanvasCaptureMediaStreamTrack as a video source

**URL:** <https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [April 19, 2024, 8:14am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237 "2024-04-19T08:14:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/seand/32/58854_2.png) [@seand](https://devforum.zoom.us/u/seand)\
**Post date:** [April 19, 2024, 8:14am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/1 "2024-04-19T08:14:21Z")

</div>

**Description**  
We’re developing an application that renders some graphics to a canvas element with three.js. Ideally, we’d be able to share the contents of that canvas the same way as `stream.startShareScreen()`.

The HTMLCanvasElement has a [.captureStream()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream) method which returns a real-time video capture as a [CanvasCaptureMediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack).

In theory that’s no different than any other video source, but I’m not finding any documentation or examples online of this being implemented with the Zoom Video SDK.

Is this possible? If so, any suggestions on how to go about it? Thanks 🙂

**Which Web Video SDK version?**  
@zoom/videosdk@^1.10.8

---

<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:** [April 19, 2024, 8:42am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/2 "2024-04-19T08:42:46Z")

</div>

Hey @seand

Thanks for your feedback.

MediaStreamTrack as a video source feature is on the roadmap. Please stay tuned.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![seand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/seand/32/58854_2.png) [@seand](https://devforum.zoom.us/u/seand)\
**Post date:** [April 19, 2024, 9:08am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/3 "2024-04-19T09:08:04Z")

</div>

Hi Vic,

Thank you for your reply! (also for great answers across the dev forum)

For my project planning, is there a rough timeframe for that becoming available? Do you know of any workarounds in the meantime?

Thanks,  
Sean

---

<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:** [April 22, 2024, 1:57am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/4 "2024-04-22T01:57:20Z")

</div>

Hey @seand

We don’t have a precise timeline for the feature rollout yet. It may be completed within two months.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![seand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/seand/32/58854_2.png) [@seand](https://devforum.zoom.us/u/seand)\
**Post date:** [April 22, 2024, 7:44am UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/5 "2024-04-22T07:44:10Z")

</div>

Hi @vic.yang ,

I appreciate the follow-up. Looking forward to its roll-out! 🙂

Best,  
Sean

---

<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:** [May 22, 2024, 5:44pm UTC](https://devforum.zoom.us/t/using-a-canvascapturemediastreamtrack-as-a-video-source/108237/6 "2024-05-22T17:44:53Z")

</div>

Closed on May 22, 2024, 5:44pm UTC

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