Data Structures | |
class | V2TXLiveVideoEncoderParam |
class | V2TXLiveVideoFrame |
class | V2TXLiveAudioFrame |
class | V2TXLivePusherStatistics |
class | V2TXLivePlayerStatistics |
class | V2TXLiveMixStream |
class | V2TXLiveTranscodingConfig |
class | V2TXLiveLogConfig |
Typedefs | |
typedef UIView | TXView |
typedef UIImage | TXImage |
Enumerations | |
enum | V2TXLiveMode : NSUInteger |
Video type definitions | |
enum | V2TXLiveVideoResolution : NSInteger |
enum | V2TXLiveVideoResolutionMode : NSInteger |
enum | V2TXLiveMirrorType : NSInteger |
enum | V2TXLiveFillMode : NSInteger |
enum | V2TXLiveRotation : NSInteger |
enum | V2TXLivePixelFormat : NSInteger |
enum | V2TXLiveBufferType : NSInteger |
Audio type definitions | |
enum | V2TXLiveAudioQuality : NSInteger |
Definitions of connection-status-related enumerated values | |
enum | V2TXLivePushStatus : NSInteger |
enum | V2TXAudioRoute : NSInteger |
enum | V2TXLiveMixInputType : NSInteger |
Definitions of common configuration components | |
enum | V2TXLiveLogLevel : NSInteger |
Key type definitions for Tencent Cloud LVB.
class V2TXLiveVideoEncoderParam |
Video encoding parameters
These settings determine the quality of image viewed by remote users
Instance Methods | |
(instancetype _Nonnull) | - initWith: |
Properties | |
V2TXLiveVideoResolution | videoResolution |
V2TXLiveVideoResolutionMode | videoResolutionMode |
int | videoFps |
int | videoBitrate |
int | minVideoBitrate |
- (instancetype _Nonnull) initWith: | (V2TXLiveVideoResolution) | resolution |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
class 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.
Properties | |
V2TXLivePixelFormat | pixelFormat |
V2TXLiveBufferType | bufferType |
NSData * | data |
CVPixelBufferRef | pixelBuffer |
NSUInteger | width |
NSUInteger | height |
V2TXLiveRotation | rotation |
GLuint | textureId |
|
readwritenonatomicassign |
Field description: Video data container format.
Recommended value: V2TXLiveBufferTypePixelBuffer
|
readwritenonatomicstrong |
Field description: Video data when bufferType is V2TXLiveBufferTypeNSData.
|
readwritenonatomicassign |
Field description: Video height.
|
readwritenonatomicassign |
Field description: Video data when bufferType is V2TXLiveBufferTypePixelBuffer.
|
readwritenonatomicassign |
Field description: Video pixel format.
Recommended value: V2TXLivePixelFormatNV12
|
readwritenonatomicassign |
Field description: Clockwise rotation angle of video frames.
|
readwritenonatomicassign |
Field description: Texture ID
|
readwritenonatomicassign |
Field description: Video width
class V2TXLiveAudioFrame |
audio frame
Properties | |
NSData * | data |
int | sampleRate |
int | channel |
|
readwritenonatomicassign |
Field description: number of sound channels
|
readwritenonatomicstrong |
Field description: audio data
|
readwritenonatomicassign |
Field description: audio sample rate
class V2TXLivePusherStatistics |
Pusher statistics.
Properties | |
NSUInteger | appCpu |
NSUInteger | systemCpu |
NSUInteger | width |
NSUInteger | height |
NSUInteger | fps |
NSUInteger | videoBitrate |
NSUInteger | audioBitrate |
|
readwritenonatomicassign |
Field description: CPU utilization of the current app (%)
|
readwritenonatomicassign |
Field description: Audio bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Frame rate (fps)
|
readwritenonatomicassign |
Field description: Video height
|
readwritenonatomicassign |
Field description: CPU utilization of the current system (%)
|
readwritenonatomicassign |
Field description: Video bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Video width
class V2TXLivePlayerStatistics |
Player statistics.
Properties | |
NSUInteger | appCpu |
NSUInteger | systemCpu |
NSUInteger | width |
NSUInteger | height |
NSUInteger | fps |
NSUInteger | videoBitrate |
NSUInteger | audioBitrate |
|
readwritenonatomicassign |
Field description: CPU utilization of the current app (%)
|
readwritenonatomicassign |
Field description: Audio bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Frame rate (fps)
|
readwritenonatomicassign |
Field description: Video height
|
readwritenonatomicassign |
Field description: CPU utilization of the current system (%)
|
readwritenonatomicassign |
Field description: Video bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Video width
class V2TXLiveMixStream |
Position of each subimage in On-Cloud MixTranscoding.
Properties | |
NSString * | userId |
NSString * | streamId |
NSInteger | x |
NSInteger | y |
NSInteger | width |
NSInteger | height |
NSUInteger | zOrder |
V2TXLiveMixInputType | inputType |
|
readwritenonatomicassign |
Field description: height (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: input type of the live stream
|
readwritenonatomiccopy |
Field description: push streamId
of users whose streams are mixed. nil
indicates the current push streamId
.
|
readwritenonatomiccopy |
Field description: userId
of users whose streams are mixed
|
readwritenonatomicassign |
Field description: width (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: x-axis (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: y-axis (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: layer number (1-15), which must be unique
class V2TXLiveTranscodingConfig |
Configure On-Cloud MixTranscoding.
Properties | |
NSUInteger | videoWidth |
NSUInteger | videoHeight |
NSUInteger | videoBitrate |
NSUInteger | videoFramerate |
NSUInteger | videoGOP |
NSUInteger | backgroundColor |
NSString * | backgroundImage |
NSUInteger | audioSampleRate |
NSUInteger | audioBitrate |
NSUInteger | audioChannels |
NSArray< V2TXLiveMixStream * > * | mixStreams |
NSString * | outputStreamId |
|
readwritenonatomicassign |
Field description: audio bitrate of the transcoded stream Value range: [32,192]; default value: 64 (Kbps)
|
readwritenonatomicassign |
Field description: number of sound channels of the transcoded stream Valid values: 1 (default), 2
|
readwritenonatomicassign |
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)
|
readwritenonatomicassign |
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)
|
readwritenonatomiccopy |
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
.
|
readwritenonatomiccopy |
Field description: position of each channel of subimage
|
readwritenonatomiccopy |
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
|
readwritenonatomicassign |
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
.
|
readwritenonatomicassign |
Field description: frame rate (fps) for the resolution of the transcoded video Value range: (0,30]; default: 15
|
readwritenonatomicassign |
Field description: keyframe interval (GOP) for the resolution of the transcoded video Value range: [1,8]; default value: 2 (sec)
|
readwritenonatomicassign |
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.
|
readwritenonatomicassign |
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 V2TXLiveLogConfig |
Properties | |
V2TXLiveLogLevel | logLevel |
BOOL | enableObserver |
BOOL | enableConsole |
BOOL | enableLogFile |
NSString * | logPath |
|
readwritenonatomicassign |
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: NO
|
readwritenonatomicassign |
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: YES
|
readwritenonatomicassign |
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: NO
|
readwritenonatomicassign |
Field description: Set Log level
Recommended value: Default value: V2TXLiveLogLevelAll
|
readwritenonatomiccopy |
Field description: Set the storage directory of the local log, default Log storage location: iOS & Mac: sandbox Documents/log
typedef NSImage TXImage |
typedef NSView TXView |
enum V2TXAudioRoute : NSInteger |
enum V2TXLiveAudioQuality : NSInteger |
Audio quality.
enum V2TXLiveBufferType : NSInteger |
Video data container format.
enum V2TXLiveFillMode : NSInteger |
Image fill mode.
enum V2TXLiveLogLevel : NSInteger |
Log level.
enum V2TXLiveMirrorType : NSInteger |
Local camera mirror type.
enum V2TXLiveMixInputType : NSInteger |
enum V2TXLiveMode : NSUInteger |
enum V2TXLivePixelFormat : NSInteger |
enum V2TXLivePushStatus : NSInteger |
enum V2TXLiveRotation : NSInteger |
enum V2TXLiveVideoResolution : NSInteger |
Video resolution.
enum V2TXLiveVideoResolutionMode : NSInteger |
Video aspect ratio mode.
Enumerator | |
---|---|
V2TXLiveVideoResolutionModeLandscape | Landscape resolution. |
V2TXLiveVideoResolutionModePortrait | Portrait resolution. |