otc_subscriber_video_stats
This struct represents subscriber video stats, reported periodically by the otc_subscriber_callbacks.on_video_stats callback function.
Data passed into a callback function (other than subscriber and user_data) will be released after the callback is called. Make a copy of the data if you need to retain it.
Properties
| Name | Type | Description |
|---|---|---|
packets_lost |
uint64_t | The total number of video packets lost by the subscriber. |
packets_received |
uint64_t | The total number of video bytes received by the subscriber. |
bytes_received |
uint64_t | The total number of video bytes received by the subscriber. |
timestamp |
double | The timestamp, in milliseconds since the Unix epoch, for when these stats were gathered. |
sender_connection_max_allocated_bitrate |
int64_t | Deprecated: Use otc_subscriber_media_link_stats instead, which provides complete network metrics including visibility into the remote publisher's transport performance. The maximum bitrate that can be estimated for the sender connection. If no data is available, then -1 is returned. Currently, this feature only supports calls with more than two participants. |
sender_connection_estimated_bandwidth |
int64_t | Deprecated: Use otc_subscriber_media_link_stats instead, which provides complete network metrics including visibility into the remote publisher's transport performance. The current bandwidth estimation for the sender connection. If no data is available, then -1 is returned. Currently, this feature only supports calls with more than two participants. |
width |
int32_t | Decoded video frame width |
height |
int32_t | Decoded video frame height |
decoded_frame_rate |
double | Decoded frame rate (fps) |
bitrate |
int64_t | Bitrate (bps) |
total_bitrate |
int64_t | Bitrate (bps), including RTP headers, padding and payload |
pause_count |
int64_t | Number of times the subscriber’s video playback has paused. Video is considered to be paused if time passed since last rendered frame exceeds 5 seconds. |
total_pauses_duration |
int64_t | Cumulative duration (in milliseconds) of all video pauses. |
freeze_count |
int64_t | Number of times the subscriber’s video has frozen. A freeze is defined according to https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-freezecount |
total_freezes_duration |
int64_t | Cumulative duration (in milliseconds) of all video freezes. |
codec |
const char * | Current codec for this subscriber |
sender_quality_restriction |
enum otc_quality_restriction | Indicates sender–imposed video quality restrictions, if any. This reflects limitations applied at the current sending hop (e.g., the Media Router or direct publisher in a P2P topology). May be limited if sender-side stats are disabled. |
remote_publisher_quality_restriction |
enum otc_quality_restriction | Indicates remote publisher imposed video quality restrictions, if any. This reflects limitations applied by the upstream originating publisher that ultimately affect the received stream quality. May be limited if sender-side stats are disabled. |