public class TransitionBase extends Effect
TransitionCircle
——Circle
TransitionFade
——Fade
TransitionFiveStar
——Pentagram
TransitionShutter
——Blinds
TransitionTranslate
——Translational motion
CustomEffect.Type
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_DOWN
Downward motion.
|
static int |
DIRECTION_LEFT
Leftward motion.
|
static int |
DIRECTION_RIGHT
Rightward motion.
|
static int |
DIRECTION_UP
Upward motion.
|
protected Source |
mCustomSource
CUSTOM file path
|
protected java.lang.String |
mParamsString |
int |
mType
The transition type.
|
static int |
ORIENTATION_HORIZONTAL
Horizontal motion.
|
static int |
ORIENTATION_VERTICAL
Vertical motion.
|
static int |
TRANSITION_TYPE_CIRCLE
Circle.
|
static int |
TRANSITION_TYPE_CUSTOM
CUSTOM.
|
static int |
TRANSITION_TYPE_FADE
Fade.
|
static int |
TRANSITION_TYPE_FIVEPOINTSTAR
Pentagram.
|
static int |
TRANSITION_TYPE_SHUTTER
Blinds.
|
static int |
TRANSITION_TYPE_TRANSLATE
Translational motion.
|
Constructor and Description |
---|
TransitionBase() |
TransitionBase(Source source) |
TransitionBase(java.lang.String path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Source |
getCustomSource() |
EffectConfig |
getEffectConfig() |
java.util.List<EffectConfig.NodeBean> |
getNodeTree() |
long |
getOverlapDuration()
Sets the overlap between the video clips preceding and following the effect.
|
long |
getOverlapDuration(java.util.concurrent.TimeUnit timeUnit)
Sets the overlap between the video clips preceding and following the effect.
|
void |
setCustomSource(Source customSource) |
void |
setEffectConfig(EffectConfig effectConfig) |
void |
setOverlapDuration(long overlapDurationUs)
Sets the overlap between the video clips preceding and following the effect.
|
void |
setOverlapDuration(long overlapDuration,
java.util.concurrent.TimeUnit timeUnit)
Sets the overlap between the video clips preceding and following the effect.
|
void |
setParamsString(java.lang.String paramsString) |
java.lang.String |
toJsonString()
Gets the Params parameter of the custom transition object.
|
public static final int TRANSITION_TYPE_SHUTTER
public static final int TRANSITION_TYPE_TRANSLATE
public static final int TRANSITION_TYPE_CIRCLE
public static final int TRANSITION_TYPE_FIVEPOINTSTAR
public static final int TRANSITION_TYPE_FADE
public static final int TRANSITION_TYPE_CUSTOM
public static final int ORIENTATION_HORIZONTAL
public static final int ORIENTATION_VERTICAL
public static final int DIRECTION_LEFT
public static final int DIRECTION_RIGHT
public static final int DIRECTION_UP
public static final int DIRECTION_DOWN
public int mType
protected Source mCustomSource
protected java.lang.String mParamsString
public TransitionBase()
@Deprecated public TransitionBase(java.lang.String path)
public TransitionBase(Source source)
public java.util.List<EffectConfig.NodeBean> getNodeTree()
public void setEffectConfig(EffectConfig effectConfig)
public EffectConfig getEffectConfig()
public java.lang.String toJsonString()
public long getOverlapDuration()
public long getOverlapDuration(java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
timeUnit
- Time Unitpublic void setOverlapDuration(long overlapDurationUs)
overlapDurationUs
- Unit: microseconds.public void setOverlapDuration(long overlapDuration, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
overlapDuration
- timeUnit
- Time Unitpublic void setParamsString(java.lang.String paramsString)
public void setCustomSource(Source customSource)
public Source getCustomSource()