AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AliDomainProcessor Class Reference

Domain processing utility class for managing HTTP DNS-related domain resolution configurations. More...

#include "AliDomainProcessor.h"

Inheritance diagram for AliDomainProcessor:

Instance Methods

(void) - addEnhancedHttpDnsDomain:
 Adds an enhanced HTTP DNS domain.
(void) - addPreResolveDomain:
 Starts HTTP DNS pre-resolution.

Class Methods

(instancetype) + shareInstance
 Gets the singleton instance of AliDomainProcessor.

Detailed Description

Domain processing utility class for managing HTTP DNS-related domain resolution configurations.

This class provides a singleton interface for adding pre-resolution domains and enhanced HTTP DNS domains.

Method Documentation

◆ addEnhancedHttpDnsDomain:

- (void) addEnhancedHttpDnsDomain: (NSString *) domain

Adds an enhanced HTTP DNS domain.

This method adds the specified domain to the enhanced HTTP DNS resolution list.

Deprecated: This API is no longer needed; the SDK uses HTTP DNS resolution by default for Alibaba Cloud CDN domains.

Parameters
domainThe domain corresponding to the video URL, e.g., for URL https://cn.aliyun.com, the domain is cn.aliyun.com
Deprecated
This feature has been removed; do not call this method
See also
[AliPlayerGlobalSettings enableEnhancedHttpDns:]

◆ addPreResolveDomain:

- (void) addPreResolveDomain: (NSString *) domain

Starts HTTP DNS pre-resolution.

This method is used to pre-resolve the specified domain to accelerate subsequent network requests.

Parameters
domainThe domain corresponding to the video URL, e.g., for URL https://cn.aliyun.com, the domain is cn.aliyun.com

◆ shareInstance

+ (instancetype) shareInstance

Gets the singleton instance of AliDomainProcessor.

Returns
The shared instance of AliDomainProcessor

The documentation for this class was generated from the following file: