amazon-ivs-react-native-player
amazon-ivs-react-native-player copied to clipboard
android: buffer indicator
Describe the bug Android shows a buffer indicator which does not fit to our UI. We would like to be able to disable the ActivityIndicator and provide our own
To reproduce Let a video buffer on android
Expected behavior Prop to disable the shipped indicator, since we're listening to the States/Events ourselves.
Screenshots If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
- Simulator or Real Device: both
- Device: Android
- OS: 10 and 13
@hirbod Thanks for reporting! This is an internal progress bar which is shipped with the SDK itself. We'll ticket and get this prioritized in a future sprint to allow for configuration.
In the meantime, you can overwrite this behavior today using the XML layout and color settings. This is demonstrated in the current Example app, and was added here: https://github.com/aws/amazon-ivs-react-native-player/commit/5e87fa06998393894928805e33d0e4fab07860da
To do the inverse (which I believe is your desired state) you should be able to set the tint color to an alpha channel and make it transparent: https://developer.android.com/reference/android/widget/ProgressBar#attr_android:indeterminateTint
Thanks for the hint @alexmdodge - thats a feasible workaround for now :)
@hirbod any idea about how to change the black background while buffering ?