Comments (4)
I am also getting same issue
i have a multiple story and each story have a video. each video have a different time duration.
from segmentedprogressbar.
from segmentedprogressbar.
@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
from segmentedprogressbar.
@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
from segmentedprogressbar.
Related Issues (19)
- Can the individual segments be of different durations? HOT 3
- Cocoapods HOT 5
- Change number of segments? HOT 4
- Please specify the license. HOT 1
- Configure duration of each segment? HOT 4
- Gesture/taps : an enhancement HOT 2
- Remove particular segment HOT 4
- When app came from background to foreground
- how to multiple story work with this third party ???
- Rewind one story HOT 3
- Segment progressbar pause / resume not working
- Using with collection view
- is it available for swift 4.2
- Skip Story and start Progress bar with next story
- First 2 segmented bars start togheter
- how to restart it from beginning ?
- Timer is running without sync with video duration and image
- How to fill the Progress bar if we are starting the index from 3 out of 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentedprogressbar.