VideoLayout
Layout information of a sub video stream in a composite stream.
public class VideoLayout
{
public string channelId;
public uint uid;
public string strUid;
public uint x;
public uint y
public uint width;
public uint height;
public uint videoState;
}
Properties
- channelId
- Channel name to which the sub video stream belongs.
- uid
- User ID that publishes the sub video stream.
- strUid
- Reserved parameter.
- x
- The x-coordinate (px) of the sub video stream on the composite canvas. That is, the horizontal offset of the top-left corner of the sub video relative to the top-left corner (origin) of the canvas.
- y
- The y-coordinate (px) of the sub video stream on the composite canvas. That is, the vertical offset of the top-left corner of the sub video relative to the top-left corner (origin) of the canvas.
- width
- Width (px) of the sub video stream.
- height
- Height (px) of the sub video stream.
- videoState
- State of the sub video stream on the composite canvas.
- 0: Normal. The video stream is rendered on the canvas.
- 1: Placeholder. The video stream has no video content and is displayed as a placeholder on the canvas.
- 2: Black image. The video stream is replaced with a black image.