Key type definitions for Tencent Cloud LVB.
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 |
Definition of playback-status-related enumeration values | |
enum | V2TXLivePlayStatus : NSInteger |
enum | V2TXLiveStatusChangeReason : NSInteger |
enum | V2TXAudioRoute : NSInteger |
class V2TXLiveVideoFrame |
Properties | |
V2TXLivePixelFormat | pixelFormat |
V2TXLiveBufferType | bufferType |
NSData * | data |
CVPixelBufferRef | pixelBuffer |
NSUInteger | width |
NSUInteger | height |
V2TXLiveRotation | rotation |
GLuint | textureId |
|
readwritenonatomicassign |
Field description: Video pixel format.
|
readwritenonatomicassign |
Field description: Video data container format.
|
readwritenonatomicstrong |
Field description: Video data when bufferType is V2TXLiveBufferTypeNSData.
|
readwritenonatomicassign |
Field description: Video data when bufferType is V2TXLiveBufferTypePixelBuffer.
|
readwritenonatomicassign |
Field description: Video width
|
readwritenonatomicassign |
Field description: Video height.
|
readwritenonatomicassign |
Field description: Clockwise rotation angle of video frames.
|
readwritenonatomicassign |
Field description: Texture ID
class V2TXLivePusherStatistics |
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: CPU utilization of the current system (%)
|
readwritenonatomicassign |
Field description: Video width
|
readwritenonatomicassign |
Field description: Video height
|
readwritenonatomicassign |
Field description: Frame rate (fps)
|
readwritenonatomicassign |
Field description: Video bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Audio bitrate (Kbps)
class V2TXLivePlayerStatistics |
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: CPU utilization of the current system (%)
|
readwritenonatomicassign |
Field description: Video width
|
readwritenonatomicassign |
Field description: Video height
|
readwritenonatomicassign |
Field description: Frame rate (fps)
|
readwritenonatomicassign |
Field description: Video bitrate (Kbps)
|
readwritenonatomicassign |
Field description: Audio bitrate (Kbps)
class V2TXLiveMixStream |
Properties | |
NSString * | userId |
NSString * | streamId |
NSInteger | x |
NSInteger | y |
NSInteger | width |
NSInteger | height |
NSUInteger | zOrder |
V2TXLiveMixInputType | inputType |
|
readwritenonatomiccopy |
Field description: userId
of users whose streams are mixed
|
readwritenonatomiccopy |
Field description: push streamId
of users whose streams are mixed. nil
indicates the current push streamId
.
|
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: width (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: height (absolute pixels) of the image layer
|
readwritenonatomicassign |
Field description: layer number (1-15), which must be unique
|
readwritenonatomicassign |
Field description: input type of the live stream
class V2TXLiveTranscodingConfig |
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: 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.
|
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: 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: 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
.
|
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: 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
|
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
enum V2TXLiveMode : NSUInteger |
enum V2TXLiveVideoResolution : NSInteger |
Video resolution.
enum V2TXLiveVideoResolutionMode : NSInteger |
Video aspect ratio mode.
Enumerator | |
---|---|
V2TXLiveVideoResolutionModeLandscape | Landscape resolution. |
V2TXLiveVideoResolutionModePortrait | Portrait resolution. |
enum V2TXLiveMirrorType : NSInteger |
Local camera mirror type.
enum V2TXLiveFillMode : NSInteger |
Image fill mode.
enum V2TXLiveRotation : NSInteger |
enum V2TXLivePixelFormat : NSInteger |
enum V2TXLiveBufferType : NSInteger |
Video data container format.
enum V2TXLiveAudioQuality : NSInteger |
Audio quality.
enum V2TXLivePushStatus : NSInteger |
enum V2TXLivePlayStatus : NSInteger |
enum V2TXLiveStatusChangeReason : NSInteger |
The reason for the livestream playback status.
enum V2TXAudioRoute : NSInteger |
enum V2TXLiveMixInputType : NSInteger |