Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STATISTICS_INFO event in mpegts.js, when the playback starts, the speed attribute is much smaller than the video frame size #222

Open
z1820418897 opened this issue Dec 26, 2024 · 1 comment

Comments

@z1820418897
Copy link

The trigger time of STATISTICS_INFO has always been a mystery. When I play the live stream of http/flv, the trigger event is roughly once every 0.6s, and I have never understood what the speed value means. If it is bytes/s, it is too small, and even if it is kb/s, it is not large enough. My requirement is to monitor the real-time download volume of the URL, but it seems that the speed is not enough. How should I deal with it? Please help me, it will be very grateful!

@z1820418897
Copy link
Author

By reading the source code, I found that the unit of the speed attribute is KB/S, and the interval for triggering the STATISTICS_INFO event can be configured through the statisticsInfoReportInterval attribute in the configuration, and the unit is milliseconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant