Hello,
We have a problem in the application with the methods of start recording, When we execute the StartRecording(ref time) method, we get a Exception (System.ArgumentOutOfRangeException: 'Value to add was out of range.).
I have try with different ways but always get same exception. Following is the piece of code for your reference :
private void button_start_Recording()
{
Console.WriteLine("Start recording...");
//ValueType time = 0;
//ValueType time = (DateTime.Now - new DateTime(1970, 1, 1)).TotalMilliseconds;
//ValueType time = (DateTime.Now - new DateTime(1970, 1, 1)).Milliseconds;
//ValueType time = (DateTime.Now - new DateTime(1970, 1, 1)).TotalSeconds;
//ValueType time = (DateTime.Now - new DateTime(1970, 1, 1)).Seconds;
//ValueType time = DateTime.UtcNow;
//ValueType time = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
//DateTime now = DateTime.Now;
//ValueType time = now;
//ValueType time = new DateTimeOffset(now).ToUnixTimeSeconds();
//var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
//ValueType time = Timestamp;
ValueType time = DateTime.Now;
try
{
var err = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingRecordingController().StartRecording(ref time);
}
catch (Exception ex)
{
}
}
Hello Jon,
Thanks for response. Following are these concrete values which i was pass into the StartRecording() method:
Value in TotalMilliseconds : 1644230255476.8552
Value in Milliseconds: 52
Value in TotalSeconds: 1644230536.5883362
Value in Seconds: 30
Value in DateTime.UtcNow : 07-02-2022 05:12:55
Value in DateTime.Now: 07-02-2022 10:43:08
After sent these all value i have get same exception (System.ArgumentOutOfRangeException: 'Value to add was out of range.).
It does not seem like any of these values are valid. For example, when I just tested this and was able to successfully start a recording, I used a value of 1644364464. This represents the current Unix epoch time in seconds.
It seems like this may be an issue specific to the C# wrapper, which would mean we are unable to provide a fix in a new version due to the limited support mentioned in our documentation. On that same page, there are instructions on how to modify the C# wrapper locally, so you could definitely try taking that approach if you’d like to try.
Hello Jon,
Thanks for response. I have one more query related TimeZone. We can use any timezone to get timeStam or need to use a specific timezome for that ? Please advise.
Hello Jon,
Thanks for the above response. Still I’m not able to start recording. So can you please tell me which C# wrapper version you are using currently and if possible please share reference link also so that we can use same C# wrapper to achieve call recording functionally.
As mentioned previously, the C# wrapper is not officially supported so I was using the native C++ SDK. Since this issue appears to be specific to the C# wrapper, you could try to resolve it locally.