@volcengine/react-native-live-pull 1.0.2 → 1.0.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
- package/ios/VeLivePullView.m +1 -1
- package/ios/VeLivePullViewManager.m +1 -1
- package/lib/commonjs/index.js +12227 -8161
- package/lib/module/index.js +12228 -8160
- package/lib/typescript/codegen/android/api.d.ts +76 -22
- package/lib/typescript/codegen/android/callback.d.ts +21 -4
- package/lib/typescript/codegen/android/errorcode.d.ts +25 -2
- package/lib/typescript/codegen/android/external.d.ts +1 -0
- package/lib/typescript/codegen/android/index.d.ts +1 -0
- package/lib/typescript/codegen/android/keytype.d.ts +119 -15
- package/lib/typescript/codegen/android/types.d.ts +7 -6
- package/lib/typescript/codegen/ios/api.d.ts +13 -27
- package/lib/typescript/codegen/ios/callback.d.ts +19 -33
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +1 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +0 -56
- package/lib/typescript/codegen/ios/types.d.ts +16 -5
- package/lib/typescript/codegen/pack/api.d.ts +93 -117
- package/lib/typescript/codegen/pack/callback.d.ts +73 -56
- package/lib/typescript/codegen/pack/errorcode.d.ts +65 -45
- package/lib/typescript/codegen/pack/external.d.ts +1 -0
- package/lib/typescript/codegen/pack/index.d.ts +2 -1
- package/lib/typescript/codegen/pack/keytype.d.ts +501 -544
- package/lib/typescript/codegen/pack/types.d.ts +68 -1
- package/lib/typescript/component.d.ts +9 -2
- package/lib/typescript/core/keytype.d.ts +1 -1
- package/lib/typescript/platforms/ios/extends.d.ts +2 -0
- package/package.json +6 -4
- package/react-native-velive-pull.podspec +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerStreamData, VeLivePlayerResolution, VeLivePlayerRotation, VeLivePlayerMirror, VeLivePlayerPixelFormat, VeLivePlayerVideoBufferType
|
|
2
|
-
import {
|
|
1
|
+
import { VeLivePlayerLogLevel, VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerStreamData, VeLivePlayerResolution, VeLivePlayerRotation, VeLivePlayerMirror, VeLivePlayerPixelFormat, VeLivePlayerVideoBufferType } from './keytype';
|
|
2
|
+
import { NSString, NSDictionary, id, float, BOOL, int } from './types';
|
|
3
3
|
import { VeLivePlayerObserver } from './callback';
|
|
4
|
-
import {
|
|
4
|
+
import { UIView } from './external';
|
|
5
5
|
export declare class TVLManager {
|
|
6
6
|
/** {zh}
|
|
7
7
|
* @detail api
|
|
@@ -10,13 +10,6 @@ export declare class TVLManager {
|
|
|
10
10
|
* @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188121#VeLivePlayerLogLevel) 。
|
|
11
11
|
*/
|
|
12
12
|
static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
|
|
13
|
-
/** {zh}
|
|
14
|
-
* @hidden
|
|
15
|
-
* @detail api
|
|
16
|
-
* @brief 日志设置。
|
|
17
|
-
* @param logConfig 日志设置. 详情请参见 VeLivePlayerLogConfig {@link #VeLivePlayerLogConfig}
|
|
18
|
-
*/
|
|
19
|
-
static setLogConfig(logConfig: VeLivePlayerLogConfig): void;
|
|
20
13
|
/** {zh}
|
|
21
14
|
* @detail api
|
|
22
15
|
* @brief 获取播放器 SDK 的版本号。
|
|
@@ -53,7 +46,6 @@ export declare class TVLManager {
|
|
|
53
46
|
* - NO:未播放。
|
|
54
47
|
*/
|
|
55
48
|
isPlaying: BOOL;
|
|
56
|
-
setVolume(volume: float): void;
|
|
57
49
|
/** {zh}
|
|
58
50
|
* @detail api
|
|
59
51
|
* @brief 播放器初始化方法。
|
|
@@ -69,8 +61,8 @@ export declare class TVLManager {
|
|
|
69
61
|
* @detail api
|
|
70
62
|
* @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
|
|
71
63
|
* @notes <br>
|
|
72
|
-
* 需要在调用 {@link #VeLivePlayer#play
|
|
73
|
-
* @param config 播放器配置信息,详情请参见 {@link #VeLivePlayerConfiguration
|
|
64
|
+
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法进行播放器的初始化。
|
|
65
|
+
* @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
|
|
74
66
|
* @order 1
|
|
75
67
|
*/
|
|
76
68
|
setConfig(config: VeLivePlayerConfiguration): void;
|
|
@@ -78,8 +70,8 @@ export declare class TVLManager {
|
|
|
78
70
|
* @detail api
|
|
79
71
|
* @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
|
|
80
72
|
* @notes <br>
|
|
81
|
-
* 需要在调用 {@link #VeLivePlayer#play
|
|
82
|
-
* @param observer 播放器的事件回调对象。详情请参见 {@link #VeLivePlayerObserver
|
|
73
|
+
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置回调。
|
|
74
|
+
* @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
|
|
83
75
|
* @order 2
|
|
84
76
|
*/
|
|
85
77
|
setObserver(observer: id<VeLivePlayerObserver>): void;
|
|
@@ -90,7 +82,7 @@ export declare class TVLManager {
|
|
|
90
82
|
* - 如果用于起播设置,需要在调用 [play](#TVLManager(VeLivePlayer)-play) 开始播放之前,调用本方法设置视频的填充模式。
|
|
91
83
|
* - 如果用于调节填充模式,可以在播放过程中调用本方法动态调节视频的填充模式。
|
|
92
84
|
* @order 3
|
|
93
|
-
* @param fillMode 设置 SurfaceView 的填充模式,默认值为 `VeLivePlayerFillModeAspectFill`。详情请参见 {@link #VeLivePlayerFillMode
|
|
85
|
+
* @param fillMode 设置 SurfaceView 的填充模式,默认值为 `VeLivePlayerFillModeAspectFill`。详情请参见 VeLivePlayerFillMode{@link #VeLivePlayerFillMode}
|
|
94
86
|
*/
|
|
95
87
|
setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
|
|
96
88
|
/** {zh}
|
|
@@ -120,18 +112,11 @@ export declare class TVLManager {
|
|
|
120
112
|
* @detail api
|
|
121
113
|
* @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
|
|
122
114
|
* @notes <br>
|
|
123
|
-
* 需要在调用 {@link #VeLivePlayer#play
|
|
115
|
+
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置多路流信息。
|
|
124
116
|
* @order 7
|
|
125
117
|
* @param streamData 多路流信息配置。详情请参见 [VeLivePlayerStreamData](188121#VeLivePlayerStreamData) 。
|
|
126
118
|
*/
|
|
127
119
|
setPlayStreamData(streamData: VeLivePlayerStreamData): void;
|
|
128
|
-
/** {zh}
|
|
129
|
-
* @hidden (iOS)
|
|
130
|
-
* @brief 预创建播放器。
|
|
131
|
-
* @notes <br>调用本方法会提前触发播放准备工作,包括预建连等。
|
|
132
|
-
* @param item 待播放的直播流信息。
|
|
133
|
-
*/
|
|
134
|
-
prepare(item: TVLManager): void;
|
|
135
120
|
/** {zh}
|
|
136
121
|
* @detail api
|
|
137
122
|
* @brief 开始/恢复播放。
|
|
@@ -193,7 +178,7 @@ export declare class TVLManager {
|
|
|
193
178
|
/** {zh}
|
|
194
179
|
* @detail api
|
|
195
180
|
* @brief 设置视频顺时针旋转角度。
|
|
196
|
-
* @notes
|
|
181
|
+
* @notes <br>
|
|
197
182
|
* - 支持在播放前和播放中动态修改视频旋转角度。
|
|
198
183
|
* - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
|
|
199
184
|
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
@@ -204,7 +189,7 @@ export declare class TVLManager {
|
|
|
204
189
|
/** {zh}
|
|
205
190
|
* @detail api
|
|
206
191
|
* @brief 设置视频镜像。
|
|
207
|
-
* @notes
|
|
192
|
+
* @notes <br>
|
|
208
193
|
* - 支持在播放前和播放中动态修改视频镜像方式。
|
|
209
194
|
* - 每次调用本方法,播放器都将基于原始图像进行镜像。
|
|
210
195
|
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
@@ -220,7 +205,7 @@ export declare class TVLManager {
|
|
|
220
205
|
* - 调用本方法截图成功后,会触发 onSnapshotComplete:image:回调,回调消息中包含截图的 UIImage 对象。
|
|
221
206
|
* @return <br>
|
|
222
207
|
* - 0:当前状态支持截图;
|
|
223
|
-
* - {@link #VeLivePlayerErrorCode\\#VeLivePlayerErrorRefused
|
|
208
|
+
* - VeLivePlayerErrorRefused{@link #VeLivePlayerErrorCode\\#VeLivePlayerErrorRefused}:当前状态不支持截图。
|
|
224
209
|
* @order 19
|
|
225
210
|
*/
|
|
226
211
|
snapshot(): int;
|
|
@@ -268,6 +253,7 @@ export declare class TVLManager {
|
|
|
268
253
|
* - NO:关闭。
|
|
269
254
|
*/
|
|
270
255
|
setEnableSuperResolution(enable: BOOL): void;
|
|
256
|
+
setVolume(volume: float): void;
|
|
271
257
|
}
|
|
272
258
|
export declare enum VeLivePlayerType {
|
|
273
259
|
/** {zh}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TVLManager } from './api';
|
|
2
2
|
import { VeLivePlayerError } from './errorcode';
|
|
3
|
-
import { BOOL, int64_t, int, NSString, UIImage
|
|
3
|
+
import { BOOL, int64_t, int, NSString, UIImage } from './types';
|
|
4
4
|
import { VeLivePlayerResolution, VeLivePlayerResolutionSwitchReason, VeLivePlayerStreamType, VeLivePlayerStatus, VeLivePlayerStatistics, VeLivePlayerVideoFrame, VeLivePlayerAudioFrame } from './keytype';
|
|
5
|
-
export declare
|
|
5
|
+
export declare class VeLivePlayerObserver {
|
|
6
6
|
/** {zh}
|
|
7
7
|
* @detail callback
|
|
8
8
|
* @brief 播放器错误信息回调,播放器出现错误时,触发此回调。
|
|
@@ -10,7 +10,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
10
10
|
* @param player 触发该事件回调的播放器对象。
|
|
11
11
|
* @param error 错误信息,详情请参见 [VeLivePlayerError](188120#VeLivePlayerError) 。
|
|
12
12
|
*/
|
|
13
|
-
onError?(player: TVLManager, error: VeLivePlayerError): void;
|
|
13
|
+
onError$error?(player: TVLManager, error: VeLivePlayerError): void;
|
|
14
14
|
/** {zh}
|
|
15
15
|
* @detail callback
|
|
16
16
|
* @brief 视频首帧渲染事件回调。视频首帧渲染成功,或播放过程中发生重试,重试后的第一个视频帧渲染成功,均会触发此回调。
|
|
@@ -20,7 +20,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
20
20
|
* - YES:视频首帧;
|
|
21
21
|
* - NO:重试后第一个视频帧。
|
|
22
22
|
*/
|
|
23
|
-
onFirstVideoFrameRender?(player: TVLManager, isFirstFrame: BOOL): void;
|
|
23
|
+
onFirstVideoFrameRender$isFirstFrame?(player: TVLManager, isFirstFrame: BOOL): void;
|
|
24
24
|
/** {zh}
|
|
25
25
|
* @detail callback
|
|
26
26
|
* @brief 音频首帧渲染事件回调。音频首帧渲染成功,或播放过程中发生重试,重试后的第一个音频帧渲染成功,均会触发此回调。
|
|
@@ -29,7 +29,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
29
29
|
* - YES:音频首帧;
|
|
30
30
|
* - NO:重试后第一个音频帧。
|
|
31
31
|
*/
|
|
32
|
-
onFirstAudioFrameRender?(player: TVLManager, isFirstFrame: BOOL): void;
|
|
32
|
+
onFirstAudioFrameRender$isFirstFrame?(player: TVLManager, isFirstFrame: BOOL): void;
|
|
33
33
|
/** {zh}
|
|
34
34
|
* @detail callback
|
|
35
35
|
* @brief 播放卡顿开始回调。
|
|
@@ -50,14 +50,14 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
50
50
|
* @param player 触发该事件回调的播放器对象。
|
|
51
51
|
* @param stallTime 视频渲染卡顿时长,单位为 ms。
|
|
52
52
|
*/
|
|
53
|
-
onVideoRenderStall?(player: TVLManager, stallTime: int64_t): void;
|
|
53
|
+
onVideoRenderStall$stallTime?(player: TVLManager, stallTime: int64_t): void;
|
|
54
54
|
/** {zh}
|
|
55
55
|
* @detail callback
|
|
56
56
|
* @brief 音频渲染卡顿回调。音频渲染发生卡顿时,触发此回调。
|
|
57
57
|
* @param player 触发该事件回调的播放器对象。
|
|
58
58
|
* @param stallTime 音频渲染卡顿时长,单位为 ms。
|
|
59
59
|
*/
|
|
60
|
-
onAudioRenderStall?(player: TVLManager, stallTime: int64_t): void;
|
|
60
|
+
onAudioRenderStall$stallTime?(player: TVLManager, stallTime: int64_t): void;
|
|
61
61
|
/** {zh}
|
|
62
62
|
* @detail callback
|
|
63
63
|
* @brief 清晰度档位发生变化回调。
|
|
@@ -67,7 +67,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
67
67
|
* @param error 切换清晰度档位时,是否发生错误,详情请参见 [VeLivePlayerError](188120#VeLivePlayerError) 。
|
|
68
68
|
* @param reason 清晰度档位切换的原因,详情请参见 [VeLivePlayerResolutionSwitchReason](188121#VeLivePlayerResolutionSwitchReason) 。
|
|
69
69
|
*/
|
|
70
|
-
onResolutionSwitch?(player: TVLManager, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
|
|
70
|
+
onResolutionSwitch$resolution$error$reason?(player: TVLManager, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
|
|
71
71
|
/** {zh}
|
|
72
72
|
* @detail callback
|
|
73
73
|
* @brief 视频分辨率变化回调。视频大小发生变化时,触发此回调。
|
|
@@ -76,15 +76,15 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
76
76
|
* @param width 变化后的视频宽度,单位为 px。
|
|
77
77
|
* @param height 变化后的视频高度,单位为 px。
|
|
78
78
|
*/
|
|
79
|
-
onVideoSizeChanged?(player: TVLManager, width: int, height: int): void;
|
|
79
|
+
onVideoSizeChanged$width$height?(player: TVLManager, width: int, height: int): void;
|
|
80
80
|
/** {zh}
|
|
81
81
|
* @detail api
|
|
82
|
-
* @brief SEI 信息回调。当您调用 {@link #VeLivePlayer#setConfig
|
|
82
|
+
* @brief SEI 信息回调。当您调用 setConfig:{@link #VeLivePlayer#setConfig} 开启 SEI 信息回调且播放器 SDK 接收到 SEI 信息时,触发此回调。
|
|
83
83
|
* @order 7
|
|
84
84
|
* @param player 触发该事件回调的播放器对象。
|
|
85
85
|
* @param message SEI 信息。
|
|
86
86
|
*/
|
|
87
|
-
onReceiveSeiMessage?(player: TVLManager, message: NSString): void;
|
|
87
|
+
onReceiveSeiMessage$message?(player: TVLManager, message: NSString): void;
|
|
88
88
|
/** {zh}
|
|
89
89
|
* @detail callback
|
|
90
90
|
* @brief 主备流切换回调。
|
|
@@ -93,7 +93,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
93
93
|
* @param streamType 切换后的流类型为主路流或备路流,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType) 。
|
|
94
94
|
* @param error 触发主备流切换的原因,详情请参见 [VeLivePlayerError](188120#VeLivePlayerError) 。
|
|
95
95
|
*/
|
|
96
|
-
onMainBackupSwitch?(player: TVLManager, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
|
|
96
|
+
onMainBackupSwitch$streamType$error?(player: TVLManager, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
|
|
97
97
|
/** {zh}
|
|
98
98
|
* @detail callback
|
|
99
99
|
* @brief 播放状态发生变化时,触发此回调。
|
|
@@ -101,7 +101,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
101
101
|
* @param player 触发该事件回调的播放器对象。
|
|
102
102
|
* @param status 当前播放器的状态,详情请参见 [VeLivePlayerStatus](188121#VeLivePlayerStatus) 。
|
|
103
103
|
*/
|
|
104
|
-
onPlayerStatusUpdate?(player: TVLManager, status: VeLivePlayerStatus): void;
|
|
104
|
+
onPlayerStatusUpdate$status?(player: TVLManager, status: VeLivePlayerStatus): void;
|
|
105
105
|
/** {zh}
|
|
106
106
|
* @detail callback
|
|
107
107
|
* @brief 播放信息周期性回调。播放器 SDK 会周期性地回调本方法,您可以通过本方法获取当前播放器的播放地址、码率和帧率等信息。
|
|
@@ -109,15 +109,15 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
109
109
|
* @param player 触发该事件回调的播放器对象。
|
|
110
110
|
* @param statistics 播放器周期性回调的统计信息,详情请参见 [VeLivePlayerStatistics](188121#VeLivePlayerStatistics) 。
|
|
111
111
|
*/
|
|
112
|
-
onStatistics?(player: TVLManager, statistics: VeLivePlayerStatistics): void;
|
|
112
|
+
onStatistics$statistics?(player: TVLManager, statistics: VeLivePlayerStatistics): void;
|
|
113
113
|
/** {zh}
|
|
114
114
|
* @detail callback
|
|
115
|
-
* @brief 截图成功回调。当播放器调用 {@link #VeLivePlayer#snapshot
|
|
115
|
+
* @brief 截图成功回调。当播放器调用 snapshot{@link #VeLivePlayer#snapshot} 截图成功后,触发此回调。
|
|
116
116
|
* @order 11
|
|
117
117
|
* @param player 触发该事件回调的播放器对象。
|
|
118
118
|
* @param image 截图的 UIImage 对象。
|
|
119
119
|
*/
|
|
120
|
-
onSnapshotComplete?(player: TVLManager, image: UIImage): void;
|
|
120
|
+
onSnapshotComplete$image?(player: TVLManager, image: UIImage): void;
|
|
121
121
|
/** {zh}
|
|
122
122
|
* @detail callback
|
|
123
123
|
* @brief 视频帧回调。调用 [enableVideoFrameObserver:pixelFormat:bufferType:](188118#TVLManager(VeLivePlayer)-enablevideoframeobserver-pixelformat-buffertype) 开启视频帧解析回调后,当播放器成功解码视频帧时,会触发此回调。
|
|
@@ -127,7 +127,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
127
127
|
* @param player 触发该事件回调的播放器对象。
|
|
128
128
|
* @param videoFrame 视频帧数据,包含像素格式、封装格式、视频宽高等信息,详情请参见 [VeLivePlayerVideoFrame](188121#VeLivePlayerVideoFrame) 。
|
|
129
129
|
*/
|
|
130
|
-
onRenderVideoFrame?(player: TVLManager, videoFrame: VeLivePlayerVideoFrame): void;
|
|
130
|
+
onRenderVideoFrame$videoFrame?(player: TVLManager, videoFrame: VeLivePlayerVideoFrame): void;
|
|
131
131
|
/** {zh}
|
|
132
132
|
* @detail callback
|
|
133
133
|
* @brief 音频帧回调。调用 [enableAudioFrameObserver:enableRendering:](188118#TVLManager(VeLivePlayer)-enableaudioframeobserver-enablerendering)开启音频帧解析回调后,当播放器成功解码音频帧时,会触发此回调。
|
|
@@ -137,7 +137,7 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
137
137
|
* @param player 触发该事件回调的播放器对象。
|
|
138
138
|
* @param audioFrame 音频帧数据,详情请参见 [VeLivePlayerAudioFrame](188121#VeLivePlayerAudioFrame) 。
|
|
139
139
|
*/
|
|
140
|
-
onRenderAudioFrame?(player: TVLManager, audioFrame: VeLivePlayerAudioFrame): void;
|
|
140
|
+
onRenderAudioFrame$audioFrame?(player: TVLManager, audioFrame: VeLivePlayerAudioFrame): void;
|
|
141
141
|
/** {zh}
|
|
142
142
|
* @detail callback
|
|
143
143
|
* @brief 超分开启失败。调用 [setEnableSuperResolution:](188118#TVLManager(VeLivePlayer)-setenablesuperresolution)开启超分后,当播放器不支持超分开启或者超分处理出错时,会触发此回调。
|
|
@@ -145,19 +145,5 @@ export declare abstract class VeLivePlayerObserver {
|
|
|
145
145
|
* @param player 触发该事件回调的播放器对象。
|
|
146
146
|
* @param error 开启超分失败的原因,错误码请参见 [VeLivePlayerErrorCode](188120#VeLivePlayerErrorCode) 。
|
|
147
147
|
*/
|
|
148
|
-
onStreamFailedOpenSuperResolution?(player: TVLManager, error: VeLivePlayerError): void;
|
|
149
|
-
/** {zh}
|
|
150
|
-
* @detail callback
|
|
151
|
-
* @brief 您需要在此回调中返回 FairPlay 证书的 NSData 数据。
|
|
152
|
-
* @order 15
|
|
153
|
-
* @param player 触发该事件回调的播放器对象。
|
|
154
|
-
*/
|
|
155
|
-
getDrmResourceLoaderCertificateData?(player: TVLManager): NSData;
|
|
156
|
-
/** {zh}
|
|
157
|
-
* @detail callback
|
|
158
|
-
* @brief 您需要在此回调中返回 DRM license 的 URL。
|
|
159
|
-
* @order 16
|
|
160
|
-
* @param player 触发该事件回调的播放器对象。
|
|
161
|
-
*/
|
|
162
|
-
getDrmResourceLoaderLicenseUrl?(player: TVLManager): NSString;
|
|
148
|
+
onStreamFailedOpenSuperResolution$error?(player: TVLManager, error: VeLivePlayerError): void;
|
|
163
149
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VeLivePlayerLogConfig, UIView } from '../../platforms/ios/extends';
|
|
@@ -1,34 +1,4 @@
|
|
|
1
1
|
import { BOOL, NSInteger, NSString, int, CMTime, NSData, int64_t, CVPixelBufferRef, CMSampleBufferRef, NSArray, NSURL, long, float } from './types';
|
|
2
|
-
export declare enum VeLivePlayerBMFFlexSRType {
|
|
3
|
-
/** {zh}
|
|
4
|
-
* @brief 未知超分类型
|
|
5
|
-
*/
|
|
6
|
-
VeLivePlayerBMFScale_Unknow = -1,
|
|
7
|
-
/** {zh}
|
|
8
|
-
* @brief 1.5 倍超分类型,即分辨率是原始分辨率的 1.5 倍
|
|
9
|
-
*/
|
|
10
|
-
VeLivePlayerBMFScale_1_5 = 0,
|
|
11
|
-
/** {zh}
|
|
12
|
-
* @brief 2 超分类型,即分辨率是原始分辨率的 2 倍
|
|
13
|
-
*/
|
|
14
|
-
VeLivePlayerBMFScale_2_0 = 1,
|
|
15
|
-
/** {zh}
|
|
16
|
-
* @brief 1.1 倍超分类型,即分辨率是原始分辨率的 1.1 倍
|
|
17
|
-
*/
|
|
18
|
-
VeLivePlayerBMFScale_1_1 = 2,
|
|
19
|
-
/** {zh}
|
|
20
|
-
* @brief 1.2 倍超分类型,即分辨率是原始分辨率的 1.2 倍
|
|
21
|
-
*/
|
|
22
|
-
VeLivePlayerBMFScale_1_2 = 3,
|
|
23
|
-
/** {zh}
|
|
24
|
-
* @brief 1.3 倍超分类型,即分辨率是原始分辨率的 1.3 倍
|
|
25
|
-
*/
|
|
26
|
-
VeLivePlayerBMFScale_1_3 = 4,
|
|
27
|
-
/** {zh}
|
|
28
|
-
* @brief 1.4 倍超分类型,即分辨率是原始分辨率的 1.4 倍
|
|
29
|
-
*/
|
|
30
|
-
VeLivePlayerBMFScale_1_4 = 5
|
|
31
|
-
}
|
|
32
2
|
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
33
3
|
/** {zh}
|
|
34
4
|
* @brief ABR 自动切档。
|
|
@@ -280,32 +250,6 @@ export declare enum VeLivePlayerVideoBufferType {
|
|
|
280
250
|
*/
|
|
281
251
|
VeLivePlayerVideoBufferTypeNSData = 3
|
|
282
252
|
}
|
|
283
|
-
export declare enum VeLivePlayerBMFFlexSRErrorCode {
|
|
284
|
-
/** {zh}
|
|
285
|
-
* @brief 未知错误
|
|
286
|
-
*/
|
|
287
|
-
VeLivePlayerBMFFlexSRErrorUnknow = 0,
|
|
288
|
-
/** {zh}
|
|
289
|
-
* @brief 不满足超分的条件
|
|
290
|
-
*/
|
|
291
|
-
VeLivePlayerBMFFlexSRErrorCondition = 1,
|
|
292
|
-
/** {zh}
|
|
293
|
-
* @brief 不支持该超分类型
|
|
294
|
-
*/
|
|
295
|
-
VeLivePlayerBMFFlexSRErrorSRType = 2,
|
|
296
|
-
/** {zh}
|
|
297
|
-
* @brief 设置了重复的超分类型
|
|
298
|
-
*/
|
|
299
|
-
VeLivePlayerBMFFlexSRErrorSRTypeSame = 3,
|
|
300
|
-
/** {zh}
|
|
301
|
-
* @brief 超分处理失败(仅在播放过程中设置生效)
|
|
302
|
-
*/
|
|
303
|
-
VeLivePlayerBMFFlexSRErrorProcessFailed = 4,
|
|
304
|
-
/** {zh}
|
|
305
|
-
* @brief 超分设置成功
|
|
306
|
-
*/
|
|
307
|
-
VeLivePlayerBMFFlexSRSuccess = 5
|
|
308
|
-
}
|
|
309
253
|
export declare enum VeLivePlayerProtocol {
|
|
310
254
|
/** {zh}
|
|
311
255
|
* @brief TCP 协议。
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export type id<T = any> = T;
|
|
2
2
|
export type BOOL = boolean;
|
|
3
|
+
export type bool = boolean;
|
|
3
4
|
export type int = number;
|
|
4
5
|
export type long = number;
|
|
5
6
|
export type float = number;
|
|
6
7
|
export type int64_t = number;
|
|
8
|
+
export type double = number;
|
|
9
|
+
export type dispatch_queue_t = any;
|
|
7
10
|
export type NSString = string;
|
|
8
11
|
export type NSMutableString = string;
|
|
9
12
|
export type NSInteger = number;
|
|
@@ -11,10 +14,12 @@ export type NSUInteger = number;
|
|
|
11
14
|
export type NSNumber = number;
|
|
12
15
|
export type NSValue = number;
|
|
13
16
|
export type NSNull = null;
|
|
14
|
-
export type NSArray<T> = Array<T>;
|
|
15
|
-
export type NSMutableArray<T> = Array<T>;
|
|
16
|
-
export type NSObject =
|
|
17
|
-
export type NSDictionary =
|
|
17
|
+
export type NSArray<T = any> = Array<T>;
|
|
18
|
+
export type NSMutableArray<T = any> = Array<T>;
|
|
19
|
+
export type NSObject<T = any> = T;
|
|
20
|
+
export type NSDictionary<K extends keyof any = any, V = any> = {
|
|
21
|
+
[P in K]: V;
|
|
22
|
+
};
|
|
18
23
|
export type NSMutableDictionary = Object;
|
|
19
24
|
export type NSDate = Date;
|
|
20
25
|
export type NSData = ArrayBuffer;
|
|
@@ -24,12 +29,18 @@ export type NSError = {
|
|
|
24
29
|
domain: string;
|
|
25
30
|
};
|
|
26
31
|
export type NSTimeInterval = number;
|
|
27
|
-
export type UIView = any;
|
|
28
32
|
export type UIImage = unknown;
|
|
29
33
|
export type CVPixelBufferRef = any;
|
|
30
34
|
export type CMSampleBufferRef = any;
|
|
31
35
|
export type CMTime = number;
|
|
32
36
|
export type GLuint = number;
|
|
33
37
|
export type CGFloat = number;
|
|
38
|
+
export type SInt64 = number;
|
|
39
|
+
export type intptr_t = any;
|
|
40
|
+
export type uint32_t = number;
|
|
41
|
+
export type uint8_t = number;
|
|
42
|
+
export type longlong = number;
|
|
34
43
|
export type CGPoint = any;
|
|
44
|
+
export type CGRect = any;
|
|
45
|
+
export type CGSize = any;
|
|
35
46
|
export type EAGLContext = any;
|