# How can I show video frames of a session on window?

**URL:** <https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682>\
**Category:** Windows\
**Created:** [March 26, 2021, 12:16pm UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682 "2021-03-26T12:16:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlol91](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tlol91/32/24127_2.png) [@tlol91](https://devforum.zoom.us/u/tlol91)\
**Post date:** [March 26, 2021, 12:16pm UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682/1 "2021-03-26T12:16:57Z")

</div>

**Description**  
A clear and concise description of what the question is.

Hello, I’m using Windows Fully Customizable SDK. And I want to show video frames of a session on window. I already got success for ‘joinSession’ code. After create the session, I want to show it on the window by using window functions, such as ‘WNDCLASSES’, RegisterClassEx(&wndclass)’, ‘CreateWindow(…)’.

Please let me know about the flow of showing the video frames of the session on window.  
Thank you.

**Which Desktop Video SDK version?**  
Knowing the version can help us to identify your issue faster.

zoom-instant-sdk-windows-1.0.2

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

 ![2021-03-26 (4)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/a/dac720a3af9866bc57ab375ea9bc071429866ec6.png)  
 ![2021-03-26 (5)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/a/2a351b522adc841115a6e7610e17f9bbaa72dd7c.png)  
 ![2021-03-26 (6)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/6/76f4c89eb095898d0d42463905e088df7be4240c.png)

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

- Device: [e.g. Apple MacBook Pro (13-inch, M1)]
- OS: [e.g. macOS Big Sur 11.2.1]  
Window10

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 30, 2021, 5:50pm UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682/2 "2021-03-30T17:50:54Z")

</div>

Hey @tlol91,

Thanks for using the dev forum!

The SDK will provide the video stream as individual frames. To begin receiving frames for a specific user please follow the steps here: [https://marketplace.zoom.us/docs/sdk/video/windows/essential/render-video](https://marketplace.zoom.us/docs/sdk/video/windows/essential/render-video).  
When you start getting the frames from

```auto
onRawDataFrameReceived(YUVRawDataI420* data_)

```

You will need to render the YUV frames into your desired window handle. We suggest using a rendering library for this, as it can get quite tedious to do this yourself. Microsoft suggests using their library [DirectShow](https://docs.microsoft.com/en-us/windows/win32/directshow/working-with-video-frames)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tlol91](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tlol91/32/24127_2.png) [@tlol91](https://devforum.zoom.us/u/tlol91)\
**Post date:** [April 10, 2021, 2:42am UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682/3 "2021-04-10T02:42:09Z")

</div>

Thanks for your reply. I have one more question. Where do I need to call ‘onRawDataFrameReceived’?  
Now, I succeed to call ‘err = pPipe-\>subscribe(resolution, this)’.

 ![2021-04-10](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/4/94e3d84af027a4d3c4a16ecb30fdb8850adc10ef.png)

But I don’t know where and how to call ‘onRawDataFrameReceived’. Please let me know. Thank you.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 12, 2021, 9:08pm UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682/4 "2021-04-12T21:08:13Z")

</div>

Hey @tlol91,

onRawDataFrameReceived is a callback and will be called for you when a frame is received. You just need to implement the function and set the event to listen for it.

Thanks!  
Michael

---

<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 13, 2021, 7:08am UTC](https://devforum.zoom.us/t/how-can-i-show-video-frames-of-a-session-on-window/46682/5 "2021-05-13T07:08:19Z")

</div>

Closed on May 13, 2021, 7:08am UTC

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