Measuring bitrate of the video in client (moq/js)
Greetings!
Has anyone managed to measure the bitrate of a videostream using the frontend (moq/js)? I'm wondering if there's a robust way of doing that (my video stream has a variable bitrate and I would like to see the overall bitrate).
I tried creating a piece of script subscribing the data from the video stream (somewhat according what's defined in the README.md of moq), but cannot get it to work (but it's freezing my stream). Therefore, I am wondering if someone has successfully developed such functionality (or if it's meant to be included in the package).
Greetings!
Has anyone managed to measure the bitrate of a videostream using the frontend (moq/js)? I'm wondering if there's a robust way of doing that (my video stream has a variable bitrate and I would like to see the overall bitrate).
I tried creating a piece of script subscribing the data from the video stream (somewhat according what's defined in the README.md of moq), but cannot get it to work (but it's freezing my stream). Therefore, I am wondering if someone has successfully developed such functionality (or if it's meant to be included in the package).
You should be able to use the generic MoQ client but either way, it should be easy to add to hang.
What about a signal with the cumulative number of bytes sent (publish) or received (watch)? You could then poll that every so often and calculate the bitrate at whatever granularity you want.