![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
Player configuration class. More...
#include "AVPConfig.h"
Properties | |
| BOOL enableProjection | __deprecated |
| Enable projection. | |
| int | audioInterruptMode |
| Audio interrupt mode. | |
| BOOL | clearShowWhenStop |
| Whether to clear display when stopped. | |
| BOOL | disableAudio |
| Disable audio track. | |
| BOOL | disableVideo |
| Disable video track. | |
| int | enableEnhancedHttpDns |
| Enable enhanced HTTP DNS. | |
| BOOL | enableHttp3 |
| Enable HTTP/3 protocol. | |
| int | enableHttpDns |
| Enable HTTP DNS. | |
| BOOL | enableLocalCache |
| Enable local cache. | |
| BOOL | enableSEI |
| Enable SEI data callback. | |
| BOOL | enableStrictAuthMode |
| Enable strict auth mode. | |
| BOOL | enableStrictFlvHeader |
| Enable strict FLV header. | |
| int | highBufferDuration |
| High water level buffer duration. | |
| NSMutableArray * | httpHeaders |
| Custom HTTP headers. | |
| NSString * | httpProxy |
| HTTP proxy. | |
| int | liveStartIndex |
| HLS live start index. | |
| int | maxAllowedAbrVideoPixelNumber |
| Maximum pixel count for ABR resolution upgrade. | |
| int | maxBufferDuration |
| Maximum buffer duration. | |
| int | maxDelayTime |
| Maximum broadcasting delay. | |
| int | maxProbeSize |
| Probe data size (Deprecated). | |
| uint64_t | mMAXBackwardDuration |
| Maximum backward buffer duration in milliseconds. | |
| int | networkRetryCount |
| Network retry count. | |
| int | networkTimeout |
| Network connection timeout. | |
| int | pixelBufferOutputFormat |
| Pixel buffer output format. | |
| int | positionTimerIntervalMs |
| Progress update frequency. | |
| BOOL | preferAudio |
| Prefer audio playback. | |
| NSString * | referer |
| HTTP request Referer. | |
| int | selectTrackBufferMode |
| Select track buffer mode. | |
| int | startBufferDuration |
| Start buffer duration. | |
| int | startBufferLimit |
| Start preload threshold. | |
| int | stopBufferLimit |
| Stop preload threshold. | |
| NSString * | userAgent |
| HTTP User-Agent. | |
| int | videoRenderType |
| Video render Type. | |
Player configuration class.
Contains various configuration parameters for the player, such as buffer duration, network timeout, HTTP headers, etc. Configuration should be set before calling AliPlayer::prepare.
|
readwritenonatomicassign |
Enable projection.
Whether to allow current player instance to project to external devices. Requires integrating projection SDK for complete functionality. Default: NO.
|
readwritenonatomicassign |
Audio interrupt mode.
Handling method when audio is interrupted (such as incoming call):
Default: 0.
|
readwritenonatomicassign |
Whether to clear display when stopped.
After calling stop(), whether to clear the last frame image. YES clears it (black screen), NO keeps the last frame. Default: NO.
|
readwritenonatomicassign |
Disable audio track.
Whether to disable audio track. YES disables audio decoding and output. Default: NO.
|
readwritenonatomicassign |
Disable video track.
Whether to disable video track. YES disables video decoding and rendering. Default: NO.
|
readwritenonatomicassign |
Enable enhanced HTTP DNS.
Whether to enable enhanced HTTP DNS for domain resolution. Values: -1 (follow global setting), 0 (disable), others (enable).
|
readwritenonatomicassign |
Enable HTTP/3 protocol.
Whether to use HTTP/3 protocol for requests. Supports RFC 9114 (HTTP/3) and RFC 9000 (QUIC v1) standards. Automatically degrades to normal HTTP if HTTP/3 fails. Default: NO.
|
readwritenonatomicassign |
Enable HTTP DNS.
Whether to enable HTTP DNS for domain resolution. Values: -1 (follow global setting), 0 (disable), others (enable).
|
readwritenonatomicassign |
Enable local cache.
When local cache is enabled through AliPlayerGlobalSettings API, this config controls whether current player instance is allowed to cache. Default: YES.
|
readwritenonatomicassign |
Enable SEI data callback.
Whether to enable callback for SEI (Supplemental Enhancement Information) data. When enabled, SEI data embedded in video can be retrieved through callbacks.
|
readwritenonatomicassign |
Enable strict auth mode.
For HLS VOD media with URL authorization enabled, auth mode when using local cache:
|
readwritenonatomicassign |
Enable strict FLV header.
Optimization strategy for pure audio or pure video RTMP/FLV live streams. When stream header declares audio-only or video-only and actual content matches, enabling this can speed up startup. Default: NO.
|
readwritenonatomicassign |
High water level buffer duration.
When cached data size exceeds this value, the player resumes playback from buffering state. Used to avoid frequent buffering pauses. Unit: milliseconds.
|
readwritenonatomicstrong |
Custom HTTP headers.
Add custom HTTP request headers. Can be used for authentication information or other HTTP headers.
|
readwritenonatomiccopy |
HTTP proxy.
HTTP proxy address for accessing network resources.
|
readwritenonatomicassign |
HLS live start index.
Fragment index for starting HLS live stream playback. Controls the start position for live playback.
|
readwritenonatomicassign |
Maximum pixel count for ABR resolution upgrade.
When resolution switches to AUTO (adaptive) mode, the maximum pixel count allowed for upgrading resolution. For example, setting to 1280 * 720 = 921600 limits upgrade to this resolution, not 1920 * 1080.
|
readwritenonatomicassign |
Maximum buffer duration.
Maximum duration of data the player allows to cache. Prevents buffer from consuming excessive memory. Unit: milliseconds, Default: 50000 (50 seconds).
|
readwritenonatomicassign |
Maximum broadcasting delay.
Used to limit the maximum delay of live stream. When playback delay exceeds this value, the player attempts to speed up and catch up. Unit: milliseconds, Default: 5000 (5 seconds).
|
readwritenonatomicassign |
Probe data size (Deprecated).
Size of data used to probe media information. Default -1 means not set; player decides automatically.
|
readwritenonatomicassign |
Maximum backward buffer duration in milliseconds.
Default: 0.
|
readwritenonatomicassign |
Network retry count.
Number of retries when network connection fails. Retry interval is determined by networkTimeout. Set to 0 to disable automatic retry; retry strategy is decided by app. Default: 2.
|
readwritenonatomicassign |
Network connection timeout.
Timeout for network requests. No response within this time is considered network timeout. Unit: milliseconds, Default: 15000 (15 seconds).
|
readwritenonatomicassign |
Pixel buffer output format.
Video format for renderFrame callback. Only effective for VTB decoder, value equals OSType. Supported formats include: 420v, 420f, y420, BGRA, etc.
|
readwritenonatomicassign |
Progress update frequency.
Frequency of playback progress and buffer progress updates. Includes callback update interval for current position and buffered position. Unit: milliseconds.
|
readwritenonatomicassign |
Prefer audio playback.
Whether to prioritize audio playback over video quality when network bandwidth is insufficient. Currently effective only in DASH live streams (video already at lowest bitrate).
|
readwritenonatomiccopy |
HTTP request Referer.
Value of Referer field in HTTP request. Used for anti-hotlinking and other functions.
|
readwritenonatomicassign |
Select track buffer mode.
Whether to clear buffered data when calling selectTrack() to switch track:
This mode applies to both high-definition and low-definition tracks.
|
readwritenonatomicassign |
Start buffer duration.
Duration of data to buffer before starting playback. Playback begins when buffered data reaches this value. Smaller values speed up start but may cause stuttering; larger values are more stable but have higher latency. Unit: milliseconds, Default: 500.
|
readwritenonatomicassign |
Start preload threshold.
Trigger start preload buffer threshold. When playback buffer data is higher than this value, start background preload. Unit: milliseconds.
|
readwritenonatomicassign |
Stop preload threshold.
Trigger stop preload buffer threshold. When playback buffer data is lower than this value, stop preload. Unit: milliseconds.
|
readwritenonatomiccopy |
HTTP User-Agent.
Value of User-Agent field in HTTP request. Identifies client information.
|
readwritenonatomicassign |
Video render Type.
Specifies the renderer type for video rendering:
Default: 0.