NERtc iOS SDK  V4.4.301
属性 | 所有成员列表
NERtcLiveStreamUserTranscoding类 参考

The member layout in live streaming 更多...

#import <NERtcEngineBase.h>

类 NERtcLiveStreamUserTranscoding 继承关系图:

属性

uint64_t uid
 Pull the video stream of the user with the specified uid into the live event. 更多...
 
BOOL videoPush
 Specifies whether to play back the specific video stream from the user to viewers in the live event. 更多...
 
NSInteger x
 The X parameter is used to set the horizontal coordinate value of the user image. 更多...
 
NSInteger y
 The Y parameter is used to set the vertical coordinate value of the user image. 更多...
 
NSInteger width
 The width of the user image in the canvas. 更多...
 
NSInteger height
 The height of the user image in the canvas. 更多...
 
BOOL audioPush
 Specifies whether to mix the audio stream from the user in the live event. 更多...
 
NSInteger zOrder
 The layer number is used to determine the rendering level. 更多...
 
NERtcLiveStreamVideoScaleMode adaption
 The adaptation between the video and the canvas in live streaming. 更多...
 

详细描述

The member layout in live streaming

属性说明

◆ adaption

- (NERtcLiveStreamVideoScaleMode) adaption
readwritenonatomicassign

The adaptation between the video and the canvas in live streaming.

For more information, see NERtcLiveStreamVideoScaleMode.

◆ audioPush

- (BOOL) audioPush
readwritenonatomicassign

Specifies whether to mix the audio stream from the user in the live event.

Valid values:

-YES: (default) mixes the audio stream from the user in the live event. -NO: mute the audio stream from the user in the live event.

◆ height

- (NSInteger) height
readwritenonatomicassign

The height 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.

◆ uid

- (uint64_t) uid
readwritenonatomicassign

Pull the video stream of the user with the specified uid into the live event.

If you add multiple users, the uid must be unique.

◆ videoPush

- (BOOL) videoPush
readwritenonatomicassign

Specifies whether to play back the specific video stream from the user to viewers in the live event.

Valid values:

-YES: (default) plays the video stream. -NO: does not play the video stream.

The setting becomes invalid when the streaming mode is set to kNERtcLsModeAudio.

◆ width

- (NSInteger) width
readwritenonatomicassign

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.

◆ x

- (NSInteger) x
readwritenonatomicassign

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.

◆ y

- (NSInteger) y
readwritenonatomicassign

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.

◆ zOrder

- (NSInteger) zOrder
readwritenonatomicassign

The layer number is used to determine the rendering level.

Value range: 0 to 100. A value of 0 indicates that the layer is at the bottom. A value of 100 indicates that the layer is at the top. 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.)


该类的文档由以下文件生成: