callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.22k stars 270 forks source link

Secondary Progress / Buffered time #602

Open Ibad9 opened 6 months ago

Ibad9 commented 6 months ago

I am using this library with react native video. Is there any way to show secondary progress which indicates loaded duration of video? If this is possible how to do it and how to achieve full width slider. I set the width to "100%" but still there is some offset coming from the component itself I guess.

Does thumbImage works for both android or Ios ? It's currently not working on Ios for me.

Need help on these queries urgently. Thanks in advance.

BartoszKlonowski commented 6 months ago

Hello @Ibad9, thanks for reaching out!

As for the secondary progress: This Slider does not yet support this feature, however, there already is PR #551, which approaches this topic. That PR still awaits the review, however you can try that branch locally and provide your feedback (preferably in that PR) to speed things up.

As for the offset: Yes, there is a native-side offset which is added by default. There are couple of solutions to that even here, in other issues mentioning that problem, but I didn't attempt to search those now. Let me know though if you have any further problems or questions with it.

As for the thumbImage prop: It should work on all platforms. You can check out the example project of this library in this repo to see how it works and to check what is the root cause of your issue. In the worst case (if none helps) please create an issue, attaching the repro, so I can address this.

Thanks in advance.

You're welcome!