@byteplus/react-native-live-pull 1.5.1-rc.1 → 1.5.1-rc.3
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/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +16 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +25 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
- package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +6 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +10 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +8 -0
- package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +44 -0
- package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +25 -0
- package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +9 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +16 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +29 -0
- package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +7 -0
- package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +54 -0
- package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/ios/RCTVeLivePull/RCTVeLivePull.mm +1 -1
- package/lib/typescript/codegen/android/api.d.ts +257 -27
- package/lib/typescript/codegen/android/callback.d.ts +162 -19
- package/lib/typescript/codegen/android/errorcode.d.ts +115 -28
- package/lib/typescript/codegen/android/keytype.d.ts +482 -113
- package/lib/typescript/codegen/ios/api.d.ts +225 -29
- package/lib/typescript/codegen/ios/callback.d.ts +134 -18
- package/lib/typescript/codegen/ios/errorcode.d.ts +102 -26
- package/lib/typescript/codegen/ios/keytype.d.ts +424 -113
- package/lib/typescript/codegen/pack/api.d.ts +291 -33
- package/lib/typescript/codegen/pack/callback.d.ts +167 -20
- package/lib/typescript/codegen/pack/errorcode.d.ts +126 -30
- package/lib/typescript/codegen/pack/keytype.d.ts +582 -130
- package/lib/typescript/core/keytype.d.ts +16 -4
- package/lib/typescript/core/logger.d.ts +1 -0
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { BOOL, NSInteger, NSString, int, CMTime, NSData, int64_t, CVPixelBufferRef, CMSampleBufferRef, NSArray, NSURL, long, float } from './types';
|
|
2
2
|
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
3
|
-
|
|
3
|
+
/** {zh}
|
|
4
|
+
* @brief ABR 自动切档。
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
4
7
|
/** {en}
|
|
5
8
|
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
6
9
|
*
|
|
7
10
|
*/
|
|
8
11
|
VeLivePlayerResolutionSwitchByAuto = 0,
|
|
9
|
-
|
|
12
|
+
/** {zh}
|
|
13
|
+
* @brief 调用 [switchResolution:](188118#TVLManager(VeLivePlayer)-switchresolution)手动切换档位。
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
10
16
|
/** {en}
|
|
11
17
|
* @brief The resolution is changed after [switchResolution:](docs-player-sdk-for-ios-api#TVLManager(VeLivePlayer)-switchresolution) is called.
|
|
12
18
|
*
|
|
@@ -14,14 +20,23 @@ export declare enum VeLivePlayerResolutionSwitchReason {
|
|
|
14
20
|
VeLivePlayerResolutionSwitchByManual = 1
|
|
15
21
|
}
|
|
16
22
|
export declare class VeLivePlayerConfiguration {
|
|
17
|
-
|
|
23
|
+
/** {zh}
|
|
24
|
+
* @brief 是否开启字符串 SEI 消息的解析,默认值为 NO。<br/>
|
|
25
|
+
* - YES:开启;
|
|
26
|
+
* - NO:关闭。
|
|
27
|
+
*/
|
|
18
28
|
/** {en}
|
|
19
29
|
* @brief Whether to enable the parsing of string SEI messages. The default value is `NO`.<br/>
|
|
20
30
|
* - YES: Enable;
|
|
21
31
|
* - NO: Disable.
|
|
22
32
|
*/
|
|
23
33
|
enableSei: BOOL;
|
|
24
|
-
|
|
34
|
+
/** {zh}
|
|
35
|
+
* @brief 是否开启二进制 SEI 消息的解析,默认值为 NO。<br/>
|
|
36
|
+
* - YES:开启;
|
|
37
|
+
* - NO:关闭。
|
|
38
|
+
* @notes 二进制 SEI 开启后,字符串 SEI 的回调将不再发送。
|
|
39
|
+
*/
|
|
25
40
|
/** {en}
|
|
26
41
|
* @brief Whether to enable the parsing of binary SEI messages. The default value is `NO`.<br/>
|
|
27
42
|
* - YES: Enable;
|
|
@@ -29,126 +44,184 @@ export declare class VeLivePlayerConfiguration {
|
|
|
29
44
|
* @notes After binary SEI is enabled, callbacks for string SEI will no longer be sent.
|
|
30
45
|
*/
|
|
31
46
|
enableBinarySei: BOOL;
|
|
32
|
-
|
|
47
|
+
/** {zh}
|
|
48
|
+
* @brief 是否开启硬件解码功能,默认值为 YES。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
|
|
49
|
+
* - YES:开启;
|
|
50
|
+
* - NO:关闭。
|
|
51
|
+
*/
|
|
33
52
|
/** {en}
|
|
34
53
|
* @brief Whether to turn on hardware decoding. The default value is `YES`. When hardware decoding is enabled, if the player fails to start hardware decoding or if hardware decoding fails, the player automatically switches to software decoding. <br>
|
|
35
54
|
* - YES: Enable;
|
|
36
55
|
* - NO: Disable.
|
|
37
56
|
*/
|
|
38
57
|
enableHardwareDecode: BOOL;
|
|
39
|
-
|
|
58
|
+
/** {zh}
|
|
59
|
+
* @brief 是否开启本地 DNS 预解析,默认值为 NO。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
|
|
60
|
+
* - YES:开启;
|
|
61
|
+
* - NO:关闭。
|
|
62
|
+
*/
|
|
40
63
|
/** {en}
|
|
41
64
|
* @brief Whether to enable local DNS prefetch. The default value is `NO`. Enabling local DNS prefetch can reduce the time required to start playback. If an abnormality occurs with local DNS prefetch, the player may not function properly. <br>
|
|
42
65
|
* - YES: Enable;
|
|
43
66
|
* - NO: Disable.
|
|
44
67
|
*/
|
|
45
68
|
enableLiveDNS: BOOL;
|
|
46
|
-
|
|
69
|
+
/** {zh}
|
|
70
|
+
* @brief 是否开启播放信息周期性回调。默认值为 NO。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](#VeLivePlayerStatistics) 。当 enableStatisticsCallback 为 YES,且 [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br/>
|
|
71
|
+
* - YES:开启;
|
|
72
|
+
* - NO:关闭。
|
|
73
|
+
*/
|
|
47
74
|
/** {en}
|
|
48
75
|
* @brief Whether to enable periodic callbacks for playback information. The default value is `NO`. Refer to [VeLivePlayerStatistics](#VeLivePlayerStatistics) for more information on callback statistics. If `enableStatisticsCallback` is `YES` and [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) is greater than `0`, the player will periodically report the player status information after the specified time interval.<br/>
|
|
49
76
|
* - YES: Enable;
|
|
50
77
|
* - NO: Disable.
|
|
51
78
|
*/
|
|
52
79
|
enableStatisticsCallback: BOOL;
|
|
53
|
-
|
|
80
|
+
/** {zh}
|
|
81
|
+
* @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) 为 YES,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
|
|
82
|
+
*/
|
|
54
83
|
/** {en}
|
|
55
84
|
* @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If enableStatisticsCallback is `YES` and [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) is greater than `0`, the player will periodically report the player status information after the specified time interval.
|
|
56
85
|
*/
|
|
57
86
|
statisticsCallbackInterval: NSInteger;
|
|
58
|
-
|
|
87
|
+
/** {zh}
|
|
88
|
+
* @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
|
|
89
|
+
*/
|
|
59
90
|
/** {en}
|
|
60
91
|
* @brief Network timeout duration in milliseconds. The default value is `5000`. Once the player sends a network request, if the player does not receive a response from the server after the timeout duration, the network request is considered to have failed.
|
|
61
92
|
*/
|
|
62
93
|
networkTimeoutMs: NSInteger;
|
|
63
|
-
|
|
94
|
+
/** {zh}
|
|
95
|
+
* @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
|
|
96
|
+
* - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
|
|
97
|
+
* - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
|
|
98
|
+
*/
|
|
64
99
|
/** {en}
|
|
65
100
|
* @brief Retry interval, in ms. The default value is 5000 and it is only effective when there is no backup stream.
|
|
66
101
|
* - In scenarios without a backup stream, if playback is interrupted due to issues such as network anomalies, the player will immediately retry. The first three retries are executed immediately, and the fourth and subsequent retries will be executed according to the set retry interval.
|
|
67
102
|
* - In scenarios with a backup stream, the retry interval will not take effect and all retries will be executed immediately.
|
|
68
103
|
*/
|
|
69
104
|
retryIntervalTimeMs: NSInteger;
|
|
70
|
-
|
|
105
|
+
/** {zh}
|
|
106
|
+
* @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
|
|
107
|
+
* - 在无备流的场景下,每次重试,会消耗一次重试次数;
|
|
108
|
+
* - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
|
|
109
|
+
*/
|
|
71
110
|
/** {en}
|
|
72
111
|
* @brief In the case of a network connection error, the maximum number of automatic retries of the player. The default value is `5`. If the value is `0`, the player will not automatically retry.<br/>
|
|
73
112
|
* - In a scenario without backup streams, each retry consumes one retry attempt.
|
|
74
113
|
* - In a scenario with backup streams, each primary-backup stream switch consumes one retry attempt.
|
|
75
114
|
*/
|
|
76
115
|
retryMaxCount: NSInteger;
|
|
77
|
-
|
|
116
|
+
/** {zh}
|
|
117
|
+
* @brief 默认初始化方法。
|
|
118
|
+
*/
|
|
78
119
|
/** {en}
|
|
79
120
|
* @brief Initializes the configurations.
|
|
80
121
|
*/
|
|
81
122
|
init(): this;
|
|
82
123
|
}
|
|
83
124
|
export declare class VeLivePlayerStream {
|
|
84
|
-
|
|
125
|
+
/** {zh}
|
|
126
|
+
* @brief 播放地址。
|
|
127
|
+
*/
|
|
85
128
|
/** {en}
|
|
86
129
|
* @brief The pull stream address.
|
|
87
130
|
*/
|
|
88
131
|
url: NSString;
|
|
89
|
-
|
|
132
|
+
/** {zh}
|
|
133
|
+
* @brief 清晰度档位,详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
134
|
+
*/
|
|
90
135
|
/** {en}
|
|
91
136
|
* @brief The resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
92
137
|
*/
|
|
93
138
|
resolution: VeLivePlayerResolution;
|
|
94
|
-
|
|
139
|
+
/** {zh}
|
|
140
|
+
* @brief 播放码率,单位为 bps。
|
|
141
|
+
*/
|
|
95
142
|
/** {en}
|
|
96
143
|
* @brief The playback bitrate, in bps.
|
|
97
144
|
*/
|
|
98
145
|
bitrate: int;
|
|
99
|
-
|
|
146
|
+
/** {zh}
|
|
147
|
+
* @brief 传输协议,详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
|
|
148
|
+
*/
|
|
100
149
|
/** {en}
|
|
101
150
|
* @brief The transmission protocol. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
102
151
|
*/
|
|
103
152
|
protocol: VeLivePlayerProtocol;
|
|
104
|
-
|
|
153
|
+
/** {zh}
|
|
154
|
+
* @brief 播放格式,详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
155
|
+
*/
|
|
105
156
|
/** {en}
|
|
106
157
|
* @brief The video format. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
107
158
|
*/
|
|
108
159
|
format: VeLivePlayerFormat;
|
|
109
|
-
|
|
160
|
+
/** {zh}
|
|
161
|
+
* @brief 播放流类型为主路或备路,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType)。
|
|
162
|
+
*/
|
|
110
163
|
/** {en}
|
|
111
164
|
* @brief Whether the stream is a primary or a backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
112
165
|
*/
|
|
113
166
|
type: VeLivePlayerStreamType;
|
|
114
|
-
|
|
167
|
+
/** {zh}
|
|
168
|
+
* @brief 单路直播流配置初始化方法。
|
|
169
|
+
*/
|
|
115
170
|
/** {en}
|
|
116
171
|
* @brief Initializes a pull stream address.
|
|
117
172
|
*/
|
|
118
173
|
init(): this;
|
|
119
174
|
}
|
|
120
175
|
export declare enum VeLivePlayerLogLevel {
|
|
121
|
-
|
|
176
|
+
/** {zh}
|
|
177
|
+
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
122
180
|
/** {en}
|
|
123
181
|
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
124
182
|
*
|
|
125
183
|
*/
|
|
126
184
|
VeLivePlayerLogLevelVerbose = 0,
|
|
127
|
-
|
|
185
|
+
/** {zh}
|
|
186
|
+
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
128
189
|
/** {en}
|
|
129
190
|
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
130
191
|
*
|
|
131
192
|
*/
|
|
132
193
|
VeLivePlayerLogLevelDebug = 1,
|
|
133
|
-
|
|
194
|
+
/** {zh}
|
|
195
|
+
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
134
198
|
/** {en}
|
|
135
199
|
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
136
200
|
*
|
|
137
201
|
*/
|
|
138
202
|
VeLivePlayerLogLevelInfo = 2,
|
|
139
|
-
|
|
203
|
+
/** {zh}
|
|
204
|
+
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
205
|
+
*
|
|
206
|
+
*/
|
|
140
207
|
/** {en}
|
|
141
208
|
* @brief Output logs at the WARNING and ERROR levels.
|
|
142
209
|
*
|
|
143
210
|
*/
|
|
144
211
|
VeLivePlayerLogLevelWarn = 3,
|
|
145
|
-
|
|
212
|
+
/** {zh}
|
|
213
|
+
* @brief 输出 ERROR 级别的日志。
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
146
216
|
/** {en}
|
|
147
217
|
* @brief Output logs at the ERROR level.
|
|
148
218
|
*
|
|
149
219
|
*/
|
|
150
220
|
VeLivePlayerLogLevelError = 4,
|
|
151
|
-
|
|
221
|
+
/** {zh}
|
|
222
|
+
* @brief 关闭日志打印。
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
152
225
|
/** {en}
|
|
153
226
|
* @brief Disable log printing.
|
|
154
227
|
*
|
|
@@ -156,39 +229,55 @@ export declare enum VeLivePlayerLogLevel {
|
|
|
156
229
|
VeLivePlayerLogLevelNone = 5
|
|
157
230
|
}
|
|
158
231
|
export declare class VeLivePlayerAudioFrame {
|
|
159
|
-
|
|
232
|
+
/** {zh}
|
|
233
|
+
* @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType)。
|
|
234
|
+
*/
|
|
160
235
|
/** {en}
|
|
161
236
|
* @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
|
|
162
237
|
*/
|
|
163
238
|
bufferType: VeLivePlayerAudioBufferType;
|
|
164
|
-
|
|
239
|
+
/** {zh}
|
|
240
|
+
* @brief 音频采样率,单位为 Hz。
|
|
241
|
+
*/
|
|
165
242
|
/** {en}
|
|
166
243
|
* @brief The audio sample rate, in Hz.
|
|
167
244
|
*/
|
|
168
245
|
sampleRate: int;
|
|
169
|
-
|
|
246
|
+
/** {zh}
|
|
247
|
+
* @brief 声道数。<br>
|
|
248
|
+
* - 1:单声道;
|
|
249
|
+
* - 2:双声道。
|
|
250
|
+
*/
|
|
170
251
|
/** {en}
|
|
171
252
|
* @brief The number of audio channels. <br>
|
|
172
253
|
* - 1: Mono;
|
|
173
254
|
* - 2: Stereo.
|
|
174
255
|
*/
|
|
175
256
|
channels: int;
|
|
176
|
-
|
|
257
|
+
/** {zh}
|
|
258
|
+
* @brief 音频位深度。
|
|
259
|
+
*/
|
|
177
260
|
/** {en}
|
|
178
261
|
* @brief The audio bit depth.
|
|
179
262
|
*/
|
|
180
263
|
bitDepth: int;
|
|
181
|
-
|
|
264
|
+
/** {zh}
|
|
265
|
+
* @brief 音频渲染时间戳,单位为 ms。
|
|
266
|
+
*/
|
|
182
267
|
/** {en}
|
|
183
268
|
* @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
|
|
184
269
|
*/
|
|
185
270
|
pts: CMTime;
|
|
186
|
-
|
|
271
|
+
/** {zh}
|
|
272
|
+
* @brief PCM 音频数据。
|
|
273
|
+
*/
|
|
187
274
|
/** {en}
|
|
188
275
|
* @brief The PCM audio data.
|
|
189
276
|
*/
|
|
190
277
|
data: NSData;
|
|
191
|
-
|
|
278
|
+
/** {zh}
|
|
279
|
+
* @brief 音频采样点个数。
|
|
280
|
+
*/
|
|
192
281
|
/** {en}
|
|
193
282
|
* @brief The number of audio samples.
|
|
194
283
|
*/
|
|
@@ -196,42 +285,58 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
196
285
|
init(): this;
|
|
197
286
|
}
|
|
198
287
|
export declare class VeLivePlayerVideoFrame {
|
|
199
|
-
|
|
288
|
+
/** {zh}
|
|
289
|
+
* @brief 视频帧数据封装格式,详情请参见 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType)。
|
|
290
|
+
*/
|
|
200
291
|
/** {en}
|
|
201
292
|
* @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
|
|
202
293
|
*/
|
|
203
294
|
bufferType: VeLivePlayerVideoBufferType;
|
|
204
|
-
|
|
295
|
+
/** {zh}
|
|
296
|
+
* @brief 视频帧像素格式,详情请参见 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)。
|
|
297
|
+
*/
|
|
205
298
|
/** {en}
|
|
206
299
|
* @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
|
|
207
300
|
*/
|
|
208
301
|
pixelFormat: VeLivePlayerPixelFormat;
|
|
209
|
-
|
|
302
|
+
/** {zh}
|
|
303
|
+
* @brief 视频宽度,单位为 px。
|
|
304
|
+
*/
|
|
210
305
|
/** {en}
|
|
211
306
|
* @brief The video width, in pixels.
|
|
212
307
|
*/
|
|
213
308
|
width: NSInteger;
|
|
214
|
-
|
|
309
|
+
/** {zh}
|
|
310
|
+
* @brief 视频高度,单位为 px。
|
|
311
|
+
*/
|
|
215
312
|
/** {en}
|
|
216
313
|
* @brief The video height, in pixels.
|
|
217
314
|
*/
|
|
218
315
|
height: NSInteger;
|
|
219
|
-
|
|
316
|
+
/** {zh}
|
|
317
|
+
* @brief 视频帧的渲染时间戳,单位为 ms。
|
|
318
|
+
*/
|
|
220
319
|
/** {en}
|
|
221
320
|
* @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
|
|
222
321
|
*/
|
|
223
322
|
pts: int64_t;
|
|
224
|
-
|
|
323
|
+
/** {zh}
|
|
324
|
+
* @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypePixelBuffer` 时的视频数据。
|
|
325
|
+
*/
|
|
225
326
|
/** {en}
|
|
226
327
|
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypePixelBuffer`.
|
|
227
328
|
*/
|
|
228
329
|
pixelBuffer: CVPixelBufferRef;
|
|
229
|
-
|
|
330
|
+
/** {zh}
|
|
331
|
+
* @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeSampleBuffer` 时的视频数据。
|
|
332
|
+
*/
|
|
230
333
|
/** {en}
|
|
231
334
|
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeSampleBuffer`.
|
|
232
335
|
*/
|
|
233
336
|
sampleBuffer: CMSampleBufferRef;
|
|
234
|
-
|
|
337
|
+
/** {zh}
|
|
338
|
+
* @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeNSData` 时的视频数据。
|
|
339
|
+
*/
|
|
235
340
|
/** {en}
|
|
236
341
|
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeNSData`.
|
|
237
342
|
*/
|
|
@@ -239,37 +344,55 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
239
344
|
init(): this;
|
|
240
345
|
}
|
|
241
346
|
export declare enum VeLivePlayerSupportResolutionSwitchError {
|
|
242
|
-
|
|
347
|
+
/** {zh}
|
|
348
|
+
* @brief 没有找到对应分辨率档位。
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
243
351
|
/** {en}
|
|
244
352
|
* @brief The corresponding resolution gear is not found.
|
|
245
353
|
*
|
|
246
354
|
*/
|
|
247
355
|
VeLivePlayerErrorResNotFound = -1,
|
|
248
|
-
|
|
356
|
+
/** {zh}
|
|
357
|
+
* @brief 和当前分辨率档位相同。
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
249
360
|
/** {en}
|
|
250
361
|
* @brief The same as the current resolution level.
|
|
251
362
|
*
|
|
252
363
|
*/
|
|
253
364
|
VeLivePlayerErrorSameRes = -2,
|
|
254
|
-
|
|
365
|
+
/** {zh}
|
|
366
|
+
* @brief 播放器状态为非 prepare 状态。
|
|
367
|
+
*
|
|
368
|
+
*/
|
|
255
369
|
/** {en}
|
|
256
370
|
* @brief The player status is not in the prepare state.
|
|
257
371
|
*
|
|
258
372
|
*/
|
|
259
373
|
VeLivePlayerErrorStatusInvalid = -3,
|
|
260
|
-
|
|
374
|
+
/** {zh}
|
|
375
|
+
* @brief 分辨率档位错误。
|
|
376
|
+
*
|
|
377
|
+
*/
|
|
261
378
|
/** {en}
|
|
262
379
|
* @brief Resolution level error.
|
|
263
380
|
*
|
|
264
381
|
*/
|
|
265
382
|
VeLivePlayerErrorInvalidRes = -4,
|
|
266
|
-
|
|
383
|
+
/** {zh}
|
|
384
|
+
* @brief 配置不支持。
|
|
385
|
+
*
|
|
386
|
+
*/
|
|
267
387
|
/** {en}
|
|
268
388
|
* @brief Configuration not supported.
|
|
269
389
|
*
|
|
270
390
|
*/
|
|
271
391
|
VeLivePlayerErrorConfigNotSupport = -5,
|
|
272
|
-
|
|
392
|
+
/** {zh}
|
|
393
|
+
* @brief 格式不支持。
|
|
394
|
+
*
|
|
395
|
+
*/
|
|
273
396
|
/** {en}
|
|
274
397
|
* @brief Format not supported.
|
|
275
398
|
*
|
|
@@ -277,41 +400,59 @@ export declare enum VeLivePlayerSupportResolutionSwitchError {
|
|
|
277
400
|
VeLivePlayerErrorFormatNotSupport = -6
|
|
278
401
|
}
|
|
279
402
|
export declare class VeLivePlayerStreamData {
|
|
280
|
-
|
|
403
|
+
/** {zh}
|
|
404
|
+
* @brief 是否打开 ABR 平滑切档功能,默认为 NO。<br>
|
|
405
|
+
* - YES:开启;
|
|
406
|
+
* - NO:关闭。
|
|
407
|
+
*/
|
|
281
408
|
/** {en}
|
|
282
409
|
* @brief Whether to enable adaptive bitrate (ABR). The default value is `NO`. <br>
|
|
283
410
|
* - YES: Enable;
|
|
284
411
|
* - NO: Disable.
|
|
285
412
|
*/
|
|
286
413
|
enableABR: BOOL;
|
|
287
|
-
|
|
414
|
+
/** {zh}
|
|
415
|
+
* @brief 是否打开主备切换,默认为 NO。<br>
|
|
416
|
+
* - YES:开启;
|
|
417
|
+
* - NO:关闭。
|
|
418
|
+
*/
|
|
288
419
|
/** {en}
|
|
289
420
|
* @brief Whether to enable switching between the primary and the backup stream. The default value is `NO`. <br>
|
|
290
421
|
* - YES: Enable;
|
|
291
422
|
* - NO: Disable.
|
|
292
423
|
*/
|
|
293
424
|
enableMainBackupSwitch: BOOL;
|
|
294
|
-
|
|
425
|
+
/** {zh}
|
|
426
|
+
* @brief 播放器的默认清晰度档位,默认使用原始流清晰度,详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
427
|
+
*/
|
|
295
428
|
/** {en}
|
|
296
429
|
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
297
430
|
*/
|
|
298
431
|
defaultResolution: VeLivePlayerResolution;
|
|
299
|
-
|
|
432
|
+
/** {zh}
|
|
433
|
+
* @brief 播放器的默认播放格式,默认值为 FLV,详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
434
|
+
*/
|
|
300
435
|
/** {en}
|
|
301
436
|
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
302
437
|
*/
|
|
303
438
|
defaultFormat: VeLivePlayerFormat;
|
|
304
|
-
|
|
439
|
+
/** {zh}
|
|
440
|
+
* @brief 播放器的默认播放传输层协议,默认值为 TCP,详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
|
|
441
|
+
*/
|
|
305
442
|
/** {en}
|
|
306
443
|
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
307
444
|
*/
|
|
308
445
|
defaultProtocol: VeLivePlayerProtocol;
|
|
309
|
-
|
|
446
|
+
/** {zh}
|
|
447
|
+
* @brief 主路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStream)。
|
|
448
|
+
*/
|
|
310
449
|
/** {en}
|
|
311
450
|
* @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStream) for details.
|
|
312
451
|
*/
|
|
313
452
|
mainStream: NSArray<VeLivePlayerStream>;
|
|
314
|
-
|
|
453
|
+
/** {zh}
|
|
454
|
+
* @brief 备路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStream)。
|
|
455
|
+
*/
|
|
315
456
|
/** {en}
|
|
316
457
|
* @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStream) for details.
|
|
317
458
|
*/
|
|
@@ -319,19 +460,28 @@ export declare class VeLivePlayerStreamData {
|
|
|
319
460
|
init(): this;
|
|
320
461
|
}
|
|
321
462
|
export declare enum VeLivePlayerAudioBufferType {
|
|
322
|
-
|
|
463
|
+
/** {zh}
|
|
464
|
+
* @brief 未知格式。
|
|
465
|
+
*
|
|
466
|
+
*/
|
|
323
467
|
/** {en}
|
|
324
468
|
* @brief Unknown format.
|
|
325
469
|
*
|
|
326
470
|
*/
|
|
327
471
|
VeLivePlayerAudioBufferUnknown = 0,
|
|
328
|
-
|
|
472
|
+
/** {zh}
|
|
473
|
+
* @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
329
476
|
/** {en}
|
|
330
477
|
* @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
|
|
331
478
|
*
|
|
332
479
|
*/
|
|
333
480
|
VeLivePlayerAudioBufferTypeSampleBuffer = 1,
|
|
334
|
-
|
|
481
|
+
/** {zh}
|
|
482
|
+
* @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
|
|
483
|
+
*
|
|
484
|
+
*/
|
|
335
485
|
/** {en}
|
|
336
486
|
* @brief NSData. The audio data is processed and rendered as NSData objects.
|
|
337
487
|
*
|
|
@@ -339,25 +489,37 @@ export declare enum VeLivePlayerAudioBufferType {
|
|
|
339
489
|
VeLivePlayerAudioBufferTypeNSData = 2
|
|
340
490
|
}
|
|
341
491
|
export declare enum VeLivePlayerVideoBufferType {
|
|
342
|
-
|
|
492
|
+
/** {zh}
|
|
493
|
+
* @brief 未知格式。
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
343
496
|
/** {en}
|
|
344
497
|
* @brief Unknown format.
|
|
345
498
|
*
|
|
346
499
|
*/
|
|
347
500
|
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
348
|
-
|
|
501
|
+
/** {zh}
|
|
502
|
+
* @brief CVPixelBufferRef 格式。
|
|
503
|
+
*
|
|
504
|
+
*/
|
|
349
505
|
/** {en}
|
|
350
506
|
* @brief CVPixelBufferRef.
|
|
351
507
|
*
|
|
352
508
|
*/
|
|
353
509
|
VeLivePlayerVideoBufferTypePixelBuffer = 1,
|
|
354
|
-
|
|
510
|
+
/** {zh}
|
|
511
|
+
* @brief CVSampleBufferRef 格式。
|
|
512
|
+
*
|
|
513
|
+
*/
|
|
355
514
|
/** {en}
|
|
356
515
|
* @brief CVSampleBufferRef.
|
|
357
516
|
*
|
|
358
517
|
*/
|
|
359
518
|
VeLivePlayerVideoBufferTypeSampleBuffer = 2,
|
|
360
|
-
|
|
519
|
+
/** {zh}
|
|
520
|
+
* @brief NSData 格式。
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
361
523
|
/** {en}
|
|
362
524
|
* @brief NSData.
|
|
363
525
|
*
|
|
@@ -365,25 +527,37 @@ export declare enum VeLivePlayerVideoBufferType {
|
|
|
365
527
|
VeLivePlayerVideoBufferTypeNSData = 3
|
|
366
528
|
}
|
|
367
529
|
export declare enum VeLivePlayerProtocol {
|
|
368
|
-
|
|
530
|
+
/** {zh}
|
|
531
|
+
* @brief TCP 协议。
|
|
532
|
+
*
|
|
533
|
+
*/
|
|
369
534
|
/** {en}
|
|
370
535
|
* @brief TCP.
|
|
371
536
|
*
|
|
372
537
|
*/
|
|
373
538
|
VeLivePlayerProtocolTCP = 0,
|
|
374
|
-
|
|
539
|
+
/** {zh}
|
|
540
|
+
* @brief QUIC 协议。
|
|
541
|
+
*
|
|
542
|
+
*/
|
|
375
543
|
/** {en}
|
|
376
544
|
* @brief QUIC.
|
|
377
545
|
*
|
|
378
546
|
*/
|
|
379
547
|
VeLivePlayerProtocolQUIC = 1,
|
|
380
|
-
|
|
548
|
+
/** {zh}
|
|
549
|
+
* @brief TLS 协议。
|
|
550
|
+
*
|
|
551
|
+
*/
|
|
381
552
|
/** {en}
|
|
382
553
|
* @brief TLS.
|
|
383
554
|
*
|
|
384
555
|
*/
|
|
385
556
|
VeLivePlayerProtocolTLS = 2,
|
|
386
|
-
|
|
557
|
+
/** {zh}
|
|
558
|
+
* @brief HTTP 协议。
|
|
559
|
+
*
|
|
560
|
+
*/
|
|
387
561
|
/** {en}
|
|
388
562
|
* @brief HTTP。
|
|
389
563
|
*
|
|
@@ -391,19 +565,28 @@ export declare enum VeLivePlayerProtocol {
|
|
|
391
565
|
VeLivePlayerProtocolHTTP2 = 3
|
|
392
566
|
}
|
|
393
567
|
export declare enum VeLivePlayerFillMode {
|
|
394
|
-
|
|
568
|
+
/** {zh}
|
|
569
|
+
* @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
|
|
570
|
+
*
|
|
571
|
+
*/
|
|
395
572
|
/** {en}
|
|
396
573
|
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
397
574
|
*
|
|
398
575
|
*/
|
|
399
576
|
VeLivePlayerFillModeAspectFill = 0,
|
|
400
|
-
|
|
577
|
+
/** {zh}
|
|
578
|
+
* @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
|
|
579
|
+
*
|
|
580
|
+
*/
|
|
401
581
|
/** {en}
|
|
402
582
|
* @brief Display the full video. The video is uniformly scaled until one dimension of the video hits the boundary of the screen. Any remaining space on the screen will be filled with black.
|
|
403
583
|
*
|
|
404
584
|
*/
|
|
405
585
|
VeLivePlayerFillModeAspectFit = 1,
|
|
406
|
-
|
|
586
|
+
/** {zh}
|
|
587
|
+
* @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
407
590
|
/** {en}
|
|
408
591
|
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
409
592
|
*
|
|
@@ -411,25 +594,37 @@ export declare enum VeLivePlayerFillMode {
|
|
|
411
594
|
VeLivePlayerFillModeFullFill = 2
|
|
412
595
|
}
|
|
413
596
|
export declare enum VeLivePlayerRotation {
|
|
414
|
-
|
|
597
|
+
/** {zh}
|
|
598
|
+
* @brief 关闭旋转。
|
|
599
|
+
*
|
|
600
|
+
*/
|
|
415
601
|
/** {en}
|
|
416
602
|
* @brief No rotation.
|
|
417
603
|
*
|
|
418
604
|
*/
|
|
419
605
|
VeLivePlayerRotation0 = 0,
|
|
420
|
-
|
|
606
|
+
/** {zh}
|
|
607
|
+
* @brief 顺时针旋转 90 度。
|
|
608
|
+
*
|
|
609
|
+
*/
|
|
421
610
|
/** {en}
|
|
422
611
|
* @brief Rotate 90 degrees clockwise.
|
|
423
612
|
*
|
|
424
613
|
*/
|
|
425
614
|
VeLivePlayerRotation90 = 90,
|
|
426
|
-
|
|
615
|
+
/** {zh}
|
|
616
|
+
* @brief 顺时针旋转 180 度。
|
|
617
|
+
*
|
|
618
|
+
*/
|
|
427
619
|
/** {en}
|
|
428
620
|
* @brief Rotate 180 degrees clockwise.
|
|
429
621
|
*
|
|
430
622
|
*/
|
|
431
623
|
VeLivePlayerRotation180 = 180,
|
|
432
|
-
|
|
624
|
+
/** {zh}
|
|
625
|
+
* @brief 顺时针旋转 270 度。
|
|
626
|
+
*
|
|
627
|
+
*/
|
|
433
628
|
/** {en}
|
|
434
629
|
* @brief Rotate 270 degrees clockwise.
|
|
435
630
|
*
|
|
@@ -437,19 +632,28 @@ export declare enum VeLivePlayerRotation {
|
|
|
437
632
|
VeLivePlayerRotation270 = 270
|
|
438
633
|
}
|
|
439
634
|
export declare enum VeLivePlayerMirror {
|
|
440
|
-
|
|
635
|
+
/** {zh}
|
|
636
|
+
* @brief 关闭镜像。
|
|
637
|
+
*
|
|
638
|
+
*/
|
|
441
639
|
/** {en}
|
|
442
640
|
* @brief No mirroring.
|
|
443
641
|
*
|
|
444
642
|
*/
|
|
445
643
|
VeLivePlayerMirrorNone = 0,
|
|
446
|
-
|
|
644
|
+
/** {zh}
|
|
645
|
+
* @brief 水平镜像。
|
|
646
|
+
*
|
|
647
|
+
*/
|
|
447
648
|
/** {en}
|
|
448
649
|
* @brief Horizontal mirroring.
|
|
449
650
|
*
|
|
450
651
|
*/
|
|
451
652
|
VeLivePlayerMirrorHorizontal = 1,
|
|
452
|
-
|
|
653
|
+
/** {zh}
|
|
654
|
+
* @brief 垂直镜像。
|
|
655
|
+
*
|
|
656
|
+
*/
|
|
453
657
|
/** {en}
|
|
454
658
|
* @brief Vertical mirroring.
|
|
455
659
|
*
|
|
@@ -457,25 +661,37 @@ export declare enum VeLivePlayerMirror {
|
|
|
457
661
|
VeLivePlayerMirrorVertical = 2
|
|
458
662
|
}
|
|
459
663
|
export declare enum VeLivePlayerPixelFormat {
|
|
460
|
-
|
|
664
|
+
/** {zh}
|
|
665
|
+
* @brief 未知格式。
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
461
668
|
/** {en}
|
|
462
669
|
* @brief Unknown format.
|
|
463
670
|
*
|
|
464
671
|
*/
|
|
465
672
|
VeLivePlayerPixelFormatUnknown = 0,
|
|
466
|
-
|
|
673
|
+
/** {zh}
|
|
674
|
+
* @brief NV12 格式。
|
|
675
|
+
*
|
|
676
|
+
*/
|
|
467
677
|
/** {en}
|
|
468
678
|
* @brief NV12.
|
|
469
679
|
*
|
|
470
680
|
*/
|
|
471
681
|
VeLivePlayerPixelFormatNV12 = 1,
|
|
472
|
-
|
|
682
|
+
/** {zh}
|
|
683
|
+
* @brief YUVI420 格式。
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
473
686
|
/** {en}
|
|
474
687
|
* @brief YUVI420.
|
|
475
688
|
*
|
|
476
689
|
*/
|
|
477
690
|
VeLivePlayerPixelFormatI420 = 2,
|
|
478
|
-
|
|
691
|
+
/** {zh}
|
|
692
|
+
* @brief BGRA 格式。
|
|
693
|
+
*
|
|
694
|
+
*/
|
|
479
695
|
/** {en}
|
|
480
696
|
* @brief BGRA.
|
|
481
697
|
*
|
|
@@ -483,31 +699,46 @@ export declare enum VeLivePlayerPixelFormat {
|
|
|
483
699
|
VeLivePlayerPixelFormatBGRA32 = 3
|
|
484
700
|
}
|
|
485
701
|
export declare enum VeLivePlayerStatus {
|
|
486
|
-
|
|
702
|
+
/** {zh}
|
|
703
|
+
* @brief 播放器准备完成,等待渲染。
|
|
704
|
+
*
|
|
705
|
+
*/
|
|
487
706
|
/** {en}
|
|
488
707
|
* @brief The player finishes preparing and is waiting to render the video.
|
|
489
708
|
*
|
|
490
709
|
*/
|
|
491
710
|
VeLivePlayerStatusPrepared = 0,
|
|
492
|
-
|
|
711
|
+
/** {zh}
|
|
712
|
+
* @brief 正在播放状态。
|
|
713
|
+
*
|
|
714
|
+
*/
|
|
493
715
|
/** {en}
|
|
494
716
|
* @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
|
|
495
717
|
*
|
|
496
718
|
*/
|
|
497
719
|
VeLivePlayerStatusPlaying = 1,
|
|
498
|
-
|
|
720
|
+
/** {zh}
|
|
721
|
+
* @brief 暂停播放状态。
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
499
724
|
/** {en}
|
|
500
725
|
* @brief The playback is paused.
|
|
501
726
|
*
|
|
502
727
|
*/
|
|
503
728
|
VeLivePlayerStatusPaused = 2,
|
|
504
|
-
|
|
729
|
+
/** {zh}
|
|
730
|
+
* @brief 停止播放状态。
|
|
731
|
+
*
|
|
732
|
+
*/
|
|
505
733
|
/** {en}
|
|
506
734
|
* @brief The playback is stopped.
|
|
507
735
|
*
|
|
508
736
|
*/
|
|
509
737
|
VeLivePlayerStatusStopped = 3,
|
|
510
|
-
|
|
738
|
+
/** {zh}
|
|
739
|
+
* @brief 播放器发生错误。
|
|
740
|
+
*
|
|
741
|
+
*/
|
|
511
742
|
/** {en}
|
|
512
743
|
* @brief An error has occurred to the player.
|
|
513
744
|
*
|
|
@@ -515,74 +746,104 @@ export declare enum VeLivePlayerStatus {
|
|
|
515
746
|
VeLivePlayerStatusError = 4
|
|
516
747
|
}
|
|
517
748
|
export declare class VeLivePlayerStatistics {
|
|
518
|
-
|
|
749
|
+
/** {zh}
|
|
750
|
+
* @brief 当前直播的播放地址。
|
|
751
|
+
*/
|
|
519
752
|
/** {en}
|
|
520
753
|
* @brief The current pull stream address.
|
|
521
754
|
*/
|
|
522
755
|
url: NSURL;
|
|
523
|
-
|
|
756
|
+
/** {zh}
|
|
757
|
+
* @brief 是否使用硬件解码。<br>
|
|
758
|
+
* - YES:硬解;
|
|
759
|
+
* - NO:非硬解。
|
|
760
|
+
*/
|
|
524
761
|
/** {en}
|
|
525
762
|
* @brief Whether hardware decoding is used. <br>
|
|
526
763
|
* - YES: Hardware decoding is used;
|
|
527
764
|
* - NO: Hardware decoding is not used.
|
|
528
765
|
*/
|
|
529
766
|
isHardWareDecode: BOOL;
|
|
530
|
-
|
|
767
|
+
/** {zh}
|
|
768
|
+
* @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
|
|
769
|
+
*/
|
|
531
770
|
/** {en}
|
|
532
771
|
* @brief The current playback latency, in milliseconds. The latency data is available only if you use the BytePlus MediaLive Broadcast SDK to push the live stream.
|
|
533
772
|
*/
|
|
534
773
|
delayMs: int;
|
|
535
|
-
|
|
774
|
+
/** {zh}
|
|
775
|
+
* @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
|
|
776
|
+
*/
|
|
536
777
|
/** {en}
|
|
537
778
|
* @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
|
|
538
779
|
*/
|
|
539
780
|
stallTimeMs: int;
|
|
540
|
-
|
|
781
|
+
/** {zh}
|
|
782
|
+
* @brief 带宽预测 ,单位为 kbps。
|
|
783
|
+
*/
|
|
541
784
|
/** {en}
|
|
542
785
|
* @brief The estimated bandwidth, in kbps.
|
|
543
786
|
*/
|
|
544
787
|
bandwidthEstimation: long;
|
|
545
|
-
|
|
788
|
+
/** {zh}
|
|
789
|
+
* @brief 视频的编码类型。
|
|
790
|
+
*/
|
|
546
791
|
/** {en}
|
|
547
792
|
* @brief The encoding format of the video.
|
|
548
793
|
*/
|
|
549
794
|
videoCodec: NSString;
|
|
550
|
-
|
|
795
|
+
/** {zh}
|
|
796
|
+
* @brief 当前播放视频的宽度,单位为 px。
|
|
797
|
+
*/
|
|
551
798
|
/** {en}
|
|
552
799
|
* @brief The width of the video, in pixels.
|
|
553
800
|
*/
|
|
554
801
|
width: int;
|
|
555
|
-
|
|
802
|
+
/** {zh}
|
|
803
|
+
* @brief 当前播放视频的高度,单位为 px。
|
|
804
|
+
*/
|
|
556
805
|
/** {en}
|
|
557
806
|
* @brief The height of the video, in pixels.
|
|
558
807
|
*/
|
|
559
808
|
height: int;
|
|
560
|
-
|
|
809
|
+
/** {zh}
|
|
810
|
+
* @brief 当前播放视频的帧率,单位为 fps。
|
|
811
|
+
*/
|
|
561
812
|
/** {en}
|
|
562
813
|
* @brief The frame rate of the video, in fps.
|
|
563
814
|
*/
|
|
564
815
|
fps: float;
|
|
565
|
-
|
|
816
|
+
/** {zh}
|
|
817
|
+
* @brief 实时下载的码率,单位为 kbps。
|
|
818
|
+
*/
|
|
566
819
|
/** {en}
|
|
567
820
|
* @brief The downlink bitrate, in Kbps.
|
|
568
821
|
*/
|
|
569
822
|
bitrate: long;
|
|
570
|
-
|
|
823
|
+
/** {zh}
|
|
824
|
+
* @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
|
|
825
|
+
*/
|
|
571
826
|
/** {en}
|
|
572
827
|
* @brief The video buffer, in milliseconds.
|
|
573
828
|
*/
|
|
574
829
|
videoBufferMs: long;
|
|
575
|
-
|
|
830
|
+
/** {zh}
|
|
831
|
+
* @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
|
|
832
|
+
*/
|
|
576
833
|
/** {en}
|
|
577
834
|
* @brief The audio buffer, in milliseconds.
|
|
578
835
|
*/
|
|
579
836
|
audioBufferMs: long;
|
|
580
|
-
|
|
837
|
+
/** {zh}
|
|
838
|
+
* @brief 当前播放的视频格式。
|
|
839
|
+
*/
|
|
581
840
|
/** {en}
|
|
582
841
|
* @brief The video format.
|
|
583
842
|
*/
|
|
584
843
|
format: VeLivePlayerFormat;
|
|
585
|
-
|
|
844
|
+
/** {zh}
|
|
845
|
+
* @brief 当前播放的传输协议。
|
|
846
|
+
*/
|
|
586
847
|
/** {en}
|
|
587
848
|
* @brief The transmission protocol of the live stream.
|
|
588
849
|
*/
|
|
@@ -590,13 +851,19 @@ export declare class VeLivePlayerStatistics {
|
|
|
590
851
|
init(): this;
|
|
591
852
|
}
|
|
592
853
|
export declare enum VeLivePlayerType {
|
|
593
|
-
|
|
854
|
+
/** {zh}
|
|
855
|
+
* @brief 自研播放器。
|
|
856
|
+
*
|
|
857
|
+
*/
|
|
594
858
|
/** {en}
|
|
595
859
|
* @brief Custom player.
|
|
596
860
|
*
|
|
597
861
|
*/
|
|
598
862
|
VeLivePlayerTypeOwn = 0,
|
|
599
|
-
|
|
863
|
+
/** {zh}
|
|
864
|
+
* @brief 系统播放器。
|
|
865
|
+
*
|
|
866
|
+
*/
|
|
600
867
|
/** {en}
|
|
601
868
|
* @brief System player.
|
|
602
869
|
*
|
|
@@ -604,13 +871,19 @@ export declare enum VeLivePlayerType {
|
|
|
604
871
|
VeLivePlayerTypeSystem = 1
|
|
605
872
|
}
|
|
606
873
|
export declare enum VeLivePlayerStreamType {
|
|
607
|
-
|
|
874
|
+
/** {zh}
|
|
875
|
+
* @brief 主路流。
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
608
878
|
/** {en}
|
|
609
879
|
* @brief The primary stream.
|
|
610
880
|
*
|
|
611
881
|
*/
|
|
612
882
|
VeLivePlayerStreamTypeMain = 0,
|
|
613
|
-
|
|
883
|
+
/** {zh}
|
|
884
|
+
* @brief 备路流。
|
|
885
|
+
*
|
|
886
|
+
*/
|
|
614
887
|
/** {en}
|
|
615
888
|
* @brief The backup stream.
|
|
616
889
|
*
|
|
@@ -618,19 +891,28 @@ export declare enum VeLivePlayerStreamType {
|
|
|
618
891
|
VeLivePlayerStreamTypeBackup = 1
|
|
619
892
|
}
|
|
620
893
|
export declare enum VeLivePlayerFormat {
|
|
621
|
-
|
|
894
|
+
/** {zh}
|
|
895
|
+
* @brief FLV 格式。
|
|
896
|
+
*
|
|
897
|
+
*/
|
|
622
898
|
/** {en}
|
|
623
899
|
* @brief FLV.
|
|
624
900
|
*
|
|
625
901
|
*/
|
|
626
902
|
VeLivePlayerFormatFLV = 0,
|
|
627
|
-
|
|
903
|
+
/** {zh}
|
|
904
|
+
* @brief HLS 格式。
|
|
905
|
+
*
|
|
906
|
+
*/
|
|
628
907
|
/** {en}
|
|
629
908
|
* @brief HLS.
|
|
630
909
|
*
|
|
631
910
|
*/
|
|
632
911
|
VeLivePlayerFormatHLS = 1,
|
|
633
|
-
|
|
912
|
+
/** {zh}
|
|
913
|
+
* @brief RTM 格式。
|
|
914
|
+
*
|
|
915
|
+
*/
|
|
634
916
|
/** {en}
|
|
635
917
|
* @brief Real Time Media (RTM).
|
|
636
918
|
*
|
|
@@ -638,55 +920,84 @@ export declare enum VeLivePlayerFormat {
|
|
|
638
920
|
VeLivePlayerFormatRTM = 2
|
|
639
921
|
}
|
|
640
922
|
export declare enum VeLivePlayerResolution {
|
|
641
|
-
|
|
923
|
+
/** {zh}
|
|
924
|
+
* @brief 原始流。
|
|
925
|
+
*
|
|
926
|
+
*/
|
|
642
927
|
/** {en}
|
|
643
928
|
* @brief Original.
|
|
644
929
|
*
|
|
645
930
|
*/
|
|
646
931
|
VeLivePlayerResolutionOrigin = 0,
|
|
647
|
-
|
|
932
|
+
/** {zh}
|
|
933
|
+
* @brief UHD 超高清。
|
|
934
|
+
*
|
|
935
|
+
*/
|
|
648
936
|
/** {en}
|
|
649
937
|
* @brief Ultra high definition (UHD).
|
|
650
938
|
*
|
|
651
939
|
*/
|
|
652
940
|
VeLivePlayerResolutionUHD = 1,
|
|
653
|
-
|
|
941
|
+
/** {zh}
|
|
942
|
+
* @brief FHD 全高清
|
|
943
|
+
*
|
|
944
|
+
*/
|
|
654
945
|
/** {en}
|
|
655
946
|
* @brief Full High definition (FHD).
|
|
656
947
|
*
|
|
657
948
|
*/
|
|
658
949
|
VeLivePlayerResolutionFHD = 2,
|
|
659
|
-
|
|
950
|
+
/** {zh}
|
|
951
|
+
* @brief HD 高清。
|
|
952
|
+
*
|
|
953
|
+
*/
|
|
660
954
|
/** {en}
|
|
661
955
|
* @brief High definition (HD).
|
|
662
956
|
*
|
|
663
957
|
*/
|
|
664
958
|
VeLivePlayerResolutionHD = 3,
|
|
665
|
-
|
|
959
|
+
/** {zh}
|
|
960
|
+
* @brief SD 标清。
|
|
961
|
+
*
|
|
962
|
+
*/
|
|
666
963
|
/** {en}
|
|
667
964
|
* @brief Standard definition (SD).
|
|
668
965
|
*
|
|
669
966
|
*/
|
|
670
967
|
VeLivePlayerResolutionSD = 4,
|
|
671
|
-
|
|
968
|
+
/** {zh}
|
|
969
|
+
* @brief LD 低清。
|
|
970
|
+
*
|
|
971
|
+
*/
|
|
672
972
|
/** {en}
|
|
673
973
|
* @brief Low definition (LD).
|
|
674
974
|
*
|
|
675
975
|
*/
|
|
676
976
|
VeLivePlayerResolutionLD = 5,
|
|
677
|
-
|
|
977
|
+
/** {zh}
|
|
978
|
+
* @brief MD 审核档位
|
|
979
|
+
* @hidden (iOS)
|
|
980
|
+
*
|
|
981
|
+
*/
|
|
678
982
|
/** {en}
|
|
679
983
|
* @hidden (iOS)
|
|
680
984
|
*
|
|
681
985
|
*/
|
|
682
986
|
VeLivePlayerResolutionMD = 6,
|
|
683
|
-
|
|
987
|
+
/** {zh}
|
|
988
|
+
* @brief 仅音频
|
|
989
|
+
* @hidden (iOS)
|
|
990
|
+
*
|
|
991
|
+
*/
|
|
684
992
|
/** {en}
|
|
685
993
|
* @hidden (iOS)
|
|
686
994
|
*
|
|
687
995
|
*/
|
|
688
996
|
VeLivePlayerResolutionAO = 7,
|
|
689
|
-
|
|
997
|
+
/** {zh}
|
|
998
|
+
* @brief 自动档位。
|
|
999
|
+
*
|
|
1000
|
+
*/
|
|
690
1001
|
/** {en}
|
|
691
1002
|
* @brief Auto.
|
|
692
1003
|
*
|