# How to call the StartRecording method in Zoom SDK C# Wrapper?

**URL:** <https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405>\
**Category:** Windows\
**Created:** [January 10, 2022, 7:58am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405 "2022-01-10T07:58:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://devforum.zoom.us/u/raveena)\
**Post date:** [January 10, 2022, 7:58am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/1 "2022-01-10T07:58:13Z")

</div>

Hello Everyone,

I have a question on how to use the StartRecording method in Zoom SDK C# Wrapper.  
A code snip would be helpful.

Thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 10, 2022, 8:33pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/2 "2022-01-10T20:33:31Z")

</div>

Hi @raveena, thanks for the post.

Starting a recording through the SDK programmatically should be a simple as calling the `StartRecording` function, given that the current user has adequate permission to record the meeting. Are you running into any issues in particular when using this?

Thanks!

---

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://devforum.zoom.us/u/raveena)\
**Post date:** [January 11, 2022, 7:40am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/3 "2022-01-11T07:40:57Z")

</div>

Hi @jon.zoom, thanks for the reply

I am running into an issue actually.  
ValueType date = (DateTime.Now - new DateTime(1970, 1, 1)).TotalMilliseconds;  
ZOOM\_SDK\_DOTNET\_WRAP.SDKError recordErr = ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingRecordingController().StartRecording(ref date);

While using the above method I am getting an exception which says “value to add was out of range”. Due to this I cannot see whether StartRecording() method works.  
Need a quick response.

Thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 11, 2022, 10:23pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/4 "2022-01-11T22:23:29Z")

</div>

Hi @raveena,

Can you try using seconds instead of milliseconds for the time you’re passing in and let me know if that helps?

Thanks!

---

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://devforum.zoom.us/u/raveena)\
**Post date:** [January 12, 2022, 3:45am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/6 "2022-01-12T03:45:31Z")

</div>

Hi @jon.zoom

I received the same Exception when Seconds are used instead of Milliseconds.

 ![Screenshot (270)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/d/1d9ee4895c18dc5423fab16a66e7c88081dc9a21.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 12, 2022, 6:52pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/7 "2022-01-12T18:52:09Z")

</div>

Hi @raveena,

Can you please provide the exact value you are passing into this?

Thanks!

---

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://devforum.zoom.us/u/raveena)\
**Post date:** [January 13, 2022, 6:22am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/8 "2022-01-13T06:22:52Z")

</div>

Hi @jon.zoom

This is the piece of code I am using.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/7/6799299711b596021864b2b425e233ab16130392.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 13, 2022, 7:12pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/9 "2022-01-13T19:12:17Z")

</div>

Hi @raveena,

Since the value is generated at runtime, the code snippet you are using will not provide the information needed. Can you please provide the exact value being passed in when this issue is present?

Thanks!

---

<div class="post-metadata">

**Author:** ![raveena](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@raveena](https://devforum.zoom.us/u/raveena)\
**Post date:** [January 17, 2022, 2:14pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/10 "2022-01-17T14:14:16Z")

</div>

Hi @jon.zoom

I am using the zoom\_sdk\_c\_sharp\_wrap(x86) project from zoom, For this project I have used the above code snip for the button start.

In that form I will pass the App token, Zoom meeting ID, with the zoom email. Only those details are passed.The requirement is to start recording when the start button is clicked.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 21, 2022, 10:53pm UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/11 "2022-01-21T22:53:15Z")

</div>

Hi @raveena,

I completely understand the setup of your project, but am asking for the concrete value you are passing into the `StartRecording` function in order to verify that it is valid. Can you please provide that?

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 21, 2022, 8:53am UTC](https://devforum.zoom.us/t/how-to-call-the-startrecording-method-in-zoom-sdk-c-wrapper/62405/12 "2022-02-21T08:53:26Z")

</div>

Closed on February 21, 2022, 8:53am UTC

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