Skip to content

Conversation

@bratta-dk
Copy link

@bratta-dk bratta-dk commented Aug 27, 2025

This rebases our changes onto the version 2.6.4 from pedroSG94/RootEncoder.

There were significant changes in the upstream. I removed our changes to fix Tap to Focus because they were already fixed in the upstream. I had to rework our modifications around the streaming stats.

Here is the original change made by Charles
Here is my corresponding change

To update, I found where the new system calls queue.trySend, and added the call to BitrateManager.queuedBytes similar to the original.

I then combined the existing calculateBitrate and the old calculateBandwidth to make calculateBitrateAndBandwidth. The plan is to use the results of calculateBitrate and some other public APIs to replace the bandwidth calculation. This allows us to use this library and safely move away from needing to modify RootEncoder.

Copy link

@mressler mressler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And with a fun build and publishing extension. Nice, Brian!

}

@Test
fun `WHEN calculateBitrateAndBandwidth called multiple times THEN return total bitrate and bandwidth stats`() = runTest {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 that function name!

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

Successfully merging this pull request may close these issues.

4 participants