# Using the IZoomSDKRenderer\* videoHelper to record multiple participants

**URL:** <https://devforum.zoom.us/t/using-the-izoomsdkrenderer-videohelper-to-record-multiple-participants/104513>\
**Category:** Linux\
**Created:** [February 25, 2024, 4:43pm UTC](https://devforum.zoom.us/t/using-the-izoomsdkrenderer-videohelper-to-record-multiple-participants/104513 "2024-02-25T16:43:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gofmannir](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gofmannir/32/56746_2.png) [@gofmannir](https://devforum.zoom.us/u/gofmannir)\
**Post date:** [March 2, 2024, 6:03pm UTC](https://devforum.zoom.us/t/using-the-izoomsdkrenderer-videohelper-to-record-multiple-participants/104513/3 "2024-03-02T18:03:12Z")

</div>

Hi,  
I’ve tried to declare 2 instances of IZoomSDKRenderer but it always generates only one yuv file.

here is the code, I started with explicitly declaring 2 `IZoomSDKRenderer` pointers:

```auto
uint32_t countUsers = getCountUsers();
IUserInfo *mySelfObj = getMyself();
std::string usersMap = "";
std::cout << "Attempt record " << countUsers << " users " << std::endl;

for(int i=0;i<countUsers;i++){
	std::cout << "User " << i << ": " << getUserObj(i) << " " << getUserObj(i)->GetUserID() << std::endl;
	if (mySelfObj->GetUserID() == getUserObj(i)->GetUserID()){
		std::cout << "This is me (the bot): " << i << std::endl;
	}else{

		std::cout << "attemptToStartRawRecording : subscribing" << std::endl;
		if(i == 0){
			std::cout << "TEST1 " << std::to_string(getUserObj(i)->GetUserID()) << std::endl;
			
			SDKError err = createRenderer(&videoHelperTest1, videoSource1);
			if (err != SDKERR_SUCCESS) {
				std::cout << "Error occurred" << std::endl;
				// Handle error
			}
			videoHelperTest1->setRawDataResolution(ZoomSDKResolution_720P);
			videoHelperTest1->subscribe(getUserObj(i)->GetUserID(), RAW_DATA_TYPE_VIDEO);
		}else{

			std::cout << "TEST2 " << std::to_string(getUserObj(i)->GetUserID()) << std::endl;
		
			SDKError err = createRenderer(&videoHelperTest2, videoSource2);
			if (err != SDKERR_SUCCESS) {
				std::cout << "Error occurred" << std::endl;
				// Handle error
			}
			videoHelperTest2->setRawDataResolution(ZoomSDKResolution_720P);
			videoHelperTest2->subscribe(getUserObj(i)->GetUserID(), RAW_DATA_TYPE_VIDEO);
		}

	}
}

```

Initizated in the beginning:

```auto

ZoomSDKRenderer* videoSource1 = new ZoomSDKRenderer();
ZoomSDKRenderer* videoSource2 = new ZoomSDKRenderer();
IZoomSDKRenderer* videoHelperTest1;
IZoomSDKRenderer* videoHelperTest2;

```

And I’m identifying the stream participant by `int number = data->GetSourceID();` like this:

```auto
void ZoomSDKRenderer::onRawDataFrameReceived(YUVRawDataI420* data)
{
	std::cout << "sourceID." << data->GetSourceID() << std::endl;
}

```

This is always prints the same single UserId of one participant instead of getting fired for both the participants. (2 real participants and the bot is in the meeting).

Used this page: [Overview | Meeting SDK | Linux](https://developers.zoom.us/docs/meeting-sdk/linux/add-features/raw-data/)

@chunsiong.zoom Do you have any idea why is it happening?

UPDATE:  
I saw your comment here: [Cannot obtain data for more than 5 people using raw data - #2 by chunsiong.zoom](https://devforum.zoom.us/t/cannot-obtain-data-for-more-than-5-people-using-raw-data/85694/2) Is there any way to get more then 4 participants raw data?

---

_[View the full topic](https://devforum.zoom.us/t/using-the-izoomsdkrenderer-videohelper-to-record-multiple-participants/104513)._
