public class EffectBean
extends java.lang.Object
| Constructor and Description |
|---|
EffectBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getDuration() |
int |
getId() |
int |
getMvAudioId()
Gets the id of the audio stream in an MV effect.
|
int |
getOldId()
Gets the original id of a resource.
|
java.lang.String |
getPath()
Deprecated.
Replaced by
##getSource(). |
Source |
getSource()
Gets the file of a resource.
|
long |
getStartTime() |
long |
getStreamDuration() |
long |
getStreamStartTime() |
int |
getWeight() |
void |
setDuration(long durationUs)
Sets the display duration of an effect.
|
void |
setId(int id)
Sets the id of a resource.
|
void |
setMvAudioId(int audioId)
Sets the id of the audio stream in an MV effect.
|
void |
setOldId(int oldId)
Sets the original id of a resource.
|
void |
setPath(java.lang.String path)
Deprecated.
Replaced by
##setSource(Source). |
void |
setSource(Source source)
Sets the file of a resource.
|
void |
setStartTime(long startTimeUs)
Sets the time when an effect appears.
|
void |
setStreamDuration(long streamDurationUs)
Sets the display duration of an effect on the stream.
|
void |
setStreamStartTime(long streamStartTimeUs)
Sets the time when an effect appears on the stream.
|
void |
setWeight(int weight)
Sets the weight of an audio stream.
|
public int getWeight()
public void setWeight(int weight)
weight - Valid values: [0, 100]public long getStreamStartTime()
public void setStreamStartTime(long streamStartTimeUs)
streamStartTimeUs - Unit: microseconds.public long getStreamDuration()
public void setStreamDuration(long streamDurationUs)
streamDurationUs - Unit: microseconds.public int getId()
public void setId(int id)
id - public int getOldId()
public void setOldId(int oldId)
oldId - The original resource id.@Deprecated public java.lang.String getPath()
##getSource().@Deprecated public void setPath(java.lang.String path)
##setSource(Source).path - public Source getSource()
public void setSource(Source source)
source - Sourcepublic long getStartTime()
public void setStartTime(long startTimeUs)
startTimeUs - Unit: microseconds.public long getDuration()
public void setDuration(long durationUs)
durationUs - Unit: microseconds.public void setMvAudioId(int audioId)
audioId - The audio stream id.public int getMvAudioId()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object