public class TransitionBase extends Effect
TransitionCircle
——圆形打开
TransitionFade
——淡入淡出
TransitionFiveStar
——五角星打开
TransitionShutter
——百叶窗
TransitionTranslate
——平移效果Effect.Type
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_DOWN
向下移动
|
static int |
DIRECTION_LEFT
向左移动
|
static int |
DIRECTION_RIGHT
向右移动
|
static int |
DIRECTION_UP
向上移动
|
protected Source |
mCustomSource
自定义特效地址
|
protected java.lang.String |
mParamsString |
int |
mType
转场类型
|
static int |
ORIENTATION_HORIZONTAL
横向移动
|
static int |
ORIENTATION_VERTICAL
纵向移动
|
static int |
TRANSITION_TYPE_CIRCLE
圆形打开
|
static int |
TRANSITION_TYPE_CUSTOM
自定义
|
static int |
TRANSITION_TYPE_FADE
淡入淡出
|
static int |
TRANSITION_TYPE_FIVEPOINTSTAR
五角星打开
|
static int |
TRANSITION_TYPE_SHUTTER
百叶窗
|
static int |
TRANSITION_TYPE_TRANSLATE
平移
|
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()
转场效果前后两段视频的重叠时间
|
long |
getOverlapDuration(java.util.concurrent.TimeUnit timeUnit)
转场效果前后两段视频的重叠时间
|
void |
setCustomSource(Source customSource) |
void |
setEffectConfig(EffectConfig effectConfig) |
void |
setOverlapDuration(long overlapDurationUs)
转场效果前后两段视频的重叠时间
|
void |
setOverlapDuration(long overlapDuration,
java.util.concurrent.TimeUnit timeUnit)
转场效果前后两段视频的重叠时间
|
void |
setParamsString(java.lang.String paramsString) |
java.lang.String |
toJsonString()
获取自定义转场对象的Params参数
|
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)
v3.27.0 新增
timeUnit
- 时间单位public void setOverlapDuration(long overlapDurationUs)
overlapDurationUs
- 单位:微秒public void setOverlapDuration(long overlapDuration, java.util.concurrent.TimeUnit timeUnit)
v3.27.0 新增
overlapDuration
- timeUnit
- 时间单位public void setParamsString(java.lang.String paramsString)
public void setCustomSource(Source customSource)
public Source getCustomSource()