![]() |
AliyunPlayer v7.7.0
Aliyun Player API Reference Manual for iOS Platforms
|
#include "AVPDelegate.h"
Instance Methods | |
| (void) | - onBufferedPositionUpdate:position: |
| Current cache position callback. | |
| (void) | - onCaptureScreen:image: |
| Snapshot retrieval callback. | |
| (int) | - onChooseTrackIndex:info: |
| (void) | - onCurrentDownloadSpeed:speed: |
| current download speed callback. | |
| (void) | - onCurrentPositionUpdate:position: |
| Current playback position callback. | |
| (void) | - onCurrentUtcTimeUpdate:time: |
| Current playback utc time callback. | |
| (void) | - onError:errorModel: |
| Proxy error callback. | |
| (void) | - onGetThumbnailFailed: |
| Thumbnail image retrieval failure callback. | |
| (void) | - onGetThumbnailSuc:fromPos:toPos:image: |
| Thumbnail image retrieval success callback. | |
| (void) | - onLoadingProgress:progress: |
| Buffer progress callback. | |
| (void) | - onLocalCacheLoaded:size: |
| Video playback cache hit callback. | |
| (void) | - onNetworkStat:stat: |
| Network stat information callback. | |
| (void) | - onPlayerEvent:eventType: |
| Player event callback. | |
| (void) | - onPlayerEvent:eventWithString:description: |
| Player event callback. | |
| (void) | - onPlayerStatusChanged:oldStatus:newStatus: |
| Player status update callback. | |
| (void) | - onSEIData:type:uuid:data: |
| SEI callback. | |
| (void) | - onStreamSwitchedFail:URL:errorModel: |
| Stream switch by url fail callback. | |
| (void) | - onStreamSwitchedSuccess:URL: |
| Stream switch by url success callback. | |
| (void) | - onSubtitleExtAdded:trackIndex:URL: |
| External subtitles have been added. | |
| (void) | - onSubtitleHeader:trackIndex:Header: |
| subtitle header info callback, for ass, player will not render the subtitle when this is implemented by user | |
| (void) | - onSubtitleHide:trackIndex:subtitleID: |
| Hide subtitle callback. | |
| (void) | - onSubtitleShow:trackIndex:subtitleID:subtitle: |
| Show subtitle callback. | |
| (void) | - onSubTrackReady:info: |
| Track information callback. | |
| (void) | - onTrackChanged:info: |
| Track switchover completion callback. | |
| (void) | - onTrackReady:info: |
| Track information callback. | |
| (void) | - onVideoRendered:timeMs:pts: |
| Player render info callback. | |
| (void) | - onVideoSizeChanged:width:height:rotation: |
| Video size change callback. | |
|
optionalrequired |
Current cache position callback.
| player | Player pointer. |
| position | Current cache position. |
|
optionalrequired |
Snapshot retrieval callback.
| player | Player pointer. |
| image | Snapshot. |
|
optionalrequired |
|
optionalrequired |
current download speed callback.
| player | Player pointer. |
| speed | bits per second. |
|
optionalrequired |
Current playback position callback.
| player | Player pointer. |
| position | Current playback position. |
|
optionalrequired |
Current playback utc time callback.
| player | Player pointer. |
| position | Current utc time. |
|
optionalrequired |
Proxy error callback.
| player | Player pointer. |
| errorModel | Player error description. See AVPErrorModel. |
|
optionalrequired |
Thumbnail image retrieval failure callback.
| positionMs | The specified thumbnail image position. |
|
optionalrequired |
Thumbnail image retrieval success callback.
| positionMs | The specified thumbnail image position. |
| fromPos | The initial position of the thumbnail image. |
| toPos | The end position of the thumbnail image. |
| image | Thumbnail image pointer. Mac: NSImage. iOS: UIImage. |
|
optionalrequired |
Buffer progress callback.
| player | Player pointer. |
| progress | Buffer progress: from 0 to 100. |
|
optionalrequired |
Video playback cache hit callback.
| player | Player pointer. |
| size | File size, measured in bytes; a value greater than 0 indicates a cache hit. |
|
optionalrequired |
Network stat information callback.
| player | Player pointer. |
| stat | Network stat information. |
|
optional |
Player event callback.
| player | Player pointer. |
| eventType | Player event type. |
|
optionalrequired |
Player event callback.
| player | Player pointer. |
| eventWithString | Player event type. |
| description | Player event description. |
|
optionalrequired |
SEI callback.
| player | Player pointer. |
| type | Type. |
| uuid | Data.(valid only when type=5, added in player sdk 6.11.0 and later) |
| data | Data.(not included uuid part, the same semantic with player sdk 6.10.0 and before) |
|
optionalrequired |
Stream switch by url fail callback.
| player | Player pointer. |
| url | Switched url. |
|
optionalrequired |
Stream switch by url success callback.
| player | Player pointer. |
| url | Switched url. |
|
optionalrequired |
External subtitles have been added.
| player | Player pointer. |
| trackIndex | Subtitle index. |
| URL | subtitle url |
|
optionalrequired |
subtitle header info callback, for ass, player will not render the subtitle when this is implemented by user
| player | Player pointer. |
| trackIndex | Subtitle index. |
| URL | subtitle url |
|
optionalrequired |
Hide subtitle callback.
| player | Player pointer. |
| trackIndex | Subtitle stream index. |
| subtitleID | Subtitle ID. |
|
optionalrequired |
Show subtitle callback.
| player | Player pointer. |
| trackIndex | Subtitle stream index. |
| subtitleID | Subtitle ID. |
| subtitle | Subtitle string. |
|
optionalrequired |
Track information callback.
| player | Player pointer. |
| info | An array of track information. |
|
optionalrequired |
Track switchover completion callback.
| player | Player pointer. |
| info | Track switchover completion information. See AVPTrackInfo. |
|
optionalrequired |
Track information callback.
| player | Player pointer. |
| info | An array of track information. |
|
optionalrequired |
Player render info callback.
| player | Player pointer. |
| timeMs | system time when render. |
| pts | video frame pts |
|
optionalrequired |
Video size change callback.
| player | Player pointer. |
| width | Video width. |
| height | Video height. |
| rotation | Video rotate angle. |