Problem in starting raw data

I want to start raw data recording through windows SDK but I am getting SDKERR_WRONG_USAGE on calling recordingController->StartRawRecording(). please refer last 8-10 lines of code where I have called StartRawRecording, i pasted other code just to give a broader look at what I am trying to do.
Here is the code:

void ZoomController::onMeetingJoined() {
	if (this->pending_request != RequestMessage::UNDEFINED) {
	IMeetingUIController* uiController = meetingService->GetUIController();
	uiController->EnterFullScreen(true, false);
	if (!this->joined) {
		IMeetingAudioController* audController = meetingService->GetMeetingAudioController();
		throwIfNotSuccess(audController->SetEvent(this), __LINE__);
		throwIfNotSuccess(audController->JoinVoip(), __LINE__);
		this->message_listener = new NanoMessageListener();
		auto participants_controller = this->meetingService->GetMeetingParticipantsController();
		auto participant_list = participants_controller->GetParticipantsList();
		vector<unsigned int> participant_user_ids;
		for (int i = 0; i < participant_list->GetCount(); i++) 
		this->joined = true;
	LOG_INFO(TAG) << "checking the bot";
	IMeetingAudioController* audController = meetingService->GetMeetingAudioController();
	auto bot_user = this->getUserByUserId(0);
	if (!audController->CanUnMuteBySelf()) {
		LOG_INFO(TAG) << "Bot not allowed to unmute itself";
	else {
		//IMeetingRecordingController* recordingController = meetingService->GetMeetingRecordingController();
		//for (int i = 0; i < 10000000; i++);
		//LOG_INFO(TAG) << "starting cloud recording";
		////LOG_INFO(TAG) << "cloud recording allowed"<<recordingController->CanStartRecording(true, bot_user->GetUserID());
		////throwIfNotSuccess(recordingController->StartCloudRecording(), __LINE__);
		//LOG_INFO(TAG) << "started cloud recording";
	IMeetingRecordingController* recordingController = meetingService->GetMeetingRecordingController();
	LOG_INFO(TAG) << "recording allowed: "<< recordingController->IsSupportLocalRecording(bot_user->GetUserID());
	LOG_INFO(TAG) << "starting raw recording";
	SDKError er = recordingController->StartRawRecording();
	LOG_INFO(TAG) << "recording status: " << er;
	IZoomSDKRenderer* p = NULL;
	ZOOM_SDK_NAMESPACE::SDKError error = ZOOM_SDK_NAMESPACE::createRenderer(&p, this);
	LOG_INFO(TAG) << "recording render status: "<<error;

I followed this(Window Raw Data) to implement the raw recording feature. I am calling to start raw recording after the meeting joined call back.
as per the first steps I have implemented IZoomSDKRendererDelegate and IZoomSDKAudioRawDataDelegate here in the below code. I inherited these classes and use the object of zoomController class everywhere.I have implemented onRawDataFrameReceived and onOneWayAudioRawDataReceived as methods without any body as of now.My current aim is that consent pop should open when raw recording is started.

class ZoomController :
	public IAuthServiceEvent,
	public IMeetingServiceEvent,
	public IMeetingAudioCtrlEvent,
	//public IMeetingParticipantsCtrlEvent,onRawDataFrameReceived
	public IMeetingConfigurationEvent,
	public IMeetingRecordingCtrlEvent,
	public IZoomSDKRendererDelegate,
	public IZoomSDKAudioRawDataDelegate {
	IAuthService* authService;
	IMeetingService* meetingService;
	ISettingService* settingService;
	std::string sdkKey, sdkSecret;
	std::string callAiMeetingId;
	std::string streamingServerUrl, speakerDeviceId, captureDeviceId;
	bool joined = false;

Which Windows Meeting SDK version?
Windows SDK version: v5.9.1.2601


ss of debugging statements

Device (please complete the following information):

  • Device: [e.g. Dell XPS 13]
  • OS: WIndows server 2016

Additional context
I also have a follow up questions:
Is there any other way of opening a consent pop up when the bot joins through windows sdk, i can use participant joined callback to do so but i am not sure how to implement pop up.

Follow up question:
StartRawRecording works fine with scheduled meeting but gives error for live meeting(if any other user is present in the meeting before start raw recording is tiggered.)

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