Multiple thumbnail sequence.
More...
#import <NvsMultiThumbnailSequenceView.h>
Multiple thumbnail sequence.
A multi-thumbnail sequence displays a sequence of thumbnails of multiple clips within a timeline and supports the adjustment of the thumbnail time scale, and further supports scrolling when the effective content is excessively long.
- Warning
- In the NvsMultiThumbnailSequenceView class, all public APIs are used in the UI thread! ! !
- Since
- 1.10.0
◆ enableClipEditModeWithThumnailHeight:
- (void) enableClipEditModeWithThumnailHeight: |
|
(CGFloat) |
height |
|
Set up edit mode, When descArray is set, the contentoffSize and contentSize are not reset to avoid the thumbnail flashing,contentOffset and contentSize shoule be reset.
- Parameters
-
height | Height of thumbnail image, Default: Height of UIScrollView.If the height of the thumbnail is less than the height of the UIScrollView, You can add a custom view below the thumbnail that scrolls along with the thumbnail. If the height of the thumbnail is greater than the UIScrollView height, the excess part will not respond to the gesture event. |
- Since
- 2.15.0
- See also
- reloadClipData
◆ init
◆ initWithCoder:
- (instancetype) initWithCoder: |
|
(NSCoder *) |
aDecoder |
|
◆ initWithFrame:
- (instancetype) initWithFrame: |
|
(CGRect) |
frame |
|
◆ mapTimelinePosFromX:
- (int64_t) mapTimelinePosFromX: |
|
(CGFloat) |
x |
|
Maps the X coordinate of the control to the timeline position.
- Parameters
-
x | The X coordinate of the control(in points). |
- Returns
- Returns the timeline position of the map(in microseconds).
- See also
- mapXFromTimelinePos
◆ mapXFromTimelinePos:
- (CGFloat) mapXFromTimelinePos: |
|
(int64_t) |
timelinePos |
|
Maps the timeline position to the X coordinate of the control.
- Parameters
-
timelinePos | Timeline position(in microseconds) |
- Returns
- Returns the mapped X coordinate of the control(in points).
- See also
- mapTimelinePosFromX
◆ scale:withAnchor:
- (void) scale: |
|
(double) |
scaleFactor |
withAnchor: |
|
(CGFloat) |
anchorX |
|
|
| |
Zooms the current scale.
- Parameters
-
scaleFactor | Scale ratio,Value rangeļ¼>0 |
anchorX | X coordinate of scaled anchor(in points). |
◆ descArray
The thumbnail sequence describes the array. Note: Once it has been set, altering array contents will not work unless one sets the thumbnail sequence description array again. NVSThumbNailSequenceDesc should be arranged in the order of InPoint from small to large, and the time segments represented by InPoint and OutPoint should not overlap.
◆ endPadding
Ending padding in unit of point.
◆ maxTimelinePosToScroll
- (int64_t) maxTimelinePosToScroll |
|
readwritenonatomicassign |
The maximum timeline position (in microseconds) that is allowed to scroll. The default value is 0, which means no limit.
◆ pointsPerMicrosecond
- (double) pointsPerMicrosecond |
|
readwritenonatomicassign |
Scale bar, the number of points occupied per microsecond. default: 720.0/15000000.
◆ startPadding
Starting padding in unit of point.
◆ thumbnailAspectRatio
- (CGFloat) thumbnailAspectRatio |
|
readwritenonatomicassign |
Thumbnail aspect ratio,default:9.0/16.
◆ thumbnailImageFillMode
Thumbnail image fill mode,default: NvsThumbnailFillModeStretch.
The documentation for this class was generated from the following file: