#import "AVPDelegate.h"
◆ onBufferedPositionUpdate:position:
- (void) onBufferedPositionUpdate: |
|
(AliPlayer *) |
player |
position: |
|
(int64_t) |
position |
|
|
| |
|
optional |
Current cache position callback.
- Parameters
-
player | Player pointer. |
position | Current cache position. |
◆ onCaptureScreen:image:
- (void) onCaptureScreen: |
|
(AliPlayer *) |
player |
image: |
|
(AVPImage *) |
image |
|
|
| |
|
optional |
Snapshot retrieval callback.
- Parameters
-
player | Player pointer. |
image | Snapshot. |
- See also
- AVPImage
◆ onChooseTrackIndex:info:
◆ onCurrentDownloadSpeed:speed:
- (void) onCurrentDownloadSpeed: |
|
(AliPlayer *) |
player |
speed: |
|
(int64_t) |
speed |
|
|
| |
|
optional |
current download speed callback.
- Parameters
-
player | Player pointer. |
speed | bits per second. |
◆ onCurrentPositionUpdate:position:
- (void) onCurrentPositionUpdate: |
|
(AliPlayer *) |
player |
position: |
|
(int64_t) |
position |
|
|
| |
|
optional |
Current playback position callback.
- Parameters
-
player | Player pointer. |
position | Current playback position. |
◆ onCurrentUtcTimeUpdate:time:
- (void) onCurrentUtcTimeUpdate: |
|
(AliPlayer *) |
player |
time: |
|
(int64_t) |
time |
|
|
| |
|
optional |
Current playback utc time callback.
- Parameters
-
player | Player pointer. |
position | Current utc time. |
◆ onError:errorModel:
Proxy error callback.
- Parameters
-
player | Player pointer. |
errorModel | Player error description. See AVPErrorModel. |
- See also
- AVPErrorModel
◆ onGetThumbnailFailed:
- (void) onGetThumbnailFailed: |
|
(int64_t) |
positionMs |
|
|
optional |
Thumbnail image retrieval failure callback.
- Parameters
-
positionMs | The 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
-
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. |
◆ onLoadingProgress:progress:
- (void) onLoadingProgress: |
|
(AliPlayer *) |
player |
progress: |
|
(float) |
progress |
|
|
| |
|
optional |
Buffer progress callback.
- Parameters
-
player | Player pointer. |
progress | Buffer progress: from 0 to 100. |
◆ onLocalCacheLoaded:size:
- (void) onLocalCacheLoaded: |
|
(AliPlayer *) |
player |
size: |
|
(int64_t) |
size |
|
|
| |
|
optional |
Current playback cached file size callback.
- Parameters
-
player | Player pointer. |
size | file size. |
◆ onPlayerEvent:eventType:
Player event callback.
- Parameters
-
player | Player pointer. |
eventType | Player event type. |
- See also
- AVPEventType
◆ onPlayerEvent:eventWithString:description:
- (void) onPlayerEvent: |
|
(AliPlayer *) |
player |
eventWithString: |
|
(AVPEventWithString) |
eventWithString |
description: |
|
(NSString *) |
description |
|
|
| |
|
optional |
Player event callback.
- Parameters
-
player | Player pointer. |
eventWithString | Player event type. |
description | Player event description. |
- See also
- AVPEventType
◆ onPlayerStatusChanged:oldStatus:newStatus:
Player status update callback.
- Parameters
-
player | Player pointer. |
oldStatus | The previous status. See AVPStatus. |
newStatus | The updated status. See AVPStatus. |
- See also
- AVPStatus
◆ onSEIData:type:data:
- (void) onSEIData: |
|
(AliPlayer *) |
player |
type: |
|
(int) |
type |
data: |
|
(NSData *) |
data |
|
|
| |
|
optional |
SEI callback.
- Parameters
-
player | Player pointer. |
type | Type. |
data | Data. |
- See also
- AVPImage
◆ onSubtitleExtAdded:trackIndex:URL:
- (void) onSubtitleExtAdded: |
|
(AliPlayer *) |
player |
trackIndex: |
|
(int) |
trackIndex |
URL: |
|
(NSString *) |
URL |
|
|
| |
|
optional |
External subtitles have been added.
- Parameters
-
player | Player pointer. |
trackIndex | Subtitle index. |
URL | subtitle 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
-
player | Player pointer. |
trackIndex | Subtitle index. |
URL | subtitle url |
◆ onSubtitleHide:trackIndex:subtitleID:
- (void) onSubtitleHide: |
|
(AliPlayer *) |
player |
trackIndex: |
|
(int) |
trackIndex |
subtitleID: |
|
(long) |
subtitleID |
|
|
| |
|
optional |
Hide subtitle callback.
- Parameters
-
player | Player pointer. |
trackIndex | Subtitle stream index. |
subtitleID | Subtitle ID. |
◆ onSubtitleShow:trackIndex:subtitleID:subtitle:
- (void) onSubtitleShow: |
|
(AliPlayer *) |
player |
trackIndex: |
|
(int) |
trackIndex |
subtitleID: |
|
(long) |
subtitleID |
subtitle: |
|
(NSString *) |
subtitle |
|
|
| |
|
optional |
Show subtitle callback.
- Parameters
-
player | Player pointer. |
trackIndex | Subtitle stream index. |
subtitleID | Subtitle ID. |
subtitle | Subtitle string. |
◆ onTrackChanged:info:
Track switchover completion callback.
- Parameters
-
player | Player pointer. |
info | Track switchover completion information. See AVPTrackInfo. |
- See also
- AVPTrackInfo
◆ onTrackReady:info:
Track information callback.
- Parameters
-
player | Player pointer. |
info | An 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
-
player | Player pointer. |
timeMs | system time when render. |
pts | video 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
-
player | Player pointer. |
width | Video width. |
height | Video height. |
rotation | Video rotate angle. |
The documentation for this protocol was generated from the following file: