NERtc Windows SDK
V4.4.301
|
#include <nertc_engine_defines.h>
Public 属性 | |
uid_t | uid |
bool | video_push |
NERtcLiveStreamVideoScaleMode | adaption |
int | x |
int | y |
int | width |
int | height |
bool | audio_push |
int | z_order |
The member layout in live streaming.
NERtcLiveStreamVideoScaleMode nertc::NERtcLiveStreamUserTranscoding::adaption |
Adjustment between the video and the canvas in live streaming. For more information, see NERtcLiveStreamVideoScaleMode.
bool nertc::NERtcLiveStreamUserTranscoding::audio_push |
Specifies whether to mix the audio stream from the user in the live event. Valid values:
int nertc::NERtcLiveStreamUserTranscoding::height |
The height of the user image in the canvas.
The X parameter is used to set the horizontal coordinate value of the user image. You can specify a point in the canvas with X and Y coordinates. This point is used as the anchor of the upper left corner of the user image. 0 to 1920. The default value is 0. If the specified value is set to an odd value, the value is automatically rounded down to an even number.
Value range: 0 to 1920. If the specified value is set to an odd value, the value is automatically rounded down to an even number.
uid_t nertc::NERtcLiveStreamUserTranscoding::uid |
Pulls the video stream of the user with the specified uid into the live event. If you add multiple users, the uid must be unique.
bool nertc::NERtcLiveStreamUserTranscoding::video_push |
Specifies whether to play back the specific video stream from the user to viewers in the live event. Valid values:
int nertc::NERtcLiveStreamUserTranscoding::width |
The width of the user image in the canvas.
Value range: 0 to 1920. The default value is 0. If the specified value is set to an odd value, the value is automatically rounded down to an even number.
If the user image exceeds the canvas, an error occurs when you call the method.
int nertc::NERtcLiveStreamUserTranscoding::x |
The X parameter is used to set the horizontal coordinate value of the user image. You can specify a point in the canvas with X and Y coordinates. This point is used as the anchor of the upper left corner of the user image.
Value range: 0 to 1920. If the specified value is set to an odd value, the value is automatically rounded down to an even number.
If the user image exceeds the canvas, an error occurs when you call the method.
int nertc::NERtcLiveStreamUserTranscoding::y |
The Y parameter is used to set the vertical coordinate value of the user image. You can specify a point in the canvas with X and Y coordinates. This point is used as the anchor of the upper left corner of the user image.
Value range: 0 to 1920. If the specified value is set to an odd value, the value is automatically rounded down to an even number.
If the user image exceeds the canvas, an error occurs when you call the method.
int nertc::NERtcLiveStreamUserTranscoding::z_order |
The layer number that is used to determine the rendering level. Value range: 0 to 100. A value of 0 indicates the bottom layer and 100 indicates the top layer.
The rendering area at the same level is overwritten based on the existing overlay strategy. Rendering is performed in the order of the array, and the index increases in ascending order.