# Where can I put sendFrameData()?

**URL:** <https://devforum.zoom.us/t/where-can-i-put-sendframedata/81493>\
**Category:** Windows\
**Tags:** video-sdk\
**Created:** [January 16, 2023, 5:13am UTC](https://devforum.zoom.us/t/where-can-i-put-sendframedata/81493 "2023-01-16T05:13:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinhpx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vinhpx/32/44557_2.png) [@vinhpx](https://devforum.zoom.us/u/vinhpx)\
**Post date:** [January 16, 2023, 5:13am UTC](https://devforum.zoom.us/t/where-can-i-put-sendframedata/81493/1 "2023-01-16T05:13:16Z")

</div>

**Description**  
I’m trying render custom data by using sendFrameData() function, but I can’t see anything on my screen.

**Windows Video SDK version:**

- SDK Version 1.6.0 (11267)

**Detail**  
When I call it in OnInitialize method:

```plaintext
UINT send_raw_data(LPVOID pParam)
{
	CustomVideoSource* pDemoDlg = (CustomVideoSource*)pParam;
	if (!pDemoDlg) return 0;
	IZoomVideoSDKVideoSender* sender = pDemoDlg->m_pSender;
        // mockup Y420 buffer -> Is right or not?
	vector<char> rawData(640 * 480 * 3 / 2, 0);

	while (1)
	{
		sender->sendVideoFrame(rawData.data(), 640, 480, 640 * 480 * 3 / 2, 0);
		Sleep(35);
	}

	return 0;
}
void CustomVideoSource::onInitialize(IZoomVideoSDKVideoSender* sender, IVideoSDKVector<VideoSourceCapability >* support_cap_list, VideoSourceCapability& suggest_cap) {
	// sender->sendVideoFrame()
	if (!sender) return;
	m_pSender = sender;
	//capability
	if (!support_cap_list) return;
	TCHAR szDbg[512] = { 0 };
	unsigned int nCount = support_cap_list->GetCount();

	for (int i = 0; i < nCount; i++)
	{
		VideoSourceCapability cap_ = support_cap_list->GetItem(i);
		wsprintf(szDbg, _T("onInitialize cap index:%d: frame=%d, Height=%d, width=%d \r\n"), i, cap_.frame, cap_.height, cap_.width);
		OutputDebugString(szDbg);
	}
// Can I call send_raw_data() here?
	send_raw_data(this);
}

```

**Device:**

- Device: Lenovo Aero laptop
- OS: Windows 10 22H2

How can I fix this problems? Many thanks

---

<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 15, 2023, 3:13pm UTC](https://devforum.zoom.us/t/where-can-i-put-sendframedata/81493/2 "2023-02-15T15:13:24Z")

</div>

Closed on February 15, 2023, 3:13pm UTC

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