public class TrackAudioStream extends EffectBase
Added in v3.27.0 The audio stream bean of track
Modifier and Type | Class and Description |
---|---|
static class |
TrackAudioStream.Builder |
Modifier and Type | Field and Description |
---|---|
protected long |
duration |
protected long |
streamDuration |
protected int |
streamId |
protected long |
streamStartTime |
mSource, resId, viewId
Constructor and Description |
---|
TrackAudioStream() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIsInvalid() |
int |
getAudioWeight()
Get the mix weight of audio stream
|
long |
getDuration()
Get the duration of stream file.
|
long |
getDuration(java.util.concurrent.TimeUnit timeUnit)
Get the duration of stream file.
|
long |
getStartTime()
Get the start time of audio stream in the track, Unit : milliseconds
|
long |
getStartTime(java.util.concurrent.TimeUnit timeUnit)
Get the start time of audio stream in the track
|
long |
getStreamDuration()
Get the duration of stream.
|
long |
getStreamDuration(java.util.concurrent.TimeUnit timeUnit)
Get the duration of stream
|
long |
getStreamEndTime()
Get the end time of stream.
|
long |
getStreamEndTime(java.util.concurrent.TimeUnit unit)
Get the end time of stream
|
int |
getStreamId()
Get the identify 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 |
setStreamId(int streamId)
Sets the identify of stream.
|
void |
setStreamStartTime(long startTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the start time of stream.
|
protected int streamId
protected long streamStartTime
protected long streamDuration
protected long duration
public int getStreamId()
public void setStreamId(int streamId)
streamId
- 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
- TimeUnitpublic long getStreamDuration()
public long getStreamDuration(java.util.concurrent.TimeUnit timeUnit)
public void setStreamDuration(long duration, java.util.concurrent.TimeUnit timeUnit)
duration
- timeUnit
- TimeUnitpublic long getDuration()
public long getDuration(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public int getAudioWeight()
public long getStartTime()
public long getStartTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- TimeUnitpublic boolean checkIsInvalid()
checkIsInvalid
in class EffectBase