ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.16k stars 618 forks source link

getStats is not usable/useful in multitrack conference.. #6375

Open MaZZly opened 1 month ago

MaZZly commented 1 month ago

Short description

If we want to e.g. track the bitrate of a streamer, this is not possible with the multitrack since all tracks bitrates seem to be summed up into one combined value.

Environment

Steps to reproduce

  1. In a multitrack conference room, join with 2 people and start streams on both
  2. enable stats for the room
  3. Try to figure out if one of the streamers is not currently streaming (e.g. when mobile phone goes to home screen, or bad network)

Expected behavior

Some way to get the stats for individual tracks and not the combined stream

Actual behavior

getStats() returns the stats for the combined stream, not for individual tracks,

MaZZly commented 3 weeks ago

I also noticed when testing a bit around this:

When a track is removed (i.e., the streamer closes down their tab), the currentIncomingBitrate temporarily goes to the negative, even if there are other streamers in the room. (with 1000ms polling of stats, haven't tested others).

It should probably not go into negative values...

burak-58 commented 3 weeks ago

Hi @MaZZly, You are right. I also need the same. I am adding this to plan.