TranscodingUser
- Unity
更新时间不可用
参与转码合流的每个主播的设置。
public class TranscodingUser
{
public TranscodingUser()
{
uid = 0;
x = 0;
y = 0;
width = 0;
height = 0;
zOrder = 0;
alpha = 1.0;
audioChannel = 0;
}
public TranscodingUser(uint uid, int x, int y, int width, int height, int zOrder, double alpha,
int audioChannel)
{
this.uid = uid;
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.zOrder = zOrder;
this.alpha = alpha;
this.audioChannel = audioChannel;
}
public uint uid { set; get; }
public int x { set; get; }
public int y { set; get; }
public int width { set; get; }
public int height { set; get; }
public int zOrder { set; get; }
public double alpha { set; get; }
public int audioChannel { set; get; }
}属性
| 参数名 | 描述 |
|---|---|
uid | |
x | 主播视频画面在输出视频画面的 x 坐标 (px),以输出视频画面的左上角为原点。取值范围为[0,width],width 为 LiveTranscoding 中设置的 |
y | 主播视频画面在输出视频画面的 y 坐标 (px),以输出视频画面的左上角为原点。取值范围为[0,height],height 为 LiveTranscoding 中设置的 |
width | |
height | |
zOrder | |
alpha | |
audioChannel | 注: 取值不为 主播音频在输出音频中占用的声道。默认值为 0,取值范围为 [0,5]:
|