#include <publisher.h>
| Data Fields | |
| int32_t | width |
| int32_t | height |
| double | encoded_frame_rate |
| int64_t | bitrate |
| int64_t | total_bitrate |
| const char * | scalability_mode |
| enum otc_video_reason | quality_limitation_reason |
| const char * | codec |
Detailed Description
Represents the statistics for a single published video layer.
In a simulcast configuration, each entry corresponds to one independent video encoding (e.g., low, medium, high resolution streams sent in parallel). For SVC (Scalable Video Coding), the publisher typically sends a single video encoding, with scalability (temporal, spatial, or both) internally encoded and described via the scalability_mode field.
Field Documentation
bitrate
| int64_t bitrate |
Bitrate (bps)
codec
| const char* codec |
Current codec for this video layer
encoded_frame_rate
| double encoded_frame_rate |
Encoded frame rate (fps)
height
| int32_t height |
Encoded video frame height
quality_limitation_reason
| enum otc_video_reason quality_limitation_reason |
Quality degradation reason
scalability_mode
| const char* scalability_mode |
Scalability mode string (e.g., "L1T1", "L3T3") for this video layer
total_bitrate
| int64_t total_bitrate |
Bitrate (bps), including RTP headers, padding and payload
width
| int32_t width |
Encoded video frame width