Value | Parameter Name | Description |
0 | MP4_ENCRYPTION_LEVEL_NONE | Unencrypted. |
1 | MP4_ENCRYPTION_LEVEL_L1 | L1 (Online Encryption) |
2 | MP4_ENCRYPTION_LEVEL_L2 | L2 (Local Encryption) |
Value | Parameter Name | Description |
0 | PLAYER_AVPLAYER | system player. |
1 | PLAYER_THUMB_PLAYER | Based on FFmpeg, supports software decoding, with better compatibility. |
Value | Parameter Name | Description |
720 * 1280 | VIDEO_RESOLUTION_720X1280 | Resolution 720X1280. |
1080 * 1920 | VIDEO_RESOLUTION_1080X1920 | Resolution 1080X1920. |
1440 * 2560 | VIDEO_RESOLUTION_1440X2560 | Resolution 1440X2560. |
2160 * 3840 | VIDEO_RESOLUTION_2160X3840 | Resolution 2160X3840. |
Value | Parameter Name | Description |
0 | MEDIA_TYPE_AUTO | AUTO type (default value, adaptive bit rate playback not supported). |
1 | MEDIA_TYPE_HLS_VOD | HLS VOD media. |
2 | MEDIA_TYPE_HLS_LIVE | HLS live media. |
3 | MEDIA_TYPE_FILE_VOD | Common file VOD media such as MP4. |
4 | MEDIA_TYPE_DASH_VOD | DASH VOD media. |
Value | Parameter Name | Description |
0 | TX_VIDEO_PIXEL_FORMAT_NONE | Invalid type. |
1 | TX_VIDEO_PIXEL_FORMAT_VideoToolbox | VIDEO TOOL BOX, direct original video format output. |
2 | TX_VIDEO_PIXEL_FORMAT_RGBA | RGBA format (Since Apple does not recommend using RGBA, please use BGRA format as an alternative). |
3 | TX_VIDEO_PIXEL_FORMAT_BGRA | BGRA format. |
API | Description |
Set the player's reconnection attempts in abnormal scenarios. | |
Player connection retry interval, in seconds. Minimum value is 3, maximum value is 30. Default value is | |
Set the player connection timeout period. | |
Video format for video rendering object callback. | |
Retain the last frame after playback stops, default is NO. | |
Initial buffer data duration, unit ms, default value 100ms. | |
Maximum buffer duration caused by insufficient buffer data or drag buffer during seek, unit ms, default value 250ms. | |
Set playe | |
Set Http header. | |
Set whether to seek accurately. The default is YES. | |
Set whether to automatically rotate the angle when playing MP4. The default is YES. | |
Set whether to smoothly switch between multiple bitrates for HLS. The default is NO. | |
Set the interval for progress callbacks. The default is 500ms. | |
Set the maximum playback buffer size for the player. | |
Set the maximum preload buffer size. | |
Set encryption key. | |
Encryption Iv. | |
Set whether the player is allowed to load post-processing services. Default is NO. | |
Set the optimal HLS stream for playback. | |
Set MP4 encrypted playback. | |
Set the media asset type for player playback | |
Set player expansion parameters. | |
Set the preferred audio track for startup playback. |
@property(nonatomic, assign) int connectRetryCount;
@property(nonatomic, assign) int connectRetryInterval;
@property(nonatomic, assign) NSTimeInterval timeout;
@property(nonatomic, assign) TX_Enum_Video_Pixel_Format videoFrameFormatType;
Parameter Name | Type | Description |
videoFrameFormatType | TX_Enum_Video_Pixel_Format |
@property(nonatomic, assign) BOOL keepLastFrameWhenStop;
@property(nonatomic, assign) int firstStartPlayBufferTime;
Parameter Name | Type | Description |
firstStartPlayBufferTime | int | Duration size. |
@property(nonatomic, assign) int nextStartPlayBufferTime;
@property(nonatomic, assign) NSInteger playerType;
Parameter Name | Type | Description |
playerType | int | Player type, valid values: PLAYER_AVPLAYER: iOS system player. PLAYER_THUMB_PLAYER: Tencent Cloud's proprietary player (default). |
@property(nonatomic, strong) NSDictionary *headers;
Parameter Name | Type | Description |
headers | NSDictionary <NSString *, NSString *> | Custom Http header content. |
@property(nonatomic, assign) BOOL enableAccurateSeek;
Parameter Name | Type | Description |
enableAccurateSeek | BOOL | Set whether to seek accurately. |
@property(nonatomic, assign) BOOL autoRotate;
Parameter Name | Type | Description |
autoRotate | BOOL | Whether to automatically rotate based on the rotation angle during playback. |
@property(nonatomic, assign) BOOL smoothSwitchBitrate;
Parameter Name | Type | Description |
smoothSwitchBitrate | BOOL | Set whether to smoothly switch between multiple bitrates for HLS. |
@property(nonatomic, assign) NSTimeInterval progressInterval;
Parameter Name | Type | Description |
progressInterval | NSTimeInterval | Interval time, in milliseconds. |
@property(nonatomic, assign) float maxBufferSize;
Parameter Name | Type | Description |
maxBufferSize | float | Playback buffer size. |
@property(nonatomic, assign) float maxPreloadSize;
Parameter Name | Type | Description |
maxPreloadSize | float | Preload size. |
@property(nonatomic, copy) NSString *overlayKey;
@property(nonatomic, copy) NSString *overlayIv;
@property(nonatomic, assign) TX_Enum_MP4EncryptionLevel encryptedMp4Level;
Parameter Name | Type | Description |
encryptedMp4Level | TX_Enum_MP4EncryptionLevel | Set MP4 playback and storage encryption levels, supported starting from Player Premium 12.2. For details, see TX_Enum_MP4EncryptionLevel. |
@property(nonatomic, assign) BOOL enableRenderProcess;
Parameter Name | Type | Description |
enableRenderProcess | BOOL | Whether loading post-rendering post-processing services is allowed. |
@property(nonatomic, assign) long preferredResolution;
Parameter Name | Type | Description |
preferredResolution | long | Product of video width and height (width * height). |
@property(nonatomic, assign) TX_Enum_MediaType mediaType;
Parameter Name | Type | Description |
mediaType | TX_Enum_MediaType |
@property(nonatomic, strong) NSDictionary *extInfoMap;
Parameter Name | Type | Description |
extInfoMap | NSDictionary | Expansion parameters |
@property(nonatomic, copy) NSString *preferAudioTrack;
Parameter Name | Type | Description |
preferAudioTrack | NSString | audio track name |
Feedback