How to configure EngineCallbacks #432
Answered
by
DimaDemchenko
hkchenhongyi
asked this question in
Q&A
-
I want to get bandwidth onSuccess How to fill in the configuration information? |
Beta Was this translation helpful? Give feedback.
Answered by
DimaDemchenko
Nov 5, 2024
Replies: 1 comment 3 replies
-
@hkchenhongyi
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can refer to the Core package API if you're building a custom integration. We have Hls.js and Shaka packages built on the Core package, but they don’t provide direct access to engine callbacks. However, core events provide sufficient information to calculate bandwidth independently. One simple method is to sum all incoming chunks and use a 1-second interval to calculate bandwidth by dividing the total bytes by elapsed time, then resetting the total for the next interval
Integration examples
Core API
Hls.js integration API
Shaka integration API