![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
Preload configuration class. More...
#include "AVPPreloadConfig.h"
Instance Methods | |
| (NSArray< NSString * > *) | - getCustomHeaders |
| Gets the custom headers. | |
| (int) | - getDefaultBandWidth |
| Gets the configured preload bitrate. | |
| (NSString *) | - getDefaultQuality |
| Gets the configured preload quality. | |
| (int) | - getDefaultResolution |
| Gets the configured preload resolution. | |
| (AVPPreloadOptionType) | - getDefaultType |
| Gets the currently configured default preload option type. | |
| (int) | - getDuration |
| Gets the preload duration. | |
| (int) | - getNetworkRetryCount |
| Gets the network retry count. | |
| (int) | - getNetworkTimeout |
| Gets the network timeout. | |
| (NSString *) | - getReferrer |
| Gets the Referrer. | |
| (instancetype) | - init |
| Default constructor. | |
| (instancetype) | - initWithDuration: |
| Constructs a preload configuration with a specified duration. | |
| (void) | - setCustomHeaders: |
| Sets the custom headers. | |
| (void) | - setDefaultBandWidth: |
| Sets the preload bitrate for a multi-bitrate stream. | |
| (void) | - setDefaultQuality: |
| Sets the preload quality for a multi-bitrate stream. | |
| (void) | - setDefaultResolution: |
| Sets the preload resolution for a multi-bitrate stream. | |
| (void) | - setDuration: |
| Sets the preload duration. | |
| (void) | - setNetworkRetryCount: |
| Sets the network retry count. | |
| (void) | - setNetworkTimeout: |
| Sets the network timeout. | |
| (void) | - setReferrer: |
| Sets the Referrer. | |
Properties | |
| NSArray< NSString * > * | customHeaders |
| Custom HTTP Headers. | |
| int | networkRetryCount |
| Network retry count. | |
| int | networkTimeout |
| Network timeout, in milliseconds. | |
| int | optionIntValue |
| When preloadOptionType is AVPPreloadOptionTypeResolution or AVPPreloadOptionTypeBandWidth, this property stores the corresponding integer value. | |
| NSString * | optionStringValue |
| When preloadOptionType is AVPPreloadOptionTypeQuality, this property stores the corresponding string value. | |
| int | preloadDuration |
| Preload duration, in milliseconds. | |
| AVPPreloadOptionType | preloadOptionType |
| The option type for preloading multi-bitrate streams. | |
| NSString * | referrer |
| The Referrer for HTTP requests. | |
Preload configuration class.
This class is used to configure specific parameters for a preload task, such as preload duration, network settings, and selection strategy for multi-bitrate streams. It is typically used in conjunction with AVPPreloadTask.
| - (NSArray< NSString * > *) getCustomHeaders |
| - (int) getDefaultBandWidth |
Gets the configured preload bitrate.
| - (NSString *) getDefaultQuality |
Gets the configured preload quality.
| - (int) getDefaultResolution |
Gets the configured preload resolution.
| - (AVPPreloadOptionType) getDefaultType |
Gets the currently configured default preload option type.
| - (int) getDuration |
Gets the preload duration.
| - (int) getNetworkRetryCount |
Gets the network retry count.
| - (int) getNetworkTimeout |
Gets the network timeout.
| - (NSString *) getReferrer |
| - (instancetype) init |
Default constructor.
| - (instancetype) initWithDuration: | (int) | duration |
Constructs a preload configuration with a specified duration.
| duration | Preload duration, in milliseconds. |
| - (void) setCustomHeaders: | (NSArray< NSString * > *) | customHeaders |
Sets the custom headers.
| customHeaders | An array of custom headers. |
| - (void) setDefaultBandWidth: | (int) | bandWidth |
Sets the preload bitrate for a multi-bitrate stream.
| bandWidth | The target bitrate. The SDK will select the stream with the closest value for preloading. |
| - (void) setDefaultQuality: | (NSString *) | quality |
Sets the preload quality for a multi-bitrate stream.
| quality | The description string of the target quality. |
| - (void) setDefaultResolution: | (int) | resolution |
Sets the preload resolution for a multi-bitrate stream.
| resolution | The product of the width and height of the resolution. The SDK will select the stream with the closest value for preloading. |
| - (void) setDuration: | (int) | duration |
Sets the preload duration.
| duration | Preload duration, in milliseconds. |
| - (void) setNetworkRetryCount: | (int) | networkRetryCount |
Sets the network retry count.
| networkRetryCount | Network retry count. |
| - (void) setNetworkTimeout: | (int) | networkTimeout |
Sets the network timeout.
| networkTimeout | Network timeout, in milliseconds. |
| - (void) setReferrer: | (NSString *) | referrer |
|
readwritenonatomicstrong |
Custom HTTP Headers.
|
readwritenonatomicassign |
Network retry count.
|
readwritenonatomicassign |
Network timeout, in milliseconds.
|
readwritenonatomicassign |
When preloadOptionType is AVPPreloadOptionTypeResolution or AVPPreloadOptionTypeBandWidth, this property stores the corresponding integer value.
|
readwritenonatomicstrong |
When preloadOptionType is AVPPreloadOptionTypeQuality, this property stores the corresponding string value.
|
readwritenonatomicassign |
Preload duration, in milliseconds.
|
readwritenonatomicassign |
The option type for preloading multi-bitrate streams.
|
readwritenonatomicstrong |
The Referrer for HTTP requests.