AliyunPlayer  v4.7.1
Aliyun Player API Reference Manual for iOS Platforms
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties
<AVPDelegate> Protocol Reference
Inheritance diagram for <AVPDelegate>:

Instance Methods

(void) - onBufferedPositionUpdate:position:
 Current cache position callback. More...
 
(void) - onCaptureScreen:image:
 Snapshot retrieval callback. More...
 
(void) - onCurrentPositionUpdate:position:
 Current playback position 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) - 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) - onSubtitleHide:index:
 Hide subtitle callback. More...
 
(void) - onSubtitleShow:index:subtitle:
 Show subtitle callback. More...
 
(void) - onTrackChanged:info:
 Track switchover completion callback. More...
 
(void) - onTrackReady:info:
 Track information 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

◆ onCurrentPositionUpdate:position:()

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

Current playback position callback.

Parameters
playerPlayer pointer.
positionCurrent playback position.

◆ 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.

◆ 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
typeType.
dataData.
See also
AVPImage

◆ onSubtitleHide:index:()

- (void) onSubtitleHide: (AliPlayer *)  player
index: (int)  index 
optional

Hide subtitle callback.

Parameters
playerPlayer pointer.
indexSubtitle index.

◆ onSubtitleShow:index:subtitle:()

- (void) onSubtitleShow: (AliPlayer *)  player
index: (int)  index
subtitle: (NSString *)  subtitle 
optional

Show subtitle callback.

Parameters
playerPlayer pointer.
indexSubtitle index.
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

◆ 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: