VITimelineView can represent any time base things. Made with fully customizable & extendable.
Simple demo
Represent video frame's timeline using AVAsset
AVAsset *asset1 = ...;
AVAsset *asset2 = ...;
CGFloat widthPerSecond = 40;
CGSize imageSize = CGSizeMake(30, 45);
VITimelineView *timelineView =
[VITimelineView timelineViewWithAssets:@[asset1, asset2]
imageSize:imageSize
widthPerSecond:widthPerSecond];
[self.view addSubview:timelineView];
Customize
- Customize TimelineView see VITimelineView.h
- Customize single source's control view, see VIRangeView.h
- Customize source's content view, you can subclass VIRangeContentView, then add to VIRangeView.
VIRangeView *rangeView = ...;
rangeView.contentView = <Any Content View>;
VIVideoRangeContentView is a subclass of VIRangeContentView.
Cocoapods
pod 'VITimelineView'
Manually
Simplely drag Source
folder to you project
Under MIT