shts / StoriesProgressView

show horizontal progress like instagram stories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Story Time Dynamically

RaunakMandal opened this issue · comments

Hey, I want to dynamically change the story time according to the video duration. However, there are both images and videos. The time for images is constant. Well, how can I implement different time for different story?

did you found any solution ?

I suggest adding the following functionality to solve this case:

  • Set duration only for a specific index, since setStoriesDuration() updates all progress bars it's no good for that case.
  • Preserve the current progress of that index, so we can dynamically update the duration keeping the progress preserved
  • Add a possibility to set progress and duration, so we can use it alongside buffering players.

Hello shts,

Any solution for the above functionality??