VideoLayout
Describes the position and state of a sub video stream in the video mixing layout.
public static class VideoLayout {
public String channelId;
public int uid;
public String strUid;
public int videoState;
public int x;
public int y;
public int width;
public int height;
}
Properties
- channelId
- The name of the channel to which the sub video stream belongs.
- uid
- The user ID that publishes the sub video stream.
- strUid
- Reserved field for future use.
- videoState
- The state of the sub video stream on the mixed video canvas:
- 0: Normal. The sub video stream is rendered on the mixed canvas.
- 1: Placeholder image. The sub video stream has no video frames and is displayed as a placeholder image on the mixed canvas.
- 2: Black image. The sub video stream is replaced by a black image.
- x
- The X coordinate of the sub video stream on the mixed canvas (in px), which is the horizontal offset of the top-left corner of the video relative to the top-left corner of the canvas.
- y
- The Y coordinate of the sub video stream on the mixed canvas (in px), which is the vertical offset of the top-left corner of the video relative to the top-left corner of the canvas.
- width
- The width of the sub video stream (in px).
- height
- The height of the sub video stream (in px).