OTPublisherKitVideoLayerStats

Describes statistics for a single published video layer.

In a simulcast configuration, each entry corresponds to one independent video encoding (for example, low-, medium-, and 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 scalabilityMode property.

Properties

Name Type Description
width int32_t The width of the video frame, in pixels.
height int32_t The height of the video frame, in pixels.
encodedFrameRate double The encoded video frame rate (in frames per second).
bitrate int64_t The bitrate of this video layer, in bits per second.
totalBitrate int64_t The total bitrate, including RTP headers, padding, and payload, in bits per second.
scalabilityMode NSString * The scalability mode string (for example, "L1T1", "L3T3") describing the spatial and/or temporal scalability of this video layer. This property can be null or an empty string when it is not available.\
qualityLimitationReason OTPublisherVideoEventReason The reason for any quality limitation experienced by this video layer.
codec NSString * The codec currently used for this video layer.

Methods

Name Description
initWithWidth:height:encodedFrameRate:bitrate:totalBitrate:scalabilityMode:qualityLimitationReason:codec:(width, height, encodedFrameRate, bitrate, totalBitrate, scalabilityMode, qualityLimitationReason, codec) → {instancetype}

initWithWidth:height:encodedFrameRate:bitrate:totalBitrate:scalabilityMode:qualityLimitationReason:codec:(width, height, encodedFrameRate, bitrate, totalBitrate, scalabilityMode, qualityLimitationReason, codec) → {instancetype}

Parameters:
Name Type Description
width int32_t
height int32_t
encodedFrameRate double
bitrate int64_t
totalBitrate int64_t
scalabilityMode NSString *
qualityLimitationReason OTPublisherVideoEventReason
codec NSString *
Returns: