# Sending raw Video Data to the meeting

**URL:** <https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089>\
**Category:** Meeting SDK\
**Created:** [December 13, 2023, 2:19pm UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089 "2023-12-13T14:19:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stutberidze](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stutberidze/32/54774_2.png) [@stutberidze](https://devforum.zoom.us/u/stutberidze)\
**Post date:** [December 13, 2023, 2:19pm UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089/1 "2023-12-13T14:19:24Z")

</div>

Hello!

I’ve been troubleshooting with **sending raw video data** to the meeting room through meeting SDK recently.

_Unfortunately there are no code samples on how to use the sendVideoFrame function on linux_

However, after researching on this topic for a while, I decided to override the following class: **IZoomSDKVideoSource**

## The header file

```auto
class MyRawDataClass : public IZoomSDKVideoSource
{
// Construction
public:	
	virtual ~MyRawDataClass(){}
	virtual	void onInitialize(IZoomSDKVideoSender* sender, IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability& suggest_cap) = 0;
	virtual void onPropertyChange(IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability suggest_cap) = 0;
	virtual void onStartSend() = 0;
	virtual void onStopSend() = 0;
	virtual void onUninitialized() = 0;

private:
	IZoomSDKVideoSender * m_pSender;
};

```

## The source file

```auto
void MyRawDataClass::onInitialize(IZoomSDKVideoSender* sender, IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability& suggest_cap)
{
	//when set virtual video source, go here!!!
	if (!sender) return;
	m_pSender = sender;

	//capability
	if (!support_cap_list) return;
    
	unsigned int nCount = support_cap_list->GetCount();	

	for(int i=0; i < nCount; i++)
	{
		VideoSourceCapability & cap_ = support_cap_list->GetItem(i);
        std::printf("onInitialize cap index:%d: frame=%d, height=%d, width=%d \n");
	}
}

```

And I am stuck there don’t know how to initialize my custom class and how to retrieve the m\_pSender property so I can use the **sendVideoFrame** function.

I require your help to tell me what I am doing wrong and how I need to implement the code above so it can work properly.

Thanks for your attention; Your help will be appreciated ❤ 🙂

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [December 14, 2023, 9:50am UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089/2 "2023-12-14T09:50:10Z")

</div>

@stutberidze , you need to:

1. Authenticate the Zoom SDK and wait until the bot has joined the call (status: [MEETING\_STATUS\_INMEETING](https://marketplacefront.zoom.us/sdk/meeting/linux/meeting __service__ interface_8h.html#a8660ceacc1822bd66e6fd40a89252391ad1e73065cb374ae2a30daee9c4ddaa27))
2. Get a reference to the global video source helper using [GetRawdataVideoSourceHelper()](https://marketplacefront.zoom.us/sdk/meeting/linux/zoom __rawdata__ api_8h.html#ab97f56ed4f1d7b7c05a074f7d8f35fb2)
3. Set the bot’s external video source to your custom class using [setExternalVideoSource()](https://marketplacefront.zoom.us/sdk/meeting/linux/class_i_zoom_s_d_k_video_source_helper.html#af5d59c163cdd5da253317c213311e604)
4. Then your `onInitialize` callback will be invoked when the bot is ready to start outputting video

Another option is [Recall.ai](https://www.recall.ai/).  
It’s a simple 3rd party API that lets you use meeting bots to send and receive raw audio/video from meetings without you needing to spend months to build, scale and maintain these bots. Might be worth checking out.

Let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 18, 2023, 4:24am UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089/3 "2023-12-18T04:24:52Z")

</div>

@stutberidze,

I’ve updated the sample to include sending raw audio and raw video.  
The conversion / compression is not included as it requires 3rd party library such as ffmpeg or opencv

> **[GitHub - zoom/meetingsdk-linux-raw-recording-sample](https://github.com/zoom/meetingsdk-linux-raw-recording-sample)**
>
> Contribute to zoom/meetingsdk-linux-raw-recording-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![varun.nagaraja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/varun.nagaraja/32/61342_2.png) [@varun.nagaraja](https://devforum.zoom.us/u/varun.nagaraja)\
**Post date:** [July 10, 2024, 12:00am UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089/4 "2024-07-10T00:00:37Z")

</div>

@amanda-recallai ,  
I just reviewed the recall.ai APi and looks like we can only output images?

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [July 10, 2024, 1:10am UTC](https://devforum.zoom.us/t/sending-raw-video-data-to-the-meeting/100089/5 "2024-07-10T01:10:51Z")

</div>

@varun.nagaraja here are the docs for outputting video and audio!

> **[Stream Audio/Video from Webpage to a Meeting](https://docs.recall.ai/docs/stream-media?utm_source=zoom_dev_forum&utm_medium=forum_answer&utm_campaign=sending-raw-video-data-to-the-meeting)**
>
> Stream audio and video from a webpage directly to a meeting
