MeiCam SDK For Android
3.14.0
|
Clip, specific description of audio and video files. More...
Public Member Functions | |
NvsTimeline | getInternalTimeline () |
Gets the internal timeline object from the clip. More... | |
long | getTrimIn () |
Gets the trim in point of the clip. More... | |
long | getTrimOut () |
Gets the trim out point of the clip. More... | |
boolean | moveTrimPoint (long offset) |
Move trim points of clip(in microseconds) More... | |
long | getInPoint () |
Gets the in-point of the clip on the timeline. More... | |
long | getOutPoint () |
Gets the out-point of the clip on the timeline. More... | |
int | getType () |
Gets the clip type (video clip, audio clip). More... | |
int | getClipMode () |
Gets the clip mode (media clip, timeline clip). More... | |
int | getIndex () |
Gets the index of the clip on the track. More... | |
boolean | changeClipMode (int clipMode) |
Change the clip mode. More... | |
boolean | changeFilePath (String filePath) |
Change the clip file path. More... | |
boolean | changeInternalTimeline (NvsTimeline timeline) |
Change the clip internal timeline. More... | |
String | getFilePath () |
Gets the clip file path. More... | |
int | getFxCount () |
Gets the number of effects on the clip. Note: The effect index on the clip starts from 0. More... | |
long | changeTrimInPoint (long newTrimInPoint, boolean affectSibling) |
Modifies the trim in point of the clip. More... | |
long | changeTrimOutPoint (long newTrimOutPoint, boolean affectSibling) |
Modifies the trim out point of the clip. More... | |
double | getSpeed () |
Get the playback speed of the clip. More... | |
boolean | isKeepAudioPitch () |
Is keep the tone unchanged. More... | |
void | changeSpeed (double newSpeed) |
Changes the playback speed of the clip. More... | |
boolean | changeCurvesVariableSpeed (String curvesString, boolean keepAudioPitch) |
Changes the playback speed of the clip by curves(only support for video clip). More... | |
String | getClipVariableSpeedCurvesString () |
get current variable speed curves of clip. More... | |
NvsAudioFx | getAudioVolumeFx () |
Gets the audio volume effect of the clip. More... | |
void | changeSpeed (double newSpeed, boolean keepAudioPitch) |
Changes the playback speed of the clip. More... | |
void | setVolumeGain (float leftVolumeGain, float rightVolumeGain) |
Sets the volume. More... | |
NvsVolume | getVolumeGain () |
Gets volume. More... | |
NvsVolume | getRealVolumeAtTime (long time) |
Get the real-time volume at a specified time point. More... | |
void | setLoopAudio (boolean loop) |
Sets whether to loop audio if the clip' trim out go beyond its audio stream's duration. More... | |
boolean | getLoopAudio () |
Gets whether to loop audio if the clip' trim out go beyond its audio stream's duration. More... | |
long | GetClipPosByTimelinePosCurvesVariableSpeed (long timelinePos) |
Gets the pos in clip by current timeline pos when used curves variable speed. More... | |
long | GetTimelinePosByClipPosCurvesVariableSpeed (long clipPos) |
Gets the pos in timelne by current clip pos when used curves variable speed. More... | |
![]() | |
void | setAttachment (String key, Object value) |
Adds additional data to the NvsObject object to identify the NvsObject object or for other purpose. More... | |
void | setTemplateAttachment (String key, String value) |
Adds additional template data to the NvsObject object to identify the NvsObject template object. More... | |
Object | getAttachment (String key) |
Gets an attachment to NvsObject. More... | |
String | getTemplateAttachment (String key) |
Gets an template attachment to NvsObject. More... | |
Static Public Attributes | |
clip type | |
static final int | CLIP_TYPE_VIDEO = 0 |
video clip type More... | |
static final int | CLIP_TYPE_AUDIO = 1 |
audio clip type More... | |
clip mode | |
static final int | CLIP_MODE_MEDIA = 0 |
video clip type More... | |
static final int | CLIP_MODE_TIMELINE = 1 |
audio clip type More... | |
![]() | |
static final String | TEMPLATE_KEY_REPLACE_ID = "MSTemplate-ReplaceId" |
static final String | TEMPLATE_KEY_FOOTAGE_CAN_REPLACE = "MSTemplate-FootageCanReplace" |
static final String | TEMPLATE_KEY_FOOTAGE_ID = "MSTemplate-FootageId" |
static final String | TEMPLATE_KEY_FOOTAGE_NAME = "MSTemplate-FootageName" |
static final String | TEMPLATE_KEY_FOOTAGE_M3U8_NAME = "MSTemplate-FootageM3U8Name" |
static final String | TEMPLATE_KEY_FOOTAGE_TAGS = "MSTemplate-FootageTags" |
static final String | TEMPLATE_KEY_FOOTAGE_TYPE = "MSTemplate-FootageType" |
static final String | TEMPLATE_KEY_FOOTAGE_NEED_REVERSE = "MSTemplate-FootageNeedReverse" |
static final String | TEMPLATE_KEY_CLIP_RAW_WIDTH = "MSTemplate-ClipRawWidth" |
static final String | TEMPLATE_KEY_CLIP_RAW_HEIGHT = "MSTemplate-ClipRawHeight" |
static final String | TEMPLATE_KEY_VOLUME_TYPE = "MSTemplate-VolumeType" |
static final String | TEMPLATE_KEY_FX_GROUP = "MSTemplate-FxGroup" |
static final String | TEMPLATE_KEY_BEST_SEEK_TIME = "MSTemplate-BestSeekTime" |
static final String | TEMPLATE_KEY_MASK_TYPE = "MSTemplate-MaskType" |
static final String | TEMPLATE_VALUE_MASK_TYPE_LINE = "MSTemplate-MaskType-Line" |
static final String | TEMPLATE_VALUE_MASK_TYPE_MIRROR = "MSTemplate-MaskType-Mirror" |
static final String | TEMPLATE_VALUE_MASK_TYPE_CIRCLE = "MSTemplate-MaskType-Circle" |
static final String | TEMPLATE_VALUE_MASK_TYPE_RECT = "MSTemplate-MaskType-Rect" |
static final String | TEMPLATE_VALUE_MASK_TYPE_HEART = "MSTemplate-MaskType-Heart" |
static final String | TEMPLATE_VALUE_MASK_TYPE_STAR = "MSTemplate-MaskType-Star" |
static final String | TEMPLATE_KEY_TRANS_TYPE_CUT = "MSTemplate-TransType-Cut" |
static final String | TEMPLATE_KEY_CURVE_SPEED_TYPE = "MSTemplate-CurveSpeedType" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_CUSTOM = "MSTemplate-CurveSpeedType-Custom" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_MONTAGE = "MSTemplate-CurveSpeedType-Montage" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_HERO = "MSTemplate-CurveSpeedType-Hero" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_BULLET = "MSTemplate-CurveSpeedType-bullet" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_PLUS = "MSTemplate-CurveSpeedType-Plus" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_IN = "MSTemplate-CurveSpeedType-In" |
static final String | TEMPLATE_VALUE_CURVE_SPEED_TYPE_OUT = "MSTemplate-CurveSpeedType-Out" |
Additional Inherited Members | |
![]() | |
void | setInternalObject (long internalObject) |
long | getInternalObject () |
![]() | |
long | m_internalObject = 0 |
Clip, specific description of audio and video files.
A clip is an entity that accommodates audio and video content. It is a description of video and audio files, and is divided into an audio clip (Audio Clip) and a video clip (Video Clip). It defines the common attributes and behaviors of different types of clips. That is, the derived audio clips and video clips can be modified for your demand. These modifications include trim in and out points, left or right volume channels, playback speed and so on. In the SDK framework, corresponding audio clips and video clips can be added to the track.
|
inline |
Change the clip mode.
clipMode | new clip mode. Two types of clips are included, namely the media clip mode and the timeline clip mode. Please refer to clip mode. |
|
inline |
Changes the playback speed of the clip by curves(only support for video clip).
curvesString | description of the variable speed curves. \string foramt : (endpoint1)(endpoint1.backward)(endpoint1.frontward)(endpoint2)(endpoint2.backward)(endpoint2.frontward)…… \coords foramt : (x,y) \note1 : the y coords means the multiple speed. the range of y is 0.1 to 10 \note2 : all x coord values cannot be repeated. endpoint1.backward.x < endpoint1.x < endpoint1.frontward.x < endpoint2.backward.x <endpoint2.x…… \note3 : if you set an empty curvesString,it means you want to disable curves variable speed,the clip will back to const speed. \eg : curvesString = "(0,1)(-3,1)(3,1)(7,5)(6,5)(8,5)(10,0.4)(9,0.4)(11,0.4)(17,0.4)(16,0.4)(18,0.4)(20,5)(19,5)(21,5)(27,1)(24,1)(30,1)" curvesString included 6 group end point info . |
keepAudioPitch | Keep the tone unchanged. |
|
inline |
Change the clip file path.
clipMode | new file path |
|
inline |
Change the clip internal timeline.
timeline | new timeline |
|
inline |
Changes the playback speed of the clip.
newSpeed | New playback speed.Attention newSpeed > 0. |
|
inline |
Changes the playback speed of the clip.
newSpeed | New playback speed..Attention newSpeed > 0. |
keepAudioPitch | Keep the tone unchanged. |
|
inline |
Modifies the trim in point of the clip.
newTrimInPoint | New trim in point (in microseconds). |
affectSibling | Whether it affects other clips on the same track (true/false). |
|
inline |
Modifies the trim out point of the clip.
newTrimOutPoint | New trim out point (in microseconds). |
affectSibling | Whether it affects other clips on the same track (true/false). |
|
inline |
Gets the audio volume effect of the clip.
|
inline |
Gets the clip mode (media clip, timeline clip).
|
inline |
Gets the pos in clip by current timeline pos when used curves variable speed.
|
inline |
get current variable speed curves of clip.
|
inline |
Gets the clip file path.
|
inline |
Gets the number of effects on the clip. Note: The effect index on the clip starts from 0.
|
inline |
Gets the index of the clip on the track.
|
inline |
Gets the in-point of the clip on the timeline.
|
inline |
Gets the internal timeline object from the clip.
|
inline |
Gets whether to loop audio if the clip' trim out go beyond its audio stream's duration.
|
inline |
Gets the out-point of the clip on the timeline.
|
inline |
Get the real-time volume at a specified time point.
|
inline |
Get the playback speed of the clip.
The default value is 1, which means that it plays at normal speed; the value less than 1 means slower playback; the value greater than 1 means faster playback.
|
inline |
Gets the pos in timelne by current clip pos when used curves variable speed.
|
inline |
Gets the trim in point of the clip.
|
inline |
Gets the trim out point of the clip.
|
inline |
Gets the clip type (video clip, audio clip).
|
inline |
|
inline |
Is keep the tone unchanged.
The default value is false
|
inline |
Move trim points of clip(in microseconds)
offset | value,the existing trimIn + offset shall not exceed the original length of the clip |
|
inline |
Sets whether to loop audio if the clip' trim out go beyond its audio stream's duration.
loop | whether to loop audio |
|
inline |
Sets the volume.
leftVolumeGain | Left channel value, value range [0, 8). |
rightVolumeGain | Right channel value, value range [0, 8). |
|
static |
video clip type
|
static |
audio clip type
|
static |
audio clip type
|
static |
video clip type