NELivePlayerNotication.h
3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
//
// NELivePlayerNotication.h
// NELivePlayerFramework
//
// Created by Netease on 2018/5/8.
// Copyright © 2018年 netease. All rights reserved.
// 播放器通知定义
#ifndef NELivePlayerNotication_h
#define NELivePlayerNotication_h
#ifdef __cplusplus
#define NELP_EXTERN extern "C" __attribute__((visibility ("default")))
#else
#define NELP_EXTERN extern __attribute__((visibility ("default")))
#endif
/**
* 调用prepareToPlay后,播放器初始化视频文件完成后的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerDidPreparedToPlayNotification;
/**
* 播放器加载状态发生改变时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerLoadStateChangedNotification;
/**
* 播放器播放完成或播放发生错误时的消息通知。
* 携带UserInfo:{NELivePlayerPlaybackDidFinishReasonUserInfoKey : [NSNumber],
* NELivePlayerPlaybackDidFinishErrorKey : [NSNumber]}
*/
NELP_EXTERN NSString *const NELivePlayerPlaybackFinishedNotification;
/**
* 播放器播放结束原因的key
*/
NELP_EXTERN NSString *const NELivePlayerPlaybackDidFinishReasonUserInfoKey;
/**
* 播放成功时,此字段为nil。播放器播放结束具体错误码。具体至含义见NELPPLayerErrorCode
*/
NELP_EXTERN NSString *const NELivePlayerPlaybackDidFinishErrorKey;
/**
* 播放器播放状态发生改变时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerPlaybackStateChangedNotification;
/**
* 播放器解码器打开后的消息通知,指示硬件解码是否开启
*/
NELP_EXTERN NSString *const NELivePlayerHardwareDecoderOpenNotification;
/**
* 播放器第一帧视频显示时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerFirstVideoDisplayedNotification;
/**
* 播放器第一帧音频播放时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerFirstAudioDisplayedNotification;
/**
* 播放器资源释放完成时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerReleaseSueecssNotification;
/**
* seek完成时的消息通知,仅适用于点播,直播不支持。
* 携带UserInfo:{NELivePlayerMoviePlayerSeekCompletedTargetKey : [NSNumber],
* NELivePlayerMoviePlayerSeekCompletedErrorKey : [NSNumber]}
*/
NELP_EXTERN NSString *const NELivePlayerMoviePlayerSeekCompletedNotification;
/**
* seek失败时失败原因key
*/
NELP_EXTERN NSString *const NELivePlayerMoviePlayerSeekCompletedErrorKey;
/**
* seek完成时的时间
*/
NELP_EXTERN NSString *const NELivePlayerMoviePlayerSeekCompletedTargetKey; ///seek完成时的时间
/**
* 播放过程中的Http状态码。
* 携带UserInfo:{NELivePlayerHttpCodeResponseInfoKey : [NELivePlayerHttpCodeModel]}
*/
NELP_EXTERN NSString *const NELivePlayerHttpCodeResponseNotification;
/**
* Http状态模型获取的key
*/
NELP_EXTERN NSString *const NELivePlayerHttpCodeResponseInfoKey; //Http状态模型获取的key
/**
* 预调度任务的key
*/
NELP_EXTERN NSString *const NELivePlayerPreloadUrlKey;
/**
* 预调度任务的状态key
*/
NELP_EXTERN NSString *const NELivePlayerPreloadStateKey;
/**
* 播放器失败重试通知
*/
NELP_EXTERN NSString *const NELivePlayerRetryNotification;
/**
* 播放器失败当前重试次数
*/
NELP_EXTERN NSString *const NELivePlayerPlaybackDidRetryCountKey;
#pragma mark - 即将废弃的通知
/**
* 视频码流包解析异常时的消息通知
*/
NELP_EXTERN NSString *const NELivePlayerVideoParseErrorNotification NS_DEPRECATED_IOS(2_0, 2_0);
/**
* 播放器解码卡顿通知
*/
NELP_EXTERN NSString *const NELivePlayerDecodeNotFluentNotification NS_DEPRECATED_IOS(2_0, 2_0);
#endif /* NELivePlayerNotication_h */