# How to get fps and packet loss to MainActivity from Android sdk

**URL:** <https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239>\
**Category:** Android\
**Created:** [May 13, 2021, 9:39pm UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239 "2021-05-13T21:39:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chetanvangadi](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chetanvangadi](https://devforum.zoom.us/u/chetanvangadi)\
**Post date:** [May 13, 2021, 9:39pm UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239/1 "2021-05-13T21:39:39Z")

</div>

**Description**  
How to get fps and packet loss to MainActivity from Android sdk.’

**Which Android Client SDK version?**  
latest

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
How to utilize above apis

 ![Screen Shot 2021-05-13 at 11.46.15 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/0/e084c232fe40f83500f6ad8f01567f6ddc24f6bc.png)

**Smartphone (please complete the following information):**

- Device: [e.g. Pixel 5]
- OS: [e.g. Android 11]

**Additional context**  
Add any other context about the problem here.

---

<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:** [May 14, 2021, 12:40am UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239/2 "2021-05-14T00:40:18Z")

</div>

Hi @chetanvangadi, thanks for using our SDK.

Please note that I have moved your post over to the #mobile-video-sdk:android category as you appear to be asking about the Video SDK. 🙂

After joining a session, you can call `ZoomInstantSDK.getInstance().getSession()` to retrieve the current session. On that session object, you can either call `getSessionVideoStatisticInfo()` to get the video info or `getSessionShareStatisticInfo()` to get the share info for the current session.

Thanks!

---

<div class="post-metadata">

**Author:** ![AndroidDev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/androiddev/32/25320_2.png) [@AndroidDev](https://devforum.zoom.us/u/AndroidDev)\
**Post date:** [May 26, 2021, 9:25am UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239/3 "2021-05-26T09:25:08Z")

</div>

> [@jon.zoom](#):
>
> getSessionVideoStatisticInfo

getSessionVideoStatisticInfo.fps returns zero when only the host is in the session. The sample app only shows the frame rate for those who are NOT the host.

---

<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:** [May 26, 2021, 10:09pm UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239/4 "2021-05-26T22:09:49Z")

</div>

Hi @AndroidDev,

I have responded to your other post regarding this behavior. Please try to refrain from posting multiple times about the same topic so that the forum remains as easy to navigate for everyone as possible. 🙂

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:** [June 26, 2021, 8:09am UTC](https://devforum.zoom.us/t/how-to-get-fps-and-packet-loss-to-mainactivity-from-android-sdk/50239/5 "2021-06-26T08:09:56Z")

</div>

Closed on June 26, 2021, 8:09am UTC

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