Skip to content
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

How to update a custom duration for segmentedprogress and to update progress as well? #21

Open
pradweep opened this issue Dec 8, 2020 · 4 comments

Comments

@pradweep
Copy link

pradweep commented Dec 8, 2020

No description provided.

@ubrainrepo
Copy link

I am also getting same issue

i have a multiple story and each story have a video. each video have a different time duration.

@shrykg
Copy link

shrykg commented Jan 28, 2021

sashabaranov@6542b5f

@ubrainrepo
Copy link

@shrykg can we update time ruration run time for example, when user come to the second story at that time update that index time duration

@shrykg
Copy link

shrykg commented Feb 16, 2021

@ubrainrepo yes you can. For that in next() function in SegmentedProgressBar move line :
self.delegate?.segmentedProgressBarChangedIndex(index: newIndex)above self.animate(animationIndex: newIndex).
Then in your delegate method : func segmentedProgressBarChangedIndex(index: Int) change the desired index in durations array. Like : segmentBar?.durations[index] = videoDuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants