public class VideoEffect extends Effect
Effect.Type
Modifier | Constructor and Description |
---|---|
protected |
VideoEffect(Effect.Type type,
int streamId,
int id,
long startTimeMills,
long durationMills) |
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Gets the display duration of this effect.
|
int |
getId()
Gets the id of this effect.
|
float |
getIn()
Gets the time when this effect appears.
|
float |
getOut()
Gets the time when this effect disappears.
|
long |
getStartTime()
Gets the time when this effect appears.
|
int |
getStreamId()
Gets the id of the video stream that this effect is applied to.
|
void |
setDuration(long duration)
Sets the display duration of this effect.
|
void |
setId(int id)
Sets the id of this effect.
|
void |
setIn(float in)
Sets the time when this effect appears.
|
void |
setOut(float out)
Sets the time when this effect disappears.
|
void |
setStartTime(long startTime)
Sets the time when this effect appears.
|
void |
setStreamId(int streamId)
Sets the id of the video stream that this effect is applied to.
|
protected VideoEffect(Effect.Type type, int streamId, int id, long startTimeMills, long durationMills)
public int getId()
public void setId(int id)
id
- public int getStreamId()
public void setStreamId(int streamId)
streamId
- The stream id.public long getStartTime()
public void setStartTime(long startTime)
startTime
- Unit: milliseconds.public long getDuration()
public void setDuration(long duration)
duration
- Unit: milliseconds.public float getIn()
public void setIn(float in)
in
- Unit: second.public float getOut()
public void setOut(float out)
out
- Unit: second.