Packages | |
package | com.tencent.live2 |
Data Structures | |
interface | V2TXLiveDef.V2TXLiveMode |
interface | V2TXLiveDef.V2TXLiveVideoResolution |
interface | V2TXLiveDef.V2TXLiveVideoResolutionMode |
class | V2TXLiveDef.V2TXLiveVideoEncoderParam |
interface | V2TXLiveDef.V2TXLiveMirrorType |
interface | V2TXLiveDef.V2TXLiveFillMode |
interface | V2TXLiveDef.V2TXLiveRotation |
interface | V2TXLiveDef.V2TXLivePixelFormat |
interface | V2TXLiveDef.V2TXLiveBufferType |
class | V2TXLiveDef.V2TXLiveTexture |
class | V2TXLiveDef.V2TXLiveVideoFrame |
interface | V2TXLiveDef.V2TXLiveAudioQuality |
class | V2TXLiveDef.V2TXLiveAudioFrame |
class | V2TXLiveDef.V2TXLivePusherStatistics |
class | V2TXLiveDef.V2TXLivePlayerStatistics |
interface | V2TXLiveDef.V2TXLivePushStatus |
interface | V2TXLiveDef.V2TXLiveMixInputType |
class | V2TXLiveDef.V2TXLiveMixStream |
class | V2TXLiveDef.V2TXLiveTranscodingConfig |
class | V2TXLiveDef.V2TXLiveLogLevel |
class | V2TXLiveDef.V2TXLiveLogConfig |
class | V2TXLiveDef |
Key type definitions for Tencent Cloud LVB.
interface com::tencent::live2::V2TXLiveDef::V2TXLiveMode |
interface com::tencent::live2::V2TXLiveDef::V2TXLiveVideoResolution |
Video resolution.
interface com::tencent::live2::V2TXLiveDef::V2TXLiveVideoResolutionMode |
Video aspect ratio mode.
Data Fields | ||
---|---|---|
V2TXLiveVideoResolutionModeLandscape | Landscape resolution. | |
V2TXLiveVideoResolutionModePortrait | Portrait resolution. |
class com::tencent::live2::V2TXLiveDef::V2TXLiveVideoEncoderParam |
Video encoding parameters
These settings determine the quality of image viewed by remote users
Public Member Functions | |
V2TXLiveVideoEncoderParam (V2TXLiveVideoResolution videoResolution) | |
String | toString () |
Data Fields | |
V2TXLiveVideoResolution | videoResolution |
V2TXLiveVideoResolutionMode | videoResolutionMode |
int | videoFps |
int | videoBitrate |
int | minVideoBitrate |
|
inline |
|
inline |
int minVideoBitrate |
int videoBitrate |
int videoFps |
V2TXLiveVideoResolution videoResolution |
V2TXLiveVideoResolutionMode videoResolutionMode |
interface com::tencent::live2::V2TXLiveDef::V2TXLiveMirrorType |
Local camera mirror type.
interface com::tencent::live2::V2TXLiveDef::V2TXLiveFillMode |
Image fill mode.
interface com::tencent::live2::V2TXLiveDef::V2TXLiveRotation |
interface com::tencent::live2::V2TXLiveDef::V2TXLivePixelFormat |
interface com::tencent::live2::V2TXLiveDef::V2TXLiveBufferType |
Video data container format.
Data Fields | ||
---|---|---|
V2TXLiveBufferTypeByteArray | ByteArray. | |
V2TXLiveBufferTypeByteBuffer | ByteBuffer. | |
V2TXLiveBufferTypeTexture | Texture. | |
V2TXLiveBufferTypeUnknown | Unknown. |
class com::tencent::live2::V2TXLiveDef::V2TXLiveTexture |
class com::tencent::live2::V2TXLiveDef::V2TXLiveVideoFrame |
Video frame information V2TXLiveVideoFrame describes the raw data of a video image frame, which can be the image before frame encoding or the image after frame decoding.
Data Fields | ||
---|---|---|
ByteBuffer | buffer | Field description: Video data |
V2TXLiveBufferType | bufferType | Field description: Video data container format. |
byte[] | data | Field description: Video data |
int | height | Field description: Video height. |
V2TXLivePixelFormat | pixelFormat | Field description: Video pixel format. |
int | rotation | Field description: Clockwise rotation angle of video frames. |
V2TXLiveTexture | texture | Field description: Video texture container |
int | width | Field description: Video width |
interface com::tencent::live2::V2TXLiveDef::V2TXLiveAudioQuality |
Audio quality.
class com::tencent::live2::V2TXLiveDef::V2TXLiveAudioFrame |
class com::tencent::live2::V2TXLiveDef::V2TXLivePusherStatistics |
Pusher statistics.
class com::tencent::live2::V2TXLiveDef::V2TXLivePlayerStatistics |
Player statistics.
interface com::tencent::live2::V2TXLiveDef::V2TXLivePushStatus |
interface com::tencent::live2::V2TXLiveDef::V2TXLiveMixInputType |
class com::tencent::live2::V2TXLiveDef::V2TXLiveMixStream |
Position of each subimage in On-Cloud MixTranscoding.
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 |
|
inline |
|
inline |
|
inline |
|
inline |
int height |
Field description: height (absolute pixels) of the image layer
V2TXLiveMixInputType inputType |
Field description: input type of the live stream
String streamId |
Field description: push streamId
of users whose streams are mixed. nil
indicates the current push streamId
.
String userId |
Field description: userId
of users whose streams are mixed
int width |
Field description: width (absolute pixels) of the image layer
int x |
Field description: x-axis (absolute pixels) of the image layer
int y |
Field description: y-axis (absolute pixels) of the image layer
int zOrder |
Field description: layer number (1-15), which must be unique
class com::tencent::live2::V2TXLiveDef::V2TXLiveTranscodingConfig |
Configure On-Cloud MixTranscoding.
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< V2TXLiveMixStream > | mixStreams |
String | outputStreamId |
|
inline |
|
inline |
|
inline |
int audioBitrate |
Field description: audio bitrate of the transcoded stream Value range: [32,192]; default value: 64 (Kbps)
int audioChannels |
Field description: number of sound channels of the transcoded stream Valid values: 1 (default), 2
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)
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)
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
.
ArrayList<V2TXLiveMixStream> mixStreams |
Field description: position of each channel of subimage
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
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 interfaceerated value V2TXLiveVideoResolution
.
int videoFramerate |
Field description: frame rate (fps) for the resolution of the transcoded video Value range: (0,30]; default: 15
int videoGOP |
Field description: keyframe interval (GOP) for the resolution of the transcoded video Value range: [1,8]; default value: 2 (sec)
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.
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.
class com::tencent::live2::V2TXLiveDef::V2TXLiveLogLevel |
Log level.
Static Public Attributes | |
static final int | V2TXLiveLogLevelAll = 0 |
static final int | V2TXLiveLogLevelDebug = 1 |
static final int | V2TXLiveLogLevelInfo = 2 |
static final int | V2TXLiveLogLevelWarning = 3 |
static final int | V2TXLiveLogLevelError = 4 |
static final int | V2TXLiveLogLevelFatal = 5 |
static final int | V2TXLiveLogLevelNULL = 6 |
|
static |
Output all levels of log.
|
static |
Output DEBUG, INFO, WARNING, ERROR and FATAL level log.
|
static |
Output ERROR and FATAL level log.
|
static |
Only output FATAL level log.
|
static |
Output INFO, WARNING, ERROR and FATAL level log.
|
static |
Does not output any sdk log.
|
static |
Output WARNING, ERROR and FATAL level log.
class com::tencent::live2::V2TXLiveDef::V2TXLiveLogConfig |
Log configuration.
class com::tencent::live2::V2TXLiveDef |