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
[expo-av][android] fix for exo player video bandwidth #8363
Conversation
pass bandwidth listener through to datasource factory and set using addTransferListener when not null
c34253a
to
4fbf05a
Compare
There was a problem hiding this 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.
...id/src/main/java/expo/modules/av/player/datasource/CustomHeadersOkHttpDataSourceFactory.java
Outdated
Show resolved
Hide resolved
...po-av/android/src/main/java/expo/modules/av/player/datasource/DataSourceFactoryProvider.java
Outdated
Show resolved
Hide resolved
createFactory override now contains TransferListener
2dfa796
to
2e37c36
Compare
Changes are included in #8380, so closing this PR |
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