SIGN UP

VIStreamStat

Stream statistics.

Properties

@property (nonatomic, assign, readonly) NSInteger bytes

Number of bytes transferred through stream.

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

Audio or video codec name, ex "VP8" or "H264".

@property (nonatomic, assign, readonly) VIStreamDirection dir

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

@property (nonatomic, assign, readonly) NSInteger jitterBufferMs

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

@property (nonatomic, assign, readonly) NSInteger jitterMs

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

@property (nonatomic, assign, readonly) NSInteger packetLossCurrentPercents

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

@property (nonatomic, assign, readonly) NSInteger packetLossPercents

Total packet loss percentage from 0 to 100.

@property (nonatomic, assign, readonly) NSInteger packets

Number of packets transferred through stream.

@property (nonatomic, assign, readonly) NSInteger packetsLost

Total number of packets lost.

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

Unique stream id as a string, same as "streamId" for VIVideoStream.

@property (nonatomic, assign, readonly) VIStreamType type

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

@property (nonatomic, assign, readonly) NSInteger videoFps

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

@property (nonatomic, assign, readonly) CGSize videoFrame

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