Hi,
I am currently trying to log the video statistics data using the below code but getting bitrate to be undefined. The bitrate is kind of critical for me. How can I extract the bitrate from the statistics.
Note: This is only for video. The audio bitrate is coming properly.
My code:
session.subscribeVideoStatisticData()
client.on(‘video-statistic-data-change', (payload) => {
console.log(payload)
})
The log:
{
avg_loss: 0,
bandwidth: "606642.24",
bitrate: undefined,
fps: 24,
height: 360,
width: 640,
jitter: 4,
max_loss: 0,
rtt: 45
}