Key type definitions for Tencent Cloud LVB.
◆ 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 |
◆ V2TXLiveMixStream() [1/3]
◆ V2TXLiveMixStream() [2/3]
◆ V2TXLiveMixStream() [3/3]
◆ toString()
◆ userId
Field description: userId
of users whose streams are mixed
◆ streamId
Field description: push streamId
of users whose streams are mixed. nil
indicates the current push streamId
.
Field description: x-axis (absolute pixels) of the image layer
Field description: y-axis (absolute pixels) of the image layer
◆ width
Field description: width (absolute pixels) of the image layer
◆ height
Field description: height (absolute pixels) of the image layer
◆ 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 |
◆ V2TXLiveTranscodingConfig() [1/2]
◆ V2TXLiveTranscodingConfig() [2/2]
◆ toString()
◆ 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
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
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
Field description: frame rate (fps) for the resolution of the transcoded video Value range: (0,30]; default: 15
◆ videoGOP
Field description: keyframe interval (GOP) for the resolution of the transcoded video Value range: [1,8]; default value: 2 (sec)
◆ 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
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
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
Field description: audio bitrate of the transcoded stream Value range: [32,192]; default value: 64 (Kbps)
◆ audioChannels
Field description: number of sound channels of the transcoded stream Valid values: 1 (default), 2
◆ mixStreams
Field description: position of each channel of subimage
◆ 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 |