public class EffectStream extends EffectBase
Added in v3.27.0 The video or audio stream
Modifier and Type | Class and Description |
---|---|
static class |
EffectStream.Builder |
Modifier and Type | Field and Description |
---|---|
protected long |
duration |
protected long |
streamDuration |
protected long |
streamStartTime |
mSource, resId, viewId
Constructor and Description |
---|
EffectStream() |
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Get the duration of stream file.
|
long |
getDuration(java.util.concurrent.TimeUnit timeUnit)
Get the duration of stream file.
|
long |
getStreamDuration()
Get the duration of stream file.
|
long |
getStreamDuration(java.util.concurrent.TimeUnit timeUnit)
Get the duration of stream file
|
long |
getStreamEndTime()
Get the end time of stream.
|
long |
getStreamEndTime(java.util.concurrent.TimeUnit unit)
Get the end time of stream
|
long |
getStreamStartTime()
Get the start time of stream.
|
long |
getStreamStartTime(java.util.concurrent.TimeUnit unit)
Get the start time of stream.
|
void |
setStreamDuration(long duration,
java.util.concurrent.TimeUnit timeUnit)
Sets the duration of stream.
|
void |
setStreamStartTime(long startTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the start time of stream.
|
checkIsInvalid, copy, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId, toString
protected long streamStartTime
protected long streamDuration
protected long duration
public long getStreamStartTime()
public long getStreamStartTime(java.util.concurrent.TimeUnit unit)
unit
- TimeUnitpublic long getStreamEndTime()
public long getStreamEndTime(java.util.concurrent.TimeUnit unit)
unit
- TimeUnitpublic void setStreamStartTime(long startTime, java.util.concurrent.TimeUnit timeUnit)
startTime
- timeUnit
- Time Unitpublic long getStreamDuration()
public long getStreamDuration(java.util.concurrent.TimeUnit timeUnit)
public void setStreamDuration(long duration, java.util.concurrent.TimeUnit timeUnit)
duration
- timeUnit
- Time Unitpublic long getDuration()
public long getDuration(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位