# Using the IStatisticSettingContext interface

**URL:** <https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360>\
**Category:** Windows\
**Created:** [October 4, 2021, 1:52pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360 "2021-10-04T13:52:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.sinclair](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john.sinclair/32/21892_2.png) [@john.sinclair](https://devforum.zoom.us/u/john.sinclair)\
**Post date:** [October 4, 2021, 1:52pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/1 "2021-10-04T13:52:54Z")

</div>

I’m trying to get audio, video, sharing statistics for an in-progress meeting started through the SDK. All I seem to get back are 0’s for all statistics.

I am using version 5.7.1.644 of the SDK on Windows using C++.

This is my workflow:-

1. Initialize the SDK - this succeeds
2. Set up an “authentication listener” which derives from IAuthServiceEvent
3. Authorize - this succeeds
4. When the authorization successfully completes (I get called back in my override for IAuthServiceEvent::onAuthenticationReturn with a result of success) I login.
5. I get called back in my override for IAuthServiceEvent::onLoginReturnWithReason with success
6. In IAuthServiceEvent::onLoginReturnWithReason I create a “meeting event listener” by deriving from IMeetingServiceEvent and calling IMeetingService::SetEvent to register it.
7. I then start a new meeting
8. On another machine I join the started meeting as a different user.
9. From now on I get called back for all the various states the meeting goes through: connecting, in-meeting, disconnecting, ended. In each callback I try to get the stats by:-  
a) Calling ISettingService::GetStatisticSettings for my “setting service” object to get the IStatisticSettingContext interface.  
b) Calling IStatisticSettingContext::QueryVideoStatisticInfo etc.

The call at 9b fails unless I am in meeting but even then it always seems to return a 0 for all the stats in the passed structure. I see stats in all the “Statistics” panes of the Zoom client UI from the started meeting.

Has anybody successfully used this to retrieve stats ? If, so could you possibly throw some light on what it is I might be doing wrong ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 7, 2021, 9:50pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/2 "2021-10-07T21:50:10Z")

</div>

Hey @john.sinclair,

Thanks for using the dev forum!

Can you update to the latest version and let me know if you face the same issue?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![john.sinclair](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john.sinclair/32/21892_2.png) [@john.sinclair](https://devforum.zoom.us/u/john.sinclair)\
**Post date:** [October 11, 2021, 1:28pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/3 "2021-10-11T13:28:01Z")

</div>

Hi Michael,

Unfortunately same issue with build 5.7.6.1072

Thanks

John

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 11, 2021, 8:51pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/4 "2021-10-11T20:51:00Z")

</div>

Hey @john.sinclair,

I see, thank you for checking that. Can you reproduce the issue one more time and then send me the SDK logs from that instance in an email to [developersupport@zoom.us](mailto:developersupport@zoom.us)? Please mention my name and a link to this post in your email.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![john.sinclair](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john.sinclair/32/21892_2.png) [@john.sinclair](https://devforum.zoom.us/u/john.sinclair)\
**Post date:** [October 25, 2021, 2:28pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/5 "2021-10-25T14:28:49Z")

</div>

Logs sent. Thankyou for your help.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 25, 2021, 7:09pm UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/6 "2021-10-25T19:09:02Z")

</div>

Hey @john.sinclair,

You are welcome, we will let you know what we find.

Thanks!  
Michael

---

<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:** [November 25, 2021, 5:09am UTC](https://devforum.zoom.us/t/using-the-istatisticsettingcontext-interface/58360/7 "2021-11-25T05:09:20Z")

</div>

Closed on November 25, 2021, 5:09am UTC

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