LiteAVSDK
Tencent Cloud LVB SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
V2TXLiveDef

Detailed Description

Key type definitions for Tencent Cloud LVB.


Data Structure Documentation

◆ com::tencent::live2::V2TXLiveDef::V2TXLiveTexture

class com::tencent::live2::V2TXLiveDef::V2TXLiveTexture
Data Fields
int textureId the ID of Texture2D
egl eglContext10 EGL Context.
opengl eglContext14 EGL Context.

◆ com::tencent::live2::V2TXLiveDef::V2TXLiveVideoFrame

class com::tencent::live2::V2TXLiveDef::V2TXLiveVideoFrame
Data Fields
V2TXLivePixelFormat pixelFormat Field description: Video pixel format.
V2TXLiveBufferType bufferType Field description: Video data container format.
V2TXLiveTexture texture Field description: Video texture container
byte[] data Field description: Video data
ByteBuffer buffer Field description: Video data
int width Field description: Video width
int height Field description: Video height.
int rotation Field description: Clockwise rotation angle of video frames.

◆ com::tencent::live2::V2TXLiveDef::V2TXLivePusherStatistics

class com::tencent::live2::V2TXLiveDef::V2TXLivePusherStatistics
Data Fields
int appCpu Field description: CPU utilization of the current app (%)
int systemCpu Field description: CPU utilization of the current system (%)
int width Field description: Video width
int height Field description: Video height
int fps Field description: Frame rate (fps)
int videoBitrate Field description: Video bitrate (Kbps)
int audioBitrate Field description: Audio bitrate (Kbps)

◆ com::tencent::live2::V2TXLiveDef::V2TXLivePlayerStatistics

class com::tencent::live2::V2TXLiveDef::V2TXLivePlayerStatistics
Data Fields
int appCpu Field description: CPU utilization of the current app (%)
int systemCpu Field description: CPU utilization of the current system (%)
int width Field description: Video width
int height Field description: Video height
int fps Field description: Frame rate (fps)
int videoBitrate Field description: Video bitrate (Kbps)
int audioBitrate Field description: Audio bitrate (Kbps)

◆ com::tencent::live2::V2TXLiveDef::V2TXLiveMixStream

class com::tencent::live2::V2TXLiveDef::V2TXLiveMixStream

Public Member Functions

 V2TXLiveMixStream ()
 
 V2TXLiveMixStream (String userId, int x, int y, int width, int height, int zOrder)
 
 V2TXLiveMixStream (V2TXLiveMixStream original)
 
String toString ()
 

Data Fields

String userId
 
String streamId
 
int x
 
int y
 
int width
 
int height
 
int zOrder
 
V2TXLiveMixInputType inputType
 

Constructor & Destructor Documentation

◆ V2TXLiveMixStream() [1/3]

V2TXLiveMixStream ( )
inline

◆ V2TXLiveMixStream() [2/3]

V2TXLiveMixStream ( String  userId,
int  x,
int  y,
int  width,
int  height,
int  zOrder 
)
inline

◆ V2TXLiveMixStream() [3/3]

V2TXLiveMixStream ( V2TXLiveMixStream  original)
inline

Member Function Documentation

◆ toString()

String toString ( )
inline

Field Documentation

◆ userId

String userId

Field description: userId of users whose streams are mixed

◆ streamId

String streamId

Field description: push streamId of users whose streams are mixed. nil indicates the current push streamId.

◆ x

int x

Field description: x-axis (absolute pixels) of the image layer

◆ y

int y

Field description: y-axis (absolute pixels) of the image layer

◆ width

int width

Field description: width (absolute pixels) of the image layer

◆ height

int height

Field description: height (absolute pixels) of the image layer

◆ zOrder

int zOrder

Field description: layer number (1-15), which must be unique

◆ inputType

Field description: input type of the live stream

◆ com::tencent::live2::V2TXLiveDef::V2TXLiveTranscodingConfig

class com::tencent::live2::V2TXLiveDef::V2TXLiveTranscodingConfig

Public Member Functions

 V2TXLiveTranscodingConfig ()
 
 V2TXLiveTranscodingConfig (V2TXLiveTranscodingConfig original)
 
String toString ()
 

Data Fields

int videoWidth
 
int videoHeight
 
int videoBitrate
 
int videoFramerate
 
int videoGOP
 
int backgroundColor
 
String backgroundImage
 
int audioSampleRate
 
int audioBitrate
 
int audioChannels
 
ArrayList< V2TXLiveMixStreammixStreams
 
String outputStreamId
 

Constructor & Destructor Documentation

◆ V2TXLiveTranscodingConfig() [1/2]

◆ V2TXLiveTranscodingConfig() [2/2]

Member Function Documentation

◆ toString()

String toString ( )
inline

Field Documentation

◆ videoWidth

int videoWidth

Field description: width of transcoded video Recommended value: 360 px. If audio-only streams are mixed, the mixing result will carry a video stream that shows a canvas background. To avoid this, set both the width and height to 0 px.

◆ videoHeight

int videoHeight

Field description: height of transcoded video Recommended value: 640 px. If audio-only streams are mixed, the mixing result will carry a video stream that shows a canvas background. To avoid this, set both the width and height to 0 px.

◆ videoBitrate

int videoBitrate

Field description: bitrate (Kbps) for the resolution of the transcoded video Recommended value: if you set it to 0, the backend will calculate a bitrate based on videoWidth and videoHeight. You can also refer to the remarks for the enumerated value V2TXLiveVideoResolution.

◆ videoFramerate

int videoFramerate

Field description: frame rate (fps) for the resolution of the transcoded video Value range: (0,30]; default: 15

◆ videoGOP

int videoGOP

Field description: keyframe interval (GOP) for the resolution of the transcoded video Value range: [1,8]; default value: 2 (sec)

◆ backgroundColor

int backgroundColor

Field description: background color of the mixed video image. The default color is black, and the value is a hex number. For example: "0x61B9F1" represents the RGB color (97,158,241). Default value: 0x000000 (black)

◆ backgroundImage

String backgroundImage

Field description: background image of the mixed video Default value: nil, which means that no background image is set Note: you need to first upload the image in Application Management > Function Configuration > Material Management in the console. You will get an image ID for the image uploaded, which you need to convert to a string and use it as the value of backgroundImage. For example, if the image ID is 63, you should set backgroundImage to 63.

◆ audioSampleRate

int audioSampleRate

Field description: audio sample rate of the transcoded stream Valid values: 12000 Hz, 16000 Hz, 22050 Hz, 24000 Hz, 32000 Hz, 44100 Hz, 48000 Hz (default)

◆ audioBitrate

int audioBitrate

Field description: audio bitrate of the transcoded stream Value range: [32,192]; default value: 64 (Kbps)

◆ audioChannels

int audioChannels

Field description: number of sound channels of the transcoded stream Valid values: 1 (default), 2

◆ mixStreams

ArrayList<V2TXLiveMixStream> mixStreams

Field description: position of each channel of subimage

◆ outputStreamId

String outputStreamId

Field description: ID of the live stream pushed to CDN If you do not set this parameter, the SDK will execute the default logic, that is, it will mix multiple streams in the room into the video stream of the API caller, i.e., A + B => A. If you set this parameter, the SDK will mix multiple streams in the room into the live stream whose ID you have specified, i.e., A + B => C. Default value: nil, which indicates that multiple streams in the room are mixed into the video stream of the API caller

◆ com::tencent::live2::V2TXLiveDef

class com::tencent::live2::V2TXLiveDef