Interface: Statistics
Contains internal statistics.
Note that this object will have some undocumented properties, used internally or temporarily, for monitoring and improving the performance of the service.
Properties
audioBitRate
• Optional
audioBitRate: number
Current audio bitrate in bits/second.
audioCodec
• Optional
audioCodec: string
Current audio codec being used.
audioRenditionId
• Optional
audioRenditionId: number
Id of current audio rendition subscribed to.
bufferTime
• bufferTime: number
Current target buffer time if using dynamic buffer. Otherwise, this is the statically set buffer time from instantiation.
bufferTimeAdjustmentCount
• bufferTimeAdjustmentCount: number
Number of time buffer time has been adjusted. This will only happen when using dynamic buffer time (different min/max values of bufferTime).
bufferingEventsCount
• bufferingEventsCount: number
Total number of buffering events since instantiation.
bytesReceived
• bytesReceived: number
Counter of number of bytes received.
channelGroupId
• Optional
channelGroupId: string
Channel group being subscribed to.
channelId
• channelId: string
Current channel ID being subscribed to.
clientId
• clientId: string
Unlike sessionId
, clientId
will remain the same even after reconnections and represents this unique Vindral instance.
connectCount
• connectCount: number
Total number of connections that have been established since instantiation.
connectionAttemptCount
• connectionAttemptCount: number
Total number of connection attempts since instantiation.
errorCount
• errorCount: number
The total amount of errors being spawned. Note that some media errors can trigger thousands of errors for a single client in a few seconds before recovering. Therefore, consider the number of viewers with errors, not just the total amount. Also, consider the median instead of the mean for average calculation.
estimatedBandwidth
• estimatedBandwidth: number
A very rough initial estimation of minimum available bandwidth.
expectedAudioBitRate
• Optional
expectedAudioBitRate: number
Currently expected audio bit rate according to metadata in bits/s.
expectedVideoBitRate
• Optional
expectedVideoBitRate: number
Currently expected video bit rate according to metadata in bits/s.
fatalQosCount
• fatalQosCount: number
Number of fatal quality of service events.
frameRate
• Optional
frameRate: [number
, number
]
Frame rate. Example: "frameRate": [24000, 1001]
.
ip
• Optional
ip: string
IP of the client.
isAbrEnabled
• isAbrEnabled: boolean
True if adaptive bitrate (ABR) is enabled.
language
• Optional
language: string
Current language. For non-multi language streams, this will often be unset.
renditionLevelChangeCount
• renditionLevelChangeCount: number
Total count of rendition level changes (quality downgrades/upgrades).
rtt
• rtt: MinMaxAverage
RTT (round trip time) between client and server(s).
sessionId
• Optional
sessionId: string
A session is bound to a connection. If the client reconnects for any reason (e.g. coming back from inactivity or a problem with network on client side), a new sessionId will be used.
timeSpentBuffering
• timeSpentBuffering: number
Time in milliseconds spent in buffering state. Note that this value will increase while in background if buffering when leaving foreground.
timeSpentRatio
• timeSpentRatio: Object
Ratio of time being spent on different bitrates.
Example: "timeSpentRatio": { "1160000": 0.2, "2260000": 0.8 }
shows 20% spent on 1.16 Mbps, 80% spent on 2.26 Mbps.
Index signature
▪ [bitRate: string
]: number
timeToFirstFrame
• Optional
timeToFirstFrame: number
Time in milliseconds from instantiation to playback of video and audio being started. Note that an actual frame render often happens much quicker, but that is not counted as TTFF.
uptime
• uptime: number
How long in milliseconds since the instance was created.
url
• url: string
URL being used for connecting to the stream.
version
• version: string
Version of the @vindral/web-sdk being used.
videoBitRate
• Optional
videoBitRate: number
Current video bitrate in bits/second.
videoCodec
• Optional
videoCodec: string
Current video codec being used.
videoHeight
• Optional
videoHeight: number
Height of current video rendition (if any).
videoRenditionId
• Optional
videoRenditionId: number
Id of current video rendition subscribed to.
videoWidth
• Optional
videoWidth: number
Width of current video rendition (if any).