# StartRecording() is not starting to record even though host has given permission

**URL:** <https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331>\
**Category:** Windows\
**Created:** [April 6, 2024, 7:02am UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331 "2024-04-06T07:02:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swatantra12singh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swatantra12singh/32/58185_2.png) [@swatantra12singh](https://devforum.zoom.us/u/swatantra12singh)\
**Post date:** [April 6, 2024, 7:02am UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331/1 "2024-04-06T07:02:59Z")

</div>

```auto
const auto record_ctrl = SDKInterfaceWrap::GetInst().GetMeetingService()->GetMeetingRecordingController();
record_ctrl->RequestLocalRecordingPrivilege();

and then i changed in virtual void onRequestLocalRecordingPrivilegeChanged(ZOOM_SDK_NAMESPACE::LocalRecordingRequestPrivilegeStatus status)
	{
		Call_SINK_Pool(ZOOM_SDK_NAMESPACE::IMeetingParticipantsCtrlEvent, _meeting_participants_ctr_event_pool, onRequestLocalRecordingPrivilegeChanged(status));
		// cout<< status << endl;
		const auto record_ctrl = SDKInterfaceWrap::GetInst().GetMeetingService()->GetMeetingRecordingController();
		time_t timeNow;
		time(&timeNow);	
		record_ctrl->StartRecording(timeNow);

```

still its not able to auto start recording is there any way @chunsiong.zoom

---

<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:** [April 8, 2024, 3:14am UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331/2 "2024-04-08T03:14:00Z")

</div>

@swatantra12singh is there any error or messages which mentions that recording is not starting after calling `record_ctrl->StartRecording(timeNow);` ?

---

<div class="post-metadata">

**Author:** ![swatantra12singh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swatantra12singh/32/58185_2.png) [@swatantra12singh](https://devforum.zoom.us/u/swatantra12singh)\
**Post date:** [April 8, 2024, 4:04am UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331/3 "2024-04-08T04:04:58Z")

</div>

no first thing is that onRequestLocalRecordingPrivilegeChanged is not fired  
second thing is that when i did it in StartRecording in the file were i called it gave no error but on the other hand instead of start recording it gave me a popup you can start recording instead of executing the function @chunsiong.zoom

---

<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:** [April 8, 2024, 8:29am UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331/4 "2024-04-08T08:29:50Z")

</div>

> [@swatantra12singh](#):
>
> onRequestLocalRecordingPrivilegeChanged

@swatantra12singh you need to do something like this

`m_pParticipantsController->SetEvent(new MeetingParticipantsCtrlEventListener());`

---

<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 8, 2024, 6:30pm UTC](https://devforum.zoom.us/t/startrecording-is-not-starting-to-record-even-though-host-has-given-permission/107331/5 "2024-05-08T18:30:27Z")

</div>

Closed on May 8, 2024, 6:30pm UTC

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