amazon-ivs-react-native-player icon indicating copy to clipboard operation
amazon-ivs-react-native-player copied to clipboard

android: buffer indicator

Open hirbod opened this issue 2 years ago • 3 comments

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 avatar Sep 22 '22 02:09 hirbod

@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

alexmdodge avatar Sep 23 '22 17:09 alexmdodge

Thanks for the hint @alexmdodge - thats a feasible workaround for now :)

hirbod avatar Sep 23 '22 18:09 hirbod

@hirbod any idea about how to change the black background while buffering ?

hamdij0maa avatar Feb 13 '23 18:02 hamdij0maa