public class AliyunMixTrack
extends java.lang.Object
Constructor and Description |
---|
AliyunMixTrack() |
AliyunMixTrack(int trackId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
addStream(AliyunMixStream stream)
在该轨道上添加视频流,只能添加一个,添加多个以最后添加的为准
|
int |
getMixAudioWeight()
v3.19.0 新增
获取音轨音量大小
|
AliyunMixStream |
getMixStream()
获取轨道上的视频流
|
AliyunMixTrackLayoutParam |
getMixTrackLayoutParam()
v3.19.0 新增
获取当前轨道的布局参数
|
int |
getTrackId()
Deprecated.
|
boolean |
isAudioOutputTrack()
v3.19.0 新增
当前轨的音频是否参与混音输出,默认为true
|
void |
setIsOutputAudioTrack(boolean isOutputAudioTrack)
v3.19.0 新增
设置该轨道是否参与音频输出,设置false表示该轨道静音
|
void |
setMixAudioWeight(int mixAudioWeight)
v3.19.0新增
设置混音时的音量大小
混音类型为com.aliyun.svideosdk.mixrecorder.MixAudioSourceType#MIX生效
|
void |
setMixTrackLayoutParam(AliyunMixTrackLayoutParam mMixTrackLayoutParam)
v3.19.0 新增
设置/修改当前合拍轨道的布局参数
|
void |
setTrackId(int trackId)
Deprecated.
|
public AliyunMixTrack()
@Deprecated public AliyunMixTrack(int trackId)
public int addStream(AliyunMixStream stream)
stream
- AliyunMixStream
public void setMixAudioWeight(int mixAudioWeight)
mixAudioWeight
- [0~100]com.aliyun.svideosdk.mixrecorder.MixAudioSourceType#MIX}
public void setIsOutputAudioTrack(boolean isOutputAudioTrack)
isOutputAudioTrack
- true:音频输出 , false: 静音public void setMixTrackLayoutParam(AliyunMixTrackLayoutParam mMixTrackLayoutParam)
mMixTrackLayoutParam
- see AliyunMixTrackLayoutParam
@Deprecated public int getTrackId()
@Deprecated public void setTrackId(int trackId)
trackId
- public boolean isAudioOutputTrack()
public int getMixAudioWeight()
public AliyunMixTrackLayoutParam getMixTrackLayoutParam()
AliyunMixTrackLayoutParam
public AliyunMixStream getMixStream()
AliyunMixStream