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

[expo-av][android] fix for exo player video bandwidth #8363

Conversation

watchinharrison
Copy link

@watchinharrison watchinharrison commented May 19, 2020

Why

as described in #2177 android videos don't adapt to bandwidth when using an m3u8 adaptive stream file. This means they remain at the lowest quality

How

Passing through the bandwidthMeter transfer listener to the OkHttpDataSource instance to be set via addTransferListener

Test Plan

View a .m3u8 uri video and see the quality of the video improve, existing videos continue to work as expected

Before:
Before.mov.zip

After:
After.mov.zip

pass bandwidth listener through to datasource factory
and set using addTransferListener when not null
@watchinharrison watchinharrison force-pushed the bandwidth-meter-transfer-listener branch from c34253a to 4fbf05a Compare May 19, 2020 16:53
@watchinharrison watchinharrison changed the title [video][android] fix for exo video bandwidth [expo-av][android] fix for exo video bandwidth May 19, 2020
@watchinharrison watchinharrison changed the title [expo-av][android] fix for exo video bandwidth [expo-av][android] fix for exo player video bandwidth May 19, 2020
Copy link
Contributor

@mczernek mczernek left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this contribution! That is great!

I will take a closer look at that and either accept it, suggest some changes or, if you don't mind, create own PR based on that, depending on how many changes will I want to involve.

@watchinharrison watchinharrison force-pushed the bandwidth-meter-transfer-listener branch from 2dfa796 to 2e37c36 Compare May 20, 2020 11:01
@watchinharrison
Copy link
Author

Changes are included in #8380, so closing this PR

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.

None yet

2 participants