AliyunPlayer v5.4.9.1
Aliyun Player API Reference Manual for iOS Platforms
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties
<AVPDelegate> Protocol Reference

#import "AVPDelegate.h"

Inheritance diagram for <AVPDelegate>:

Instance Methods

(void) - onBufferedPositionUpdate:position:
 Current cache position callback. More...
 
(void) - onCaptureScreen:image:
 Snapshot retrieval callback. More...
 
(int) - onChooseTrackIndex:info:
 
(void) - onCurrentDownloadSpeed:speed:
 current download speed callback. More...
 
(void) - onCurrentPositionUpdate:position:
 Current playback position callback. More...
 
(void) - onCurrentUtcTimeUpdate:time:
 Current playback utc time callback. More...
 
(void) - onError:errorModel:
 Proxy error callback. More...
 
(void) - onGetThumbnailFailed:
 Thumbnail image retrieval failure callback. More...
 
(void) - onGetThumbnailSuc:fromPos:toPos:image:
 Thumbnail image retrieval success callback. More...
 
(void) - onLoadingProgress:progress:
 Buffer progress callback. More...
 
(void) - onLocalCacheLoaded:size:
 Current playback cached file size callback. More...
 
(void) - onPlayerEvent:eventType:
 Player event callback. More...
 
(void) - onPlayerEvent:eventWithString:description:
 Player event callback. More...
 
(void) - onPlayerStatusChanged:oldStatus:newStatus:
 Player status update callback. More...
 
(void) - onSEIData:type:data:
 SEI callback. More...
 
(void) - onSubtitleExtAdded:trackIndex:URL:
 External subtitles have been added. More...
 
(void) - onSubtitleHeader:trackIndex:Header:
 subtitle header info callback, for ass, player will not render the subtitle when this is implemented by user More...
 
(void) - onSubtitleHide:trackIndex:subtitleID:
 Hide subtitle callback. More...
 
(void) - onSubtitleShow:trackIndex:subtitleID:subtitle:
 Show subtitle callback. More...
 
(void) - onTrackChanged:info:
 Track switchover completion callback. More...
 
(void) - onTrackReady:info:
 Track information callback. More...
 
(void) - onVideoRendered:timeMs:pts:
 Player render info callback. More...
 
(void) - onVideoSizeChanged:width:height:rotation:
 Video size change callback. More...
 

Method Documentation

◆ onBufferedPositionUpdate:position:

- (void) onBufferedPositionUpdate: (AliPlayer *)  player
position: (int64_t)  position 
optional

Current cache position callback.

Parameters
playerPlayer pointer.
positionCurrent cache position.

◆ onCaptureScreen:image:

- (void) onCaptureScreen: (AliPlayer *)  player
image: (AVPImage *)  image 
optional

Snapshot retrieval callback.

Parameters
playerPlayer pointer.
imageSnapshot.
See also
AVPImage

◆ onChooseTrackIndex:info:

- (int) onChooseTrackIndex: (AliPlayer *)  player
info: (NSArray< AVPTrackInfo * > *)  info 
optional

◆ onCurrentDownloadSpeed:speed:

- (void) onCurrentDownloadSpeed: (AliPlayer *)  player
speed: (int64_t)  speed 
optional

current download speed callback.

Parameters
playerPlayer pointer.
speedbits per second.

◆ onCurrentPositionUpdate:position:

- (void) onCurrentPositionUpdate: (AliPlayer *)  player
position: (int64_t)  position 
optional

Current playback position callback.

Parameters
playerPlayer pointer.
positionCurrent playback position.

◆ onCurrentUtcTimeUpdate:time:

- (void) onCurrentUtcTimeUpdate: (AliPlayer *)  player
time: (int64_t)  time 
optional

Current playback utc time callback.

Parameters
playerPlayer pointer.
positionCurrent utc time.

◆ onError:errorModel:

- (void) onError: (AliPlayer *)  player
errorModel: (AVPErrorModel *)  errorModel 
optional

Proxy error callback.

Parameters
playerPlayer pointer.
errorModelPlayer error description. See AVPErrorModel.
See also
AVPErrorModel

◆ onGetThumbnailFailed:

- (void) onGetThumbnailFailed: (int64_t)  positionMs
optional

Thumbnail image retrieval failure callback.

Parameters
positionMsThe specified thumbnail image position.

◆ onGetThumbnailSuc:fromPos:toPos:image:

- (void) onGetThumbnailSuc: (int64_t)  positionMs
fromPos: (int64_t)  fromPos
toPos: (int64_t)  toPos
image: (id)  image 
optional

Thumbnail image retrieval success callback.

