VIStreamStat

Stream statistics

Members
streamId

Unique stream id as a string, same as “streamId” for VIVideoStream

@property (nonatomic, copy, readonly) NSString *streamId
codec

Audio or video codec name, ex “VP8” or “H264”

@property (nonatomic, copy, readonly) NSString *codec
dir

Stream direction: VIStreamDirectionSend for streams directed from this device, VIStreamDirectionRecv for streams directed to this device

@property (nonatomic, assign, readonly) VIStreamDirection dir
type

Stream type: VIStreamTypeAudio or VIStreamTypeVideo. VIStreamTypeUnknown for future SDK versions compatibility

@property (nonatomic, assign, readonly) VIStreamType type
bytes

Number of bytes transferred through stream

@property (nonatomic, assign, readonly) NSInteger bytes
packets

Number of packets transferred through stream

@property (nonatomic, assign, readonly) NSInteger packets
packetsLost

Total number of packets lost

@property (nonatomic, assign, readonly) NSInteger packetsLost
packetLossPercents

Total packet loss percentage from 0 to 100

@property (nonatomic, assign, readonly) NSInteger packetLossPercents
packetLossCurrentPercents

Packet loss percentage from 0 to 100 for last 5 seconds.

@property (nonatomic, assign, readonly) NSInteger packetLossCurrentPercents
jitterMs

Jitter delay, in milliseconds, for receive streams. For send streams always 0.

@property (nonatomic, assign, readonly) NSInteger jitterMs
jitterBufferMs

Jitter delay, in milliseconds, for single buffer, for receive streams. For send streams always 0

@property (nonatomic, assign, readonly) NSInteger jitterBufferMs
videoFrame

Video frame size, in pixels, for video streams. For audio streams always 0.

@property (nonatomic, assign, readonly) CGSize videoFrame
videoFps

Current video FPS, for video streams. For audio streams always 0.

@property (nonatomic, assign, readonly) NSInteger videoFps