TranscodingVideoStream
The video streams for the video mixing on the local client.
struct TranscodingVideoStream { agora::media::MEDIA_SOURCE_TYPE sourceType; uid_t remoteUserUid; const char* imageUrl; int x; int y; int width; int height; int zOrder; double alpha; bool mirror; TranscodingVideoStream() : sourceType(agora::media::PRIMARY_CAMERA_SOURCE), remoteUserUid(0), imageUrl(NULL), x(0), y(0), width(0), height(0), zOrder(0), alpha(1.0), mirror(false) {} };
Attributes
- sourceType
-
The source type of video for the video mixing on the local client. See VIDEO_SOURCE_TYPE.
- remoteUserUid
-
The ID of the remote user.Attention: Use this parameter only when the source type of the video for the video mixing on the local client is VIDEO_SOURCE_REMOTE.
- imageUrl
-
The URL of the image.Attention: Use this parameter only when the source type of the video for the video mixing on the local client is
RTC_IMAGE
. - x
-
The horizontal displacement of the top-left corner of the video for the video mixing on the client relative to the top-left corner (origin) of the canvas for this video mixing.
- y
-
The vertical displacement of the top-left corner of the video for the video mixing on the client relative to the top-left corner (origin) of the canvas for this video mixing.
- width
-
The width (px) of the video for the video mixing on the local client.
- height
-
The height (px) of the video for the video mixing on the local client.
- zOrder
- The number of the layer to which the video for the video mixing on the local client belongs. The value range is [0,100].
- 0: (Default) The layer is at the bottom.
- 100: The layer is at the top.
- alpha
-
The transparency of the video for the video mixing on the local client. The value range is [0.0,1.0]. 0.0 means the transparency is completely transparent. 1.0 means the transparency is opaque.
- mirror
- Whether to mirror the video for the video mixing on the local client.
true
: Mirror the captured video.false
: (Default) Do not mirror the captured video.
Attention: The paramter only works for videos with the source typeCAMERA
.