Skip to main content
Version: 5.5

Media statistics

PlanetKit provides PlanetKitStatistics to keep recent media statistics.

Overview of media statistics

Media statistics is updated internally every 200 milliseconds within the SDK, so the application can read the latest statistics to update their associated user interface periodically.

Note that there may be no change if the reading interval is shorter than 200 milliseconds, which is the statistics update cycle. If you are unsure of an appropriate update interval, 1000 milliseconds is recommended.

The PlanetKitStatistics is provided by stream type. The following table shows the statistical information provided for each stream type.

Stream typePacket
loss
rate
(0–1)
Network
jitter
(msec)
Bitrate
(bps)
Latency
(msec)
Video
resolution
(width x height)
Video
FPS
(frame per seconds)
Incoming audioProvidedProvidedProvidedProvidedN/AN/A
Outgoing audioProvidedProvidedProvidedProvidedN/AN/A
Incoming videoProvidedProvidedProvidedProvidedProvidedProvided
Outgoing videoProvidedProvidedProvidedProvidedProvidedProvided
Incoming screen shareProvidedProvidedProvidedProvidedProvidedProvided
Outgoing screen shareProvidedProvidedProvidedProvidedProvidedProvided

How to enable media statistics

To enable media statistics, apply the following settings depending on the call type.

Note
  • Media statistics is disabled by default.
  • For more information on APIs related to media statistics, see API reference (iOS, macOS).

1-to-1 call

To enable media statistics on the caller side, set withEnableStatisticsKey(enable: true) on PlanetKitMakeCallSettingBuilder before calling makeCall().

To enable media statistics on the callee side, set withEnableStatisticsKey(enable: true) on PlanetKitVerifyCallSettingBuilder before calling verifyCall().

Group call

To enable media statistics in a group call, set withEnableStatisticsKey(enable: true) on PlanetKitJoinConferenceSettingBuilder before calling joinConference().

APIs related to the media statistics function are as follows.

Classes

Methods

1-to-1 call

  • withEnableStatisticsKey() of PlanetKitMakeCallSettingBuilder iOS, macOS
  • withEnableStatisticsKey() of PlanetKitVerifyCallSettingBuilder iOS, macOS

Group call

  • withEnableStatisticsKey() of PlanetKitJoinConferenceSettingBuilder iOS, macOS