![]() |
AliyunPlayer
v4.7.1
Aliyun Player API Reference Manual for iOS Platforms
|
Instance Methods | |
(void) | - addUrlSource:uid: |
Add a resource to the playlist. More... | |
(void) | - addVidSource:uid: |
Add a resource to the playlist. More... | |
(void) | - clear |
Clear the playlist. More... | |
(NSString *) | - currentUid |
Query the UID of the resource that is being played. More... | |
(instancetype) | - init |
Initialize the playlist. More... | |
(instancetype) | - init: |
Initialize the player. More... | |
(BOOL) | - moveTo: |
Seek to the specified position and prepare for playback. More... | |
(BOOL) | - moveTo:accId:accKey:token:region: |
Seek to the specified resource and prepare for playback. More... | |
(BOOL) | - moveToNext |
Seek to the next resource and prepare for playback. More... | |
(BOOL) | - moveToNext:accKey:token:region: |
Seek to the next resource and prepare for playback. More... | |
(BOOL) | - moveToPre |
Seek to the previous resource and prepare for playback. More... | |
(BOOL) | - moveToPre:accKey:token:region: |
Seek to the previous resource and prepare for playback. More... | |
(void) | - removeSource: |
Remove a resource from the playlist. More... | |
![]() | |
(void) | - destroy |
Delete the player. More... | |
(NSString *) | - getCacheFilePath: |
Query the name of the cached file with the specified URL. More... | |
(NSString *) | - getCacheFilePath:format:definition: |
Query the name of the cached file with the specified URL. More... | |
(NSString *) | - getCacheFilePath:format:definition:previewTime: |
Query the name of the cached file with the specified URL. More... | |
(AVPConfig *) | - getConfig |
Query player configuration. More... | |
(AVPTrackInfo *) | - getCurrentTrack: |
Query the track that is being played. More... | |
(AVPMediaInfo *) | - getMediaInfo |
Query media information, including track information. More... | |
(NSString *) | - getPropertyString: |
Get information by key. More... | |
(void) | - getThumbnail: |
Retrieve the thumbnail image at the specified position. More... | |
(void) | - pause |
Pause. More... | |
(void) | - prepare |
Prepare for playback. More... | |
(void) | - redraw |
Refresh the view in certain situations, for example, when the size of the view changes. More... | |
(void) | - reload |
Reload resources. More... | |
(void) | - reset |
Reset. More... | |
(void) | - seekToTime:seekMode: |
Seek to a specified position. More... | |
(void) | - selectTrack: |
Switch definition according to the specified track index. More... | |
(void) | - setAuthSource: |
Play by VID and playauth. More... | |
(BOOL) | - setCacheConfig: |
Modify cache configuration. More... | |
(void) | - setConfig: |
Modify player configuration. More... | |
(void) | - setMpsSource: |
Play by VID and MPS. More... | |
(void) | - setPlayUrlConvertCallback: |
Set a URL conversion callback. More... | |
(void) | - setStsSource: |
Play by VID and STS. More... | |
(void) | - setThumbnailUrl: |
Specify a thumbnail image URL. More... | |
(void) | - setTraceID: |
Set a trace ID for debugging. More... | |
(void) | - setUrlSource: |
Play by URL. More... | |
(void) | - snapShot |
Snapshot. More... | |
(void) | - start |
Start playing. More... | |
(void) | - stop |
Stop. More... | |
Properties | |
int | maxPreloadMemorySizeMB |
Set the maximum preloading cache size. More... | |
int | preloadCount |
Query or set the number of preloaded resources. More... | |
NSString * | stsPreloadDefinition |
Query or set the definition for playback by STS, such as LD or HD. More... | |
![]() | |
BOOL | autoPlay |
Enable or disable autoplay. More... | |
int64_t | bufferedPosition |
Query the buffered position. More... | |
int64_t | currentPosition |
Query the current playback position. More... | |
id< AVPDelegate > | delegate |
Set a proxy. More... | |
int64_t | duration |
Query the length of the video. More... | |
BOOL | enableHardwareDecoder |
Enable or disable hardware decoding. More... | |
BOOL | enableLog |
Enable or disable logging. More... | |
int | height |
Query the height of the video. More... | |
BOOL | loop |
Enable or disable loop playback. More... | |
AVPMirrorMode | mirrorMode |
Set a mirroring mode. More... | |
BOOL | muted |
Mute or unmute the player. More... | |
AVPView * | playerView |
Set a player view (playerView). More... | |
float | rate |
Set the playback speed. More... | |
AVPRotateMode | rotateMode |
Set a rotate mode. More... | |
int | rotation |
Query the rotate angle of the video, which is retrieved from the video metadata. More... | |
AVPScalingMode | scalingMode |
Set a zoom mode. More... | |
float | volume |
Query or set the volume of the player. More... | |
int | width |
Query the width of the video. More... | |
Additional Inherited Members | |
![]() | |
(NSString *) | + getSDKVersion |
Query the SDK version. More... | |
(void) | + initPlayerComponent:function: |
Initialize player components. More... | |
(void) | + setLogCallbackInfo:callbackBlock: |
Set a log output callback block. More... | |
- (void) addUrlSource: | (NSString *) | url | |
uid: | (NSString *) | uid | |
Add a resource to the playlist.
url | Specify a resource by URL. |
uid | The UID of the resource, which uniquely identifies a resource. |
- (void) addVidSource: | (NSString *) | vid | |
uid: | (NSString *) | uid | |
Add a resource to the playlist.
vid | Specify a resource by VID. |
uid | The UID of the resource, which uniquely identifies a resource. |
- (void) clear |
Clear the playlist.
- (NSString*) currentUid |
Query the UID of the resource that is being played.
- (instancetype) init |
Initialize the playlist.
Implements AliPlayer.
- (instancetype) init: | (NSString *) | traceID |
- (BOOL) moveTo: | (NSString *) | uid |
Seek to the specified position and prepare for playback.
Only playback by URL is supported.
uid | The UID of the specified resource, which uniquely identifies a resource. |
- (BOOL) moveTo: | (NSString *) | uid | |
accId: | (NSString *) | accId | |
accKey: | (NSString *) | accKey | |
token: | (NSString *) | token | |
region: | (NSString *) | region | |
Seek to the specified resource and prepare for playback.
Only playback by STS is supported. You must update the STS information.
uid | The UID of the specified resource, which uniquely identifies a resource. |
accId | vid The AccessKey ID. |
accKey | vid The AccessKey Secret. |
token | vid The STS token. |
region | vid The specified region. Default: cn-shanghai. |
- (BOOL) moveToNext |
Seek to the next resource and prepare for playback.
Only playback by URL is supported.
- (BOOL) moveToNext: | (NSString *) | accId | |
accKey: | (NSString *) | accKey | |
token: | (NSString *) | token | |
region: | (NSString *) | region | |
Seek to the next resource and prepare for playback.
Only playback by STS is supported. You must update the STS information.
accId | vid The AccessKey ID. |
accKey | vid The AccessKey Secret. |
token | vid The STS token. |
region | vid The specified region. Default: cn-shanghai. |
- (BOOL) moveToPre |
Seek to the previous resource and prepare for playback.
Only playback by URL is supported.
- (BOOL) moveToPre: | (NSString *) | accId | |
accKey: | (NSString *) | accKey | |
token: | (NSString *) | token | |
region: | (NSString *) | region | |
Seek to the previous resource and prepare for playback.
Only playback by STS is supported. You must update the STS information.
accId | vid The AccessKey ID. |
accKey | vid The AccessKey Secret. |
token | vid The STS token. |
region | vid The specified region. Default: cn-shanghai. |
- (void) removeSource: | (NSString *) | uid |
Remove a resource from the playlist.
uid | The UID of the resource, which uniquely identifies a resource. |
|
readwritenonatomicassign |
Set the maximum preloading cache size.
Default: 100 MB. Minimum: 20 MB.
|
readwritenonatomicassign |
Query or set the number of preloaded resources.
The number of resources before preloading and the number of resources after preloading are returned. Default: 2.
|
readwritenonatomiccopy |
Query or set the definition for playback by STS, such as LD or HD.
Call this method before moveTo. After the resources are preloaded, you cannot change the definition.