Namespaces | |
liteav | |
Data Structures | |
struct | V2TXLiveVideoEncoderParam |
struct | V2TXLiveVideoFrame |
struct | V2TXLiveAudioFrame |
struct | V2TXLiveAudioFrameObserverFormat |
struct | V2TXLivePusherStatistics |
struct | V2TXLivePlayerStatistics |
struct | V2TXLiveLogConfig |
struct | V2TXLiveImage |
struct | V2TXLiveScreenCaptureSourceInfo |
class | IV2TXLiveScreenCaptureSourceList |
struct | V2TXLiveScreenCaptureProperty |
Macros | |
#define | LITEAV_API __declspec(dllimport) |
#define | V2_API |
#define | TARGET_PLATFORM_DESKTOP ((__APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE) || _WIN32) |
#define | TARGET_PLATFORM_PHONE (__ANDROID__ || (__APPLE__ && TARGET_OS_IOS)) |
Key type definitions for Tencent Cloud LVB.
struct liteav::V2TXLiveVideoEncoderParam |
Video encoding parameters
These settings determine the quality of image viewed by remote users
Public Member Functions | |
V2TXLiveVideoEncoderParam (V2TXLiveVideoResolution resolution) | |
Data Fields | |
V2TXLiveVideoResolution | videoResolution |
V2TXLiveVideoResolutionMode | videoResolutionMode |
uint32_t | videoFps |
uint32_t | videoBitrate |
uint32_t | minVideoBitrate |
V2TXLiveVideoEncoderParam | ( | V2TXLiveVideoResolution | resolution | ) |
uint32_t minVideoBitrate |
uint32_t videoBitrate |
uint32_t videoFps |
V2TXLiveVideoResolution videoResolution |
V2TXLiveVideoResolutionMode videoResolutionMode |
struct liteav::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.
Public Member Functions | |
V2TXLiveVideoFrame () | |
Data Fields | |
V2TXLivePixelFormat | pixelFormat |
V2TXLiveBufferType | bufferType |
char * | data |
int32_t | length |
int32_t | width |
int32_t | height |
V2TXLiveRotation | rotation |
|
inline |
V2TXLiveBufferType bufferType |
Field description: Video data container format.
char* data |
Field description: Video data when bufferType is V2TXLiveBufferTypePixelBuffer.
int32_t height |
Field description: Video height.
int32_t length |
Field description: Video length
V2TXLivePixelFormat pixelFormat |
Field description: Video pixel format.
V2TXLiveRotation rotation |
Field description: Clockwise rotation angle of video frames.
int32_t width |
Field description: Video width
struct liteav::V2TXLiveAudioFrame |
audio frame
Public Member Functions | |
V2TXLiveAudioFrame () | |
Data Fields | |
char * | data |
uint32_t | length |
uint32_t | sampleRate |
uint32_t | channel |
|
inline |
uint32_t channel |
Field description: number of sound channels
char* data |
Field description: audio data
uint32_t length |
Field description: audio data length
uint32_t sampleRate |
Field description: audio sample rate
struct liteav::V2TXLiveAudioFrameObserverFormat |
audio frame format
Public Member Functions | |
V2TXLiveAudioFrameObserverFormat () | |
Data Fields | |
int | sampleRate |
int | channel |
int | samplesPerCall |
|
inline |
int channel |
int sampleRate |
int samplesPerCall |
struct liteav::V2TXLivePusherStatistics |
Pusher statistics.
Public Member Functions | |
V2TXLivePusherStatistics () | |
Data Fields | |
int32_t | appCpu |
int32_t | systemCpu |
int32_t | width |
int32_t | height |
int32_t | fps |
int32_t | videoBitrate |
int32_t | audioBitrate |
|
inline |
int32_t appCpu |
Field description: CPU utilization of the current app (%)
int32_t audioBitrate |
Field description: Audio bitrate (Kbps)
int32_t fps |
Field description: Frame rate (fps)
int32_t height |
Field description: Video height
int32_t systemCpu |
Field description: CPU utilization of the current system (%)
int32_t videoBitrate |
Field description: Video bitrate (Kbps)
int32_t width |
Field description: Video width
struct liteav::V2TXLivePlayerStatistics |
Player statistics.
Public Member Functions | |
V2TXLivePlayerStatistics () | |
Data Fields | |
int32_t | appCpu |
int32_t | systemCpu |
int32_t | width |
int32_t | height |
int32_t | fps |
int32_t | videoBitrate |
int32_t | audioBitrate |
|
inline |
int32_t appCpu |
Field description: CPU utilization of the current app (%)
int32_t audioBitrate |
Field description: Audio bitrate (Kbps)
int32_t fps |
Field description: Frame rate (fps)
int32_t height |
Field description: Video height
int32_t systemCpu |
Field description: CPU utilization of the current system (%)
int32_t videoBitrate |
Field description: Video bitrate (Kbps)
int32_t width |
Field description: Video width
struct liteav::V2TXLiveLogConfig |
Public Member Functions | |
V2TXLiveLogConfig () | |
Data Fields | |
V2TXLiveLogLevel | logLevel |
bool | enableObserver |
bool | enableConsole |
bool | enableLogFile |
const char * | logPath |
|
inline |
bool enableConsole |
Field description: Whether to allow the SDK to print Log on the console of the editor (XCoder, Android Studio, Visual Studio, etc.) Recommended value: Default value: false
bool enableLogFile |
Field description: Whether to enable local log file Special Instructions: If not for special needs, please do not close the local log file, otherwise the Tencent Cloud technical team will not be able to track and locate problems when they occur. Recommended value: Default value: true
bool enableObserver |
Field description: Whether to receive the log information to be printed through V2TXLivePremierObserver Special Instructions: If you want to implement Log writing by yourself, you can turn on this switch, Log information will be called back to you V2TXLivePremierObserver::onLog. Recommended value: Default value: false
V2TXLiveLogLevel logLevel |
Field description: Set Log level Recommended value: Default value: V2TXLiveLogLevelAll
const char* logPath |
Field description: Set the storage directory of the local log, default Log storage location: Windows:appdata%/liteav/log
struct liteav::V2TXLiveImage |
Structure for storing window image infos.
Public Member Functions | |
V2TXLiveImage () | |
Data Fields | |
const char * | imageSrc |
V2TXLiveImageType | imageType |
uint32_t | imageWidth |
uint32_t | imageHeight |
uint32_t | imageLength |
|
inline |
uint32_t imageHeight |
image height(ignore for V2TXLiveImageTypeFile)
uint32_t imageLength |
image lenght in bytes
const char* imageSrc |
V2TXLiveImageTypeFile:imagePath,others:image content.
V2TXLiveImageType imageType |
image type
uint32_t imageWidth |
image width(ignore for V2TXLiveImageTypeFile)
struct liteav::V2TXLiveScreenCaptureSourceInfo |
Screen sharing windows
You can call getScreenCaptureSources()
to get a list of the sharable windows, which is returned via IV2TXLiveScreenCaptureSourceList
.
Public Member Functions | |
V2TXLiveScreenCaptureSourceInfo () | |
Data Fields | |
V2TXLiveScreenCaptureSourceType | sourceType |
void * | sourceId |
const char * | sourceName |
V2TXLiveImage | thumbBGRA |
V2TXLiveImage | iconBGRA |
bool | isMinimizeWindow |
bool | isMainScreen |
|
inline |
V2TXLiveImage iconBGRA |
icon of the shared window
bool isMainScreen |
Whether it is the main display (applicable to the case of multiple displays)
bool isMinimizeWindow |
is minimized window or not
void* sourceId |
capturing source ID. For a window, this field indicates a window ID; for a screen, this field indicates a display ID.
const char* sourceName |
capturing source name (encoded in UTF-8)
V2TXLiveScreenCaptureSourceType sourceType |
capturing source type (i.e., whether to share the entire screen or a certain window)
V2TXLiveImage thumbBGRA |
thumbnail of the shared window
class liteav::IV2TXLiveScreenCaptureSourceList |
List of sharable screens and windows
Public Member Functions | |
virtual uint32_t | getCount ()=0 |
virtual V2TXLiveScreenCaptureSourceInfo | getSourceInfo (uint32_t index)=0 |
virtual void | release ()=0 |
Protected Member Functions | |
virtual | ~IV2TXLiveScreenCaptureSourceList () |
|
inlineprotectedvirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
After traversing the list, call release
to release the resources.
struct liteav::V2TXLiveScreenCaptureProperty |
Advanced control parameter of screen sharing
This parameter is used in the screen sharing-related API setScreenCaptureSource to set a series of advanced control parameters when specifying the sharing target. For example, whether to capture the cursor, whether to capture the subwindow, and whether to draw a frame around the shared target.
Public Member Functions | |
V2TXLiveScreenCaptureProperty () | |
Data Fields | |
bool | enableCaptureMouse |
bool | enableHighlightBorder |
bool | enableHighPerformance |
int | highlightBorderColor |
int | highlightBorderSize |
bool | enableCaptureChildWindow |
|
inline |
bool enableCaptureChildWindow |
whether to capture the subwindow during window capturing (the subwindow and the captured window need to have an Owner
or Popup
attribute). Default value: false.
bool enableCaptureMouse |
whether to capture the cursor while capturing the target content. Default value: true.
bool enableHighlightBorder |
whether to highlight the window being shared (i.e., drawing a frame around the shared target). Default value: true.
bool enableHighPerformance |
whether to enable the high performance mode (which will take effect only during screen sharing). Default value: true. Note: the screen capturing performance is the best after this mode is enabled, but the anti-blocking ability will be lost. If you enable enableHighlightBorder
and enableHighPerformance
at the same time, remote users will see the highlighted frame.
int highlightBorderColor |
specify the color of the highlighted frame in RGB format. 0 indicates to use the default color of #8CBF26.
int highlightBorderSize |
specify the width of the highlighted frame. 0 indicates to use the default width of 5 px. The maximum value you can set is 50.
#define LITEAV_API __declspec(dllimport) |
#define TARGET_PLATFORM_DESKTOP ((__APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE) || _WIN32) |
#define TARGET_PLATFORM_PHONE (__ANDROID__ || (__APPLE__ && TARGET_OS_IOS)) |
#define V2_API |