MeiCam SDK For Android  3.14.0
Public Member Functions | Protected Member Functions | List of all members
com.meicam.sdk.NvsThumbnailSequenceView Class Reference

Thumbnail sequence. More...

Inheritance diagram for com.meicam.sdk.NvsThumbnailSequenceView:

Public Member Functions

 NvsThumbnailSequenceView (Context context)
 
 NvsThumbnailSequenceView (Context context, AttributeSet attrs)
 
 NvsThumbnailSequenceView (Context context, AttributeSet attrs, int defStyleAttr)
 
 NvsThumbnailSequenceView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
 
void setThumbnailImageFillMode (int fillMode)
 Sets the image fill mode of the thumbnail. More...
 
int getThumbnailImageFillMode ()
 Gets the image fill mode of the thumbnail. More...
 
void setMediaFilePath (String mediaFilePath)
 Sets the media file path. More...
 
String getMediaFilePath ()
 Gets the media file path. More...
 
void setStartTime (long startTime)
 Sets the sequence start time. More...
 
long getStartTime ()
 Gets the start time of the sequence. More...
 
void setDuration (long duration)
 Sets the sequence duration. More...
 
long getDuration ()
 Gets sequence duration. More...
 
void setThumbnailAspectRatio (float thumbnailAspectRatio)
 Sets the thumbnail aspect ratio. More...
 
float getThumbnailAspectRatio ()
 Gets thumbnail aspect ratio. More...
 
void setStillImageHint (boolean stillImageHint)
 Sets whether to load a video as a still image. More...
 
boolean getStillImageHint ()
 Gets a still image when loading a video. More...
 
boolean shouldDelayChildPressedState ()
 

Protected Member Functions

void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 
void onLayout (boolean changed, int left, int top, int right, int bottom)
 
void onSizeChanged (int w, int h, int oldw, int oldh)
 

Detailed Description

Thumbnail sequence.

Note: Please do not use the control for new code, please use the NvsMultiThumbnailSequenceView! The sequence of thumbnails refers to that the video is scaled to some extent, to statically shorten the displayed sequence. During video edition, by previewing the video sequence, users can set the start time, duration, and aspect ratio of the sequence. Meanwhile, the subtitles and the cropped video are precisely added at the corresponding time slot position according to the thumbnail.

Warning
In the NvsThumbnailSequenceView class, all public APIs are used in the UI thread! ! !
Since
1.1.0
Deprecated:

Constructor & Destructor Documentation

◆ NvsThumbnailSequenceView() [1/4]

com.meicam.sdk.NvsThumbnailSequenceView.NvsThumbnailSequenceView ( Context  context)
inline

◆ NvsThumbnailSequenceView() [2/4]

com.meicam.sdk.NvsThumbnailSequenceView.NvsThumbnailSequenceView ( Context  context,
AttributeSet  attrs 
)
inline

◆ NvsThumbnailSequenceView() [3/4]

com.meicam.sdk.NvsThumbnailSequenceView.NvsThumbnailSequenceView ( Context  context,
AttributeSet  attrs,
int  defStyleAttr 
)
inline

◆ NvsThumbnailSequenceView() [4/4]

com.meicam.sdk.NvsThumbnailSequenceView.NvsThumbnailSequenceView ( Context  context,
AttributeSet  attrs,
int  defStyleAttr,
int  defStyleRes 
)
inline

Member Function Documentation

◆ getDuration()

long com.meicam.sdk.NvsThumbnailSequenceView.getDuration ( )
inline

Gets sequence duration.

Returns
Returns sequence duration value (in microseconds).
See also

◆ getMediaFilePath()

String com.meicam.sdk.NvsThumbnailSequenceView.getMediaFilePath ( )
inline

Gets the media file path.

Returns
Returns a string of media file paths.
See also
setMediaFilePath

◆ getStartTime()

long com.meicam.sdk.NvsThumbnailSequenceView.getStartTime ( )
inline

Gets the start time of the sequence.

Returns
Returns sequence start time value (in microseconds).
See also
setStartTime

◆ getStillImageHint()

boolean com.meicam.sdk.NvsThumbnailSequenceView.getStillImageHint ( )
inline

Gets a still image when loading a video.

Returns
The return value is boolean. True means it is a still image and false means it is not.
See also

◆ getThumbnailAspectRatio()

float com.meicam.sdk.NvsThumbnailSequenceView.getThumbnailAspectRatio ( )
inline

Gets thumbnail aspect ratio.

Returns
Returns the thumbnail aspect ratio.
See also
setThumbnailAspectRatio

◆ getThumbnailImageFillMode()

int com.meicam.sdk.NvsThumbnailSequenceView.getThumbnailImageFillMode ( )
inline

Gets the image fill mode of the thumbnail.

Returns
Returns the image fill mode of the thumbnail.
See also
setThumbnailImageFillMode

◆ onLayout()

void com.meicam.sdk.NvsThumbnailSequenceView.onLayout ( boolean  changed,
int  left,
int  top,
int  right,
int  bottom 
)
inlineprotected

◆ onMeasure()

void com.meicam.sdk.NvsThumbnailSequenceView.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
inlineprotected

◆ onSizeChanged()

void com.meicam.sdk.NvsThumbnailSequenceView.onSizeChanged ( int  w,
int  h,
int  oldw,
int  oldh 
)
inlineprotected

◆ setDuration()

void com.meicam.sdk.NvsThumbnailSequenceView.setDuration ( long  duration)
inline

Sets the sequence duration.

Parameters
durationDuration(in microseconds)
See also
getDuration

◆ setMediaFilePath()

void com.meicam.sdk.NvsThumbnailSequenceView.setMediaFilePath ( String  mediaFilePath)
inline

Sets the media file path.

Parameters
mediaFilePathmedia file path
See also
getMediaFilePath

◆ setStartTime()

void com.meicam.sdk.NvsThumbnailSequenceView.setStartTime ( long  startTime)
inline

Sets the sequence start time.

Parameters
startTimeStart time (in microseconds)
See also
getStartTime

◆ setStillImageHint()

void com.meicam.sdk.NvsThumbnailSequenceView.setStillImageHint ( boolean  stillImageHint)
inline

Sets whether to load a video as a still image.

Parameters
stillImageHintWhether it is a still image. True means it is a still image and false means it is not.
See also
getStillImageHint

◆ setThumbnailAspectRatio()

void com.meicam.sdk.NvsThumbnailSequenceView.setThumbnailAspectRatio ( float  thumbnailAspectRatio)
inline

Sets the thumbnail aspect ratio.

Parameters
thumbnailAspectRatioAspect ratio
See also
getThumbnailAspectRatio

◆ setThumbnailImageFillMode()

void com.meicam.sdk.NvsThumbnailSequenceView.setThumbnailImageFillMode ( int  fillMode)
inline

Sets the image fill mode of the thumbnail.

Parameters
fillModeImage fill mode
See also
getThumbnailImageFillMode

◆ shouldDelayChildPressedState()

boolean com.meicam.sdk.NvsThumbnailSequenceView.shouldDelayChildPressedState ( )
inline

Any layout manager that doesn't scroll will want this.


The documentation for this class was generated from the following file: