@byteplus/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.
Files changed (31) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
  4. package/ios/VeLivePullView.m +1 -1
  5. package/ios/VeLivePullViewManager.m +1 -1
  6. package/lib/commonjs/index.js +12227 -8161
  7. package/lib/module/index.js +12228 -8160
  8. package/lib/typescript/codegen/android/api.d.ts +253 -4
  9. package/lib/typescript/codegen/android/errorcode.d.ts +2 -2
  10. package/lib/typescript/codegen/android/external.d.ts +1 -0
  11. package/lib/typescript/codegen/android/index.d.ts +1 -0
  12. package/lib/typescript/codegen/android/keytype.d.ts +2 -4
  13. package/lib/typescript/codegen/android/types.d.ts +7 -6
  14. package/lib/typescript/codegen/ios/api.d.ts +4 -8
  15. package/lib/typescript/codegen/ios/callback.d.ts +17 -21
  16. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  17. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  18. package/lib/typescript/codegen/ios/keytype.d.ts +0 -30
  19. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  20. package/lib/typescript/codegen/pack/api.d.ts +73 -96
  21. package/lib/typescript/codegen/pack/callback.d.ts +59 -45
  22. package/lib/typescript/codegen/pack/errorcode.d.ts +56 -49
  23. package/lib/typescript/codegen/pack/external.d.ts +1 -0
  24. package/lib/typescript/codegen/pack/index.d.ts +2 -1
  25. package/lib/typescript/codegen/pack/keytype.d.ts +346 -630
  26. package/lib/typescript/codegen/pack/types.d.ts +68 -1
  27. package/lib/typescript/component.d.ts +9 -2
  28. package/lib/typescript/core/keytype.d.ts +1 -1
  29. package/lib/typescript/platforms/ios/extends.d.ts +2 -0
  30. package/package.json +1 -1
  31. package/react-native-velive-pull.podspec +3 -3
@@ -1,61 +1,310 @@
1
- import { VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerStreamData, VeLivePlayerResolution, VeLivePlayerPixelFormat, VeLivePlayerVideoBufferType, VeLivePlayerRotation, VeLivePlayerMirror, VeLivePlayerLogLevel } from './keytype';
1
+ import { String, SurfaceHolder, Surface, float, Map, List, int } from './types';
2
+ import { VeLivePlayerLogLevel, VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerStreamData, VeLivePlayerResolution, VeLivePlayerPixelFormat, VeLivePlayerVideoBufferType, VeLivePlayerRotation, VeLivePlayerMirror } from './keytype';
2
3
  import { VeLivePlayerObserver } from './callback';
3
- import { SurfaceHolder, Surface, String, float, Map, List, int } from './types';
4
- import { ApplicationContext } from '../../platforms/android/extends';
4
+ import { ApplicationContext } from './external';
5
5
  export declare class VeLivePlayer {
6
6
 
7
+ /** {en}
8
+ * @detail api
9
+ * @brief Gets the version number of the Player SDK.
10
+ * @return <br>
11
+ * The version number of the Player SDK.
12
+ * @order 4
13
+ *
14
+ */
7
15
  static getVersion(): String;
8
16
 
17
+ /** {en}
18
+ * @detail api
19
+ * @brief Sets the level of the output log.
20
+ * @param logLevel The level of the output log. For details, see VeLivePlayerLogLevel{@link #VeLivePlayerLogLevel}.
21
+ * @order 5
22
+ *
23
+ */
9
24
  static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
25
+ constructor(context: ApplicationContext);
10
26
 
27
+ /** {en}
28
+ * @detail api
29
+ * @brief Initializes the player and configures whether to turn on SEI messaging, hardware decoding, local DNS prefetch, and other configurations.
30
+ * @notes <br>Call this method to initialize the player before calling [play](#VeLivePlayer-play) .
31
+ * @order 1
32
+ * @param config Player configurations. Refer to VeLivePlayerConfiguration {@link #VeLivePlayerConfiguration} for details.
33
+ *
34
+ */
11
35
  setConfig(config: VeLivePlayerConfiguration): void;
12
36
 
37
+ /** {en}
38
+ * @detail api
39
+ * @brief Sets the player observer to listen to the live player's events, such as playback errors or status updates, rendering of the first audio and video frame, and resolution switching.
40
+ * @notes <br>
41
+ * Call this method before calling play {@link #play}.
42
+ * @param observer The player observer. See VeLivePlayerObserver {@link #VeLivePlayerObserver} for details.
43
+ * @order 2
44
+ *
45
+ */
13
46
  setObserver(observer: VeLivePlayerObserver): void;
14
47
 
48
+ /** {en}
49
+ * @detail api
50
+ * @brief Sets the fill mode of the player screen.
51
+ * @notes <br>
52
+ * - Call this method before calling [play](#VeLivePlayer-play) to set the initial fill mode of the player.
53
+ * - You can call this method during playback to dynamically adjust the fill mode.
54
+ * @order 3
55
+ * @param fillMode The fill mode of SurfaceView. The default value is `VeLivePlayerFillModeAspectFill`. For details, see VeLivePlayerFillMode {@link #VeLivePlayerFillMode}.
56
+ *
57
+ */
15
58
  setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
16
59
 
60
+ /** {en}
61
+ * @detail api
62
+ * @brief Sets the `SurfaceHolder` object for video rendering and playback. Use this method if you use `SurfaceView` for playback.
63
+ * @notes <br>
64
+ * If you call both `setSurfaceHolder` and setSurface {@link #setSurface} to set the `Surface` object, the player will prioritize the configurations of `surfaceHolder`.
65
+ * @param surfaceHolder The `SurfaceHolder` object.
66
+ * @order 6
67
+ *
68
+ */
17
69
  setSurfaceHolder(surfaceHolder: SurfaceHolder): void;
18
70
 
71
+ /** {en}
72
+ * @detail api
73
+ * @brief Sets the `Surface` object for video rendering and playback. Use this method if you use `SurfaceView` or `TextureView` for playback.
74
+ * @notes <br>
75
+ * If you call both setSurfaceHolder {@link #setSurfaceHolder} and `setSurface` to set the `Surface` object, the player will prioritize the configurations of `surfaceHolder`.
76
+ * @param surface The `Surface` object.
77
+ * @order 7
78
+ *
79
+ */
19
80
  setSurface(surface: Surface): void;
20
81
 
82
+ /** {en}
83
+ * @detail api
84
+ * @brief Sets a pull stream address.
85
+ * @notes <br>Call this method before calling play.
86
+ * @order 8
87
+ * @param url The pull stream address.
88
+ *
89
+ */
21
90
  setPlayUrl(url: String): void;
22
91
 
92
+ /** {en}
93
+ * @detail api
94
+ * @brief Sets multiple live streams. Call this method if you need to enable features requiring multiple live streams, such as adaptive bitrate (ABR), manual resolution switching, and primary and backup streams.
95
+ * @notes <br>Call this method before calling play.
96
+ * @order 8
97
+ * @param streamData Configurations for multiple pull stream addresses. For details, see VeLivePlayerStreamData {@link #VeLivePlayerStreamData}.
98
+ *
99
+ */
23
100
  setPlayStreamData(streamData: VeLivePlayerStreamData): void;
24
101
 
102
+ /** {en}
103
+ * @detail api
104
+ * @brief Starts or resumes playback.
105
+ * @notes <br>
106
+ * After you call this method, the onPlayerStatusUpdate {@link #VeLivePlayerObserver #onPlayerStatusUpdate} callback is triggered both when the player finishes preparing for stream pulling and when the first frame is rendered.
107
+ * @order 8
108
+ *
109
+ */
25
110
  play(): void;
26
111
 
112
+ /** {en}
113
+ * @detail api
114
+ * @brief Pauses playback.
115
+ * @notes <br>
116
+ * When playback is paused after you call this method, the onPlayerStatusUpdate {@link #VeLivePlayerObserver #onPlayerStatusUpdate} callback is triggered.
117
+ * @order 8
118
+ *
119
+ */
27
120
  pause(): void;
28
121
 
122
+ /** {en}
123
+ * @detail api
124
+ * @brief Stops playback. This method does not destroy the player.
125
+ * @notes <br>
126
+ * When playback stops after you call this method, the onPlayerStatusUpdate {@link #VeLivePlayerObserver #onPlayerStatusUpdate} callback is triggered.
127
+ * @order 8
128
+ *
129
+ */
29
130
  stop(): void;
30
131
 
132
+ /** {en}
133
+ * @detail api
134
+ * @brief Stops playback and destroys the player.
135
+ * @order 8
136
+ *
137
+ */
31
138
  destroy(): void;
32
139
 
140
+ /** {en}
141
+ * @detail api
142
+ * @brief Changes the video resolution.
143
+ * @notes - Call [setPlayStreamData](#VeLivePlayer-setplaystreamdata) to set multiple resolutions before calling this method.
144
+ * - Once the player switches to the new resolution after you call this method, the [onResolutionSwitch](player-android-api-callback#VeLivePlayerObserver-onresolutionswitch) callback is triggered.
145
+ * @return <br>
146
+ * - true: Success;
147
+ * - false: Failure.
148
+ * @order 8
149
+ * @param resolution The video resolution. For details, refer to VeLivePlayerResolution {@link #VeLivePlayerResolution}.
150
+ *
151
+ */
33
152
  switchResolution(resolution: VeLivePlayerResolution): boolean;
34
153
 
154
+ /** {en}
155
+ * @detail api
156
+ * @brief Checks whether the player is playing.
157
+ * @return Whether the player is playing. <br>
158
+ * - true: The player is playing;
159
+ * - false: The player is not playing.
160
+ * @order 8
161
+ *
162
+ */
35
163
  isPlaying(): boolean;
36
164
 
165
+ /** {en}
166
+ * @detail api
167
+ * @brief Sets the player volume.
168
+ * @param volume The volume. The default value is `1.0`. The value range is [0.0, 1.0].
169
+ * @order 8
170
+ *
171
+ */
37
172
  setPlayerVolume(volume: float): void;
38
173
 
174
+ /** {en}
175
+ * @detail api
176
+ * @brief Sets whether to mute playback.
177
+ * @param mute Whether to mute playback. The default value is `false`. <br>
178
+ * - true: Mute;
179
+ * - false: Do not mute.
180
+ * @order 9
181
+ *
182
+ */
39
183
  setMute(mute: boolean): void;
40
184
 
185
+ /** {en}
186
+ * @detail api
187
+ * @brief Checks whether playback is muted.
188
+ * @return Whether playback is muted. <br>
189
+ * - true: Muted;
190
+ * - false: Not muted.
191
+ * @order 10
192
+ *
193
+ */
41
194
  isMute(): boolean;
42
195
 
196
+ /** {en}
197
+ * @detail api
198
+ * @brief Sets the mapping of domain names to server IP addresses.
199
+ * @param hostIpMap The mapping of domain names to server IP addresses. The `Map` object uses the domain name as the key, and the corresponding value is a list of IP addresses for the servers associated with that domain. The value is of the `List` type.
200
+ * @order 11
201
+ *
202
+ */
43
203
  setUrlHostIP(hostIpMap: Map<String, List<String>>): void;
44
204
 
205
+ /** {en}
206
+ * @detail api
207
+ * @brief Configures advanced settings for the player, including offscreen rendering, maximum buffer duration, and adaptive bitrate (ABR) algorithms. Contact BytePlus technical support if you need further information.
208
+ * @param key The parameter name of the advanced setting.
209
+ * @param value The parameter value of the advanced setting.
210
+ * @order 12
211
+ *
212
+ */
45
213
  setProperty(key: String, value: Object): void;
46
214
 
215
+ /** {en}
216
+ * @detail api
217
+ * @brief Takes a screenshot of the video.
218
+ * @notes <br>
219
+ * - This method only takes effect during playback.
220
+ * - When a screenshot is captured after you call this method, the onSnapshotComplete {@link #VeLivePlayerObserver #onSnapshotComplete} callback is triggered containing the Bitmap object of the screenshot.
221
+ * @return <br>
222
+ * - 0: Screenshot capturing is allowed.
223
+ * - [VeLivePlayerErrorRefused](player-android-api-errorcode#VeLivePlayerErrorCode-veliveplayererrorrefused) : Screenshot capturing is not allowed.
224
+ * @order 13
225
+ *
226
+ */
47
227
  snapshot(): int;
48
228
 
229
+ /** {en}
230
+ * @detail api
231
+ * @brief Sets the video frame observer.
232
+ * @param enable Whether to enable the video frame callback. The default value is `false`. <br>
233
+ * - true: Enable;
234
+ * - false: Disable.
235
+ * @param pixelFormat The pixel format of the video frame in the callback. See VeLivePlayerPixelFormat {@link #VeLivePlayerPixelFormat} for details.
236
+ * @param bufferType The encapsulation format of the video data in the callback. For details, see VeLivePlayerVideoBufferType {@link #VeLivePlayerVideoBufferType}.
237
+ * @notes <br>
238
+ * - You can call this method to subscribe to decoded video data for external rendering.
239
+ * - After you call this method, the onRenderVideoFrame {@link #VeLivePlayerObserver #onRenderVideoFrame} callback is triggered once the SDK receives a video frame. The callback contains detailed information about the video frame.
240
+ * - If you use external rendering, you need to make sure the video and audio are synchronized.
241
+ * @order 14
242
+ *
243
+ */
49
244
  enableVideoFrameObserver(enable: boolean, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
50
245
 
246
+ /** {en}
247
+ * @detail api
248
+ * @brief Sets the audio frame observer.
249
+ * @notes <br>
250
+ * - You can call this method to subscribe to decoded audio data if you want to use external rendering.
251
+ * - After you call this method, the [onRenderAudioFrame](player-android-api-callback#VeLivePlayerObserver-onrenderaudioframe) callback is triggered once the SDK receives an audio frame. The callback contains detailed information about the audio frame.
252
+ * - If you use external rendering, you need to make sure the video and audio are synchronized.
253
+ * @order 15
254
+ * @param enable Whether to enable the audio frame callback. The default value is `false`. <br>
255
+ * - true: Enable;
256
+ * - false: Disable.
257
+ * @param enableRendering Whether to enable player rendering. The default value is `false`. <br>
258
+ * - true: Enable;
259
+ * - false: Disable.
260
+ *
261
+ */
51
262
  enableAudioFrameObserver(enable: boolean, enableRendering: boolean): void;
52
263
 
264
+ /** {en}
265
+ * @detail api
266
+ * @brief Sets the clockwise rotation angle of the video.
267
+ * @param rotation The clockwise rotation angle of the video. Rotation is disabled by default. See VeLivePlayerRotation {@link #VeLivePlayerRotation} for details.
268
+ * @notes <br>
269
+ * - You can change the rotation angle before and during playback.
270
+ * - Each time this method is called, the player rotates the video based on the original video.
271
+ * - When you apply both rotation and mirroring to the video, the player will mirror the video and then rotate it.
272
+ * @order 16
273
+ *
274
+ */
53
275
  setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
54
276
 
277
+ /** {en}
278
+ * @detail api
279
+ * @brief Configures mirroring settings.
280
+ * @param mirror Mirroring settings. Mirroring is disabled by default. See VeLivePlayerMirror {@link #VeLivePlayerMirror} for details.
281
+ * @notes <br>
282
+ * - You can change the mirroring settings before and during playback.
283
+ * - Each time this method is called, the player applies the mirroring settings to the original video.
284
+ * - When you apply both rotation and mirroring to the video, the player will mirror the video and then rotate it.
285
+ * @order 17
286
+ *
287
+ */
55
288
  setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
56
289
 
290
+ /** {en}
291
+ * @detail api
292
+ * @brief Enables or disables super resolution. You must first contact the BytePlus [technical support](https://www.byteplus.com/en/support) to activate the feature before using it.
293
+ * @param enable Whether to enable super resolution.
294
+ * @notes <br>
295
+ * - Call this method after receiving the onFirstVideoFrameRender{@link #VeLivePlayerObserver#onFirstVideoFrameRender} callback, or during playback.
296
+ * - If the SDK fails to enable super resolution due to device model, video resolution or frame rate, you will receive the onStreamFailedOpenSuperResolution{@link #VeLivePlayerObserver#onStreamFailedOpenSuperResolution} callback.
297
+ * @order 18
298
+ *
299
+ */
57
300
  setEnableSuperResolution(enable: boolean): void;
58
301
 
302
+ /** {en}
303
+ * @brief Set whether to enable video sharpening.
304
+ * @param enable Set whether to enable video sharpening. The default value is `false`.
305
+ * - true: Enable;
306
+ * - false: Disable.
307
+ *
308
+ */
59
309
  setEnableSharpen(enable: boolean): void;
60
- constructor(context: ApplicationContext);
61
310
  }
@@ -1,11 +1,11 @@
1
1
  import { int, String } from './types';
2
2
  export declare class VeLivePlayerError {
3
+ constructor(errorCode: int, errorMsg: String);
4
+ constructor(errorCode: int);
3
5
 
4
6
  mErrorCode: int;
5
7
 
6
8
  mErrorMsg: String;
7
- static new_VeLivePlayerError_int(errorCode: int): VeLivePlayerError;
8
- static new_VeLivePlayerError_int$String(errorCode: int, errorMsg: String): VeLivePlayerError;
9
9
  }
10
10
  export declare enum VeLivePlayerErrorCode {
11
11
 
@@ -0,0 +1 @@
1
+ export { ApplicationContext } from '../../platforms/android/extends';
@@ -2,4 +2,5 @@ export * from './api';
2
2
  export * from './callback';
3
3
  export * from './errorcode';
4
4
  export * from './keytype';
5
+ export * from './external';
5
6
  export * from './types';
@@ -77,8 +77,6 @@ export declare enum VeLivePlayerStatus {
77
77
  }
78
78
  export declare class VeLivePlayerLogConfig {
79
79
 
80
- deviceID: String;
81
-
82
80
  logPath: String;
83
81
 
84
82
  maxLogSizeM: int;
@@ -126,6 +124,7 @@ export declare enum VeLivePlayerResolutionSwitchReason {
126
124
  VeLiveplayerResolutionSwitchByManual = 1
127
125
  }
128
126
  export declare class VeLivePlayerStream {
127
+ constructor();
129
128
 
130
129
  url: String;
131
130
 
@@ -136,7 +135,6 @@ export declare class VeLivePlayerStream {
136
135
  format: VeLivePlayerFormat;
137
136
 
138
137
  streamType: VeLivePlayerStreamType;
139
- constructor();
140
138
  }
141
139
  export declare enum VeLivePlayerFillMode {
142
140
 
@@ -155,6 +153,7 @@ export declare enum VeLivePlayerPixelFormat {
155
153
  VeLivePlayerPixelFormatTexture = 2
156
154
  }
157
155
  export declare class VeLivePlayerStatistics {
156
+ constructor();
158
157
 
159
158
  url: String;
160
159
 
@@ -183,7 +182,6 @@ export declare class VeLivePlayerStatistics {
183
182
  format: String;
184
183
 
185
184
  protocol: String;
186
- constructor();
187
185
  }
188
186
  export declare class VeLivePlayerVideoFrame {
189
187
 
@@ -7,11 +7,13 @@ export type double = number;
7
7
  export type long = number;
8
8
  export type Integer = number;
9
9
  export type Double = number;
10
- export type List<T> = Array<T>;
11
- export type list<T> = Array<T>;
12
- export type ArrayList<T> = Array<T>;
13
- export type Map<K extends keyof any, V> = Record<K, V>;
14
- export type set<T> = Set<T>;
10
+ export type List<T = any> = Array<T>;
11
+ export type list<T = any> = Array<T>;
12
+ export type ArrayList<T = any> = Array<T>;
13
+ export type Map<K extends keyof any = any, V = any> = Record<K, V>;
14
+ export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
15
+ export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
16
+ export type set<T = any> = Set<T>;
15
17
  export type map = Object;
16
18
  export type struct = Object;
17
19
  export type Bitmap = unknown;
@@ -26,5 +28,4 @@ export type View = unknown;
26
28
  export type Intent = unknown;
27
29
  export type Context = unknown;
28
30
  export type Bundle = any;
29
- export type Error = any;
30
31
  export type JSONObject = any;
@@ -1,13 +1,11 @@
1
- import { VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerStreamData, VeLivePlayerResolution, VeLivePlayerRotation, VeLivePlayerMirror, VeLivePlayerPixelFormat, VeLivePlayerVideoBufferType, VeLivePlayerLogLevel } from './keytype';
2
- import { id, NSString, NSDictionary, BOOL, int, UIView, float } from './types';
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 { VeLivePlayerLogConfig } from '../../platforms/ios/extends';
4
+ import { UIView } from './external';
5
5
  export declare class TVLManager {
6
6
 
7
7
  static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
8
8
 
9
- static setLogConfig(logConfig: VeLivePlayerLogConfig): void;
10
-
11
9
  static getVersion(): NSString;
12
10
 
13
11
  static setHttpDNSHostIP(hostIpMap: NSDictionary): void;
@@ -19,7 +17,6 @@ export declare class TVLManager {
19
17
  volume: float;
20
18
 
21
19
  isPlaying: BOOL;
22
- setVolume(volume: float): void;
23
20
 
24
21
  init(): this;
25
22
 
@@ -39,8 +36,6 @@ export declare class TVLManager {
39
36
 
40
37
  setPlayStreamData(streamData: VeLivePlayerStreamData): void;
41
38
 
42
- prepare(item: TVLManager): void;
43
-
44
39
  play(): Promise<void>;
45
40
 
46
41
  pause(): Promise<void>;
@@ -66,6 +61,7 @@ export declare class TVLManager {
66
61
  enableAudioFrameObserver(enable: BOOL, enableRendering: BOOL): void;
67
62
 
68
63
  setEnableSuperResolution(enable: BOOL): void;
64
+ setVolume(volume: float): void;
69
65
  }
70
66
  export declare enum VeLivePlayerType {
71
67
 
@@ -1,44 +1,40 @@
1
1
  import { TVLManager } from './api';
2
2
  import { VeLivePlayerError } from './errorcode';
3
- import { BOOL, int64_t, int, NSString, UIImage, NSData } from './types';
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 abstract class VeLivePlayerObserver {
5
+ export declare class VeLivePlayerObserver {
6
6
 
7
- onError?(player: TVLManager, error: VeLivePlayerError): void;
7
+ onError$error?(player: TVLManager, error: VeLivePlayerError): void;
8
8
 
9
- onFirstVideoFrameRender?(player: TVLManager, isFirstFrame: BOOL): void;
9
+ onFirstVideoFrameRender$isFirstFrame?(player: TVLManager, isFirstFrame: BOOL): void;
10
10
 
11
- onFirstAudioFrameRender?(player: TVLManager, isFirstFrame: BOOL): void;
11
+ onFirstAudioFrameRender$isFirstFrame?(player: TVLManager, isFirstFrame: BOOL): void;
12
12
 
13
13
  onStallStart?(player: TVLManager): void;
14
14
 
15
15
  onStallEnd?(player: TVLManager): void;
16
16
 
17
- onVideoRenderStall?(player: TVLManager, stallTime: int64_t): void;
17
+ onVideoRenderStall$stallTime?(player: TVLManager, stallTime: int64_t): void;
18
18
 
19
- onAudioRenderStall?(player: TVLManager, stallTime: int64_t): void;
19
+ onAudioRenderStall$stallTime?(player: TVLManager, stallTime: int64_t): void;
20
20
 
21
- onResolutionSwitch?(player: TVLManager, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
21
+ onResolutionSwitch$resolution$error$reason?(player: TVLManager, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
22
22
 
23
- onVideoSizeChanged?(player: TVLManager, width: int, height: int): void;
23
+ onVideoSizeChanged$width$height?(player: TVLManager, width: int, height: int): void;
24
24
 
25
- onReceiveSeiMessage?(player: TVLManager, message: NSString): void;
25
+ onReceiveSeiMessage$message?(player: TVLManager, message: NSString): void;
26
26
 
27
- onMainBackupSwitch?(player: TVLManager, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
27
+ onMainBackupSwitch$streamType$error?(player: TVLManager, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
28
28
 
29
- onPlayerStatusUpdate?(player: TVLManager, status: VeLivePlayerStatus): void;
29
+ onPlayerStatusUpdate$status?(player: TVLManager, status: VeLivePlayerStatus): void;
30
30
 
31
- onStatistics?(player: TVLManager, statistics: VeLivePlayerStatistics): void;
31
+ onStatistics$statistics?(player: TVLManager, statistics: VeLivePlayerStatistics): void;
32
32
 
33
- onSnapshotComplete?(player: TVLManager, image: UIImage): void;
33
+ onSnapshotComplete$image?(player: TVLManager, image: UIImage): void;
34
34
 
35
- onRenderVideoFrame?(player: TVLManager, videoFrame: VeLivePlayerVideoFrame): void;
35
+ onRenderVideoFrame$videoFrame?(player: TVLManager, videoFrame: VeLivePlayerVideoFrame): void;
36
36
 
37
- onRenderAudioFrame?(player: TVLManager, audioFrame: VeLivePlayerAudioFrame): void;
37
+ onRenderAudioFrame$audioFrame?(player: TVLManager, audioFrame: VeLivePlayerAudioFrame): void;
38
38
 
39
- onStreamFailedOpenSuperResolution?(player: TVLManager, error: VeLivePlayerError): void;
40
-
41
- getDrmResourceLoaderCertificateData?(player: TVLManager): NSData;
42
-
43
- getDrmResourceLoaderLicenseUrl?(player: TVLManager): NSString;
39
+ onStreamFailedOpenSuperResolution$error?(player: TVLManager, error: VeLivePlayerError): void;
44
40
  }
@@ -0,0 +1 @@
1
+ export { VeLivePlayerLogConfig, UIView } from '../../platforms/ios/extends';
@@ -2,4 +2,5 @@ export * from './api';
2
2
  export * from './callback';
3
3
  export * from './errorcode';
4
4
  export * from './keytype';
5
+ export * from './external';
5
6
  export * from './types';
@@ -1,20 +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
-
4
- VeLivePlayerBMFScale_Unknow = -1,
5
-
6
- VeLivePlayerBMFScale_1_5 = 0,
7
-
8
- VeLivePlayerBMFScale_2_0 = 1,
9
-
10
- VeLivePlayerBMFScale_1_1 = 2,
11
-
12
- VeLivePlayerBMFScale_1_2 = 3,
13
-
14
- VeLivePlayerBMFScale_1_3 = 4,
15
-
16
- VeLivePlayerBMFScale_1_4 = 5
17
- }
18
2
  export declare enum VeLivePlayerResolutionSwitchReason {
19
3
 
20
4
  VeLivePlayerResolutionSwitchByAuto = 0,
@@ -142,20 +126,6 @@ export declare enum VeLivePlayerVideoBufferType {
142
126
 
143
127
  VeLivePlayerVideoBufferTypeNSData = 3
144
128
  }
145
- export declare enum VeLivePlayerBMFFlexSRErrorCode {
146
-
147
- VeLivePlayerBMFFlexSRErrorUnknow = 0,
148
-
149
- VeLivePlayerBMFFlexSRErrorCondition = 1,
150
-
151
- VeLivePlayerBMFFlexSRErrorSRType = 2,
152
-
153
- VeLivePlayerBMFFlexSRErrorSRTypeSame = 3,
154
-
155
- VeLivePlayerBMFFlexSRErrorProcessFailed = 4,
156
-
157
- VeLivePlayerBMFFlexSRSuccess = 5
158
- }
159
129
  export declare enum VeLivePlayerProtocol {
160
130
 
161
131
  VeLivePlayerProtocolTCP = 0,
@@ -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 = Object;
17
- export type NSDictionary = Object;
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;