Parameters
positionMsThe specified thumbnail image position.
fromPosThe initial position of the thumbnail image.
toPosThe end position of the thumbnail image.
imageThumbnail image pointer. Mac: NSImage. iOS: UIImage.

◆ onLoadingProgress:progress:

- (void) onLoadingProgress: (AliPlayer *)  player
progress: (float)  progress 
optional

Buffer progress callback.

Parameters
playerPlayer pointer.
progressBuffer progress: from 0 to 100.

◆ onLocalCacheLoaded:size:

- (void) onLocalCacheLoaded: (AliPlayer *)  player
size: (int64_t)  size 
optional

Current playback cached file size callback.

Parameters
playerPlayer pointer.
sizefile size.

◆ onPlayerEvent:eventType:

- (void) onPlayerEvent: (AliPlayer *)  player
eventType: (AVPEventType eventType 
optional

Player event callback.

Parameters
playerPlayer pointer.
eventTypePlayer event type.
See also
AVPEventType

◆ onPlayerEvent:eventWithString:description:

- (void) onPlayerEvent: (AliPlayer *)  player
eventWithString: (AVPEventWithString eventWithString
description: (NSString *)  description 
optional

Player event callback.

Parameters
playerPlayer pointer.
eventWithStringPlayer event type.
descriptionPlayer event description.
See also
AVPEventType

◆ onPlayerStatusChanged:oldStatus:newStatus:

- (void) onPlayerStatusChanged: (AliPlayer *)  player
oldStatus: (AVPStatus oldStatus
newStatus: (AVPStatus newStatus 
optional

Player status update callback.

Parameters
playerPlayer pointer.
oldStatusThe previous status. See AVPStatus.
newStatusThe updated status. See AVPStatus.
See also
AVPStatus

◆ onSEIData:type:data:

- (void) onSEIData: (AliPlayer *)  player
type: (int)  type
data: (NSData *)  data 
optional

SEI callback.

Parameters
playerPlayer pointer.
typeType.
dataData.
See also
AVPImage

◆ onSubtitleExtAdded:trackIndex:URL:

- (void) onSubtitleExtAdded: (AliPlayer *)  player
trackIndex: (int)  trackIndex
URL: (NSString *)  URL 
optional

External subtitles have been added.

Parameters
playerPlayer pointer.
trackIndexSubtitle index.
URLsubtitle url

◆ onSubtitleHeader:trackIndex:Header:

- (void) onSubtitleHeader: (AliPlayer *)  player
trackIndex: (int)  trackIndex
Header: (NSString *)  header 
optional

subtitle header info callback, for ass, player will not render the subtitle when this is implemented by user

Parameters
playerPlayer pointer.
trackIndexSubtitle index.
URLsubtitle url

◆ onSubtitleHide:trackIndex:subtitleID:

- (void) onSubtitleHide: (AliPlayer *)  player
trackIndex: (int)  trackIndex
subtitleID: (long)  subtitleID 
optional

Hide subtitle callback.

Parameters
playerPlayer pointer.
trackIndexSubtitle stream index.
subtitleIDSubtitle ID.

◆ onSubtitleShow:trackIndex:subtitleID:subtitle:

- (void) onSubtitleShow: (AliPlayer *)  player
trackIndex: (int)  trackIndex
subtitleID: (long)  subtitleID
subtitle: (NSString *)  subtitle 
optional

Show subtitle callback.

Parameters
playerPlayer pointer.
trackIndexSubtitle stream index.
subtitleIDSubtitle ID.
subtitleSubtitle string.

◆ onTrackChanged:info:

- (void) onTrackChanged: (AliPlayer *)  player
info: (AVPTrackInfo *)  info 
optional

Track switchover completion callback.

Parameters
playerPlayer pointer.
infoTrack switchover completion information. See AVPTrackInfo.
See also
AVPTrackInfo

◆ onTrackReady:info:

- (void) onTrackReady: (AliPlayer *)  player
info: (NSArray< AVPTrackInfo * > *)  info 
optional

Track information callback.

Parameters
playerPlayer pointer.
infoAn array of track information.
See also
AVPTrackInfo

◆ onVideoRendered:timeMs:pts:

- (void) onVideoRendered: (AliPlayer *)  player
timeMs: (int64_t)  timeMs
pts: (int64_t)  pts 
optional

Player render info callback.

Parameters
playerPlayer pointer.
timeMssystem time when render.
ptsvideo frame pts
See also
AVPEventType

◆ onVideoSizeChanged:width:height:rotation:

- (void) onVideoSizeChanged: (AliPlayer *)  player
width: (int)  width
height: (int)  height
rotation: (int)  rotation 
optional

Video size change callback.

Parameters
playerPlayer pointer.
widthVideo width.
heightVideo height.
rotationVideo rotate angle.

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