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

Used to generate playConfig parameters when generating vid play url. More...

#include "VidPlayerConfigGen.h"

Inheritance diagram for VidPlayerConfigGenerator:

Instance Methods

(void) - addVidPlayerConfigByIntValue:value:
 Add other config parameters to pass through to open api.
(void) - addVidPlayerConfigByStringValue:value:
 Add other config parameters to pass through to open api.
(NSString *) - generatePlayerConfig
 Generate playerConfig, can be used in VidBaseSource::setPlayConfig.
(void) - setHlsUriToken:
 Set a UriToken for HLS standard encryption.
(void) - setPreviewTime:
 Set the preview duration.

Detailed Description

Used to generate playConfig parameters when generating vid play url.

Be used in VidBaseSource::setPlayConfig. For details, see doc

Method Documentation

◆ addVidPlayerConfigByIntValue:value:

- (void) addVidPlayerConfigByIntValue: (NSString *) key
value: (int) value 

Add other config parameters to pass through to open api.

Common configs are already encapsulated as APIs, such as setPreviewTime, setEncryptType, setMtsHlsUriToken, etc.

Parameters
keyKey,more info see doc
valueInt value,more info see doc

◆ addVidPlayerConfigByStringValue:value:

- (void) addVidPlayerConfigByStringValue: (NSString *) key
value: (NSString *) value 

Add other config parameters to pass through to open api.

Common configs are already encapsulated as APIs, such as setPreviewTime, setEncryptType, setMtsHlsUriToken, etc.

Parameters
keyKey,more info see doc
valueString value,more info see doc

◆ generatePlayerConfig

- (NSString *) generatePlayerConfig

Generate playerConfig, can be used in VidBaseSource::setPlayConfig.

Returns
JSON string.

◆ setHlsUriToken:

- (void) setHlsUriToken: (NSString *) MtsHlsUriToken

Set a UriToken for HLS standard encryption.

Parameters
MtsHlsUriTokenThe UriToken.

◆ setPreviewTime:

- (void) setPreviewTime: (int) previewTime

Set the preview duration.

Parameters
previewTimeThe specified preview duration in seconds.

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