https://github.com/videoflint/vitimelineview
VITimelineView can represent any time base things. Made with fully customizable & extendable.
https://github.com/videoflint/vitimelineview
avfoundation timelineview videoview
Last synced: 11 months ago
JSON representation
VITimelineView can represent any time base things. Made with fully customizable & extendable.
- Host: GitHub
- URL: https://github.com/videoflint/vitimelineview
- Owner: VideoFlint
- License: mit
- Created: 2018-12-01T03:15:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T03:14:53.000Z (almost 7 years ago)
- Last Synced: 2024-04-26T05:02:36.301Z (about 2 years ago)
- Topics: avfoundation, timelineview, videoview
- Language: Objective-C
- Size: 4.51 MB
- Stars: 53
- Watchers: 5
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VITimelineView
VITimelineView can represent any time base things. Made with fully customizable & extendable.

## Usage
**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**
1. Customize TimelineView see VITimelineView.h
2. Customize single source's control view, see VIRangeView.h
3. Customize source's content view, you can subclass VIRangeContentView, then add to VIRangeView.
```
VIRangeView *rangeView = ...;
rangeView.contentView = ;
```
VIVideoRangeContentView is a subclass of VIRangeContentView.
## Install
**Cocoapods**
```
pod 'VITimelineView'
```
**Manually**
Simplely drag `Source` folder to you project
## LICENSE
Under MIT