@volcengine/veplayer 2.8.1 → 2.9.0-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/esm/index.d.ts +62 -32
- package/esm/veplayer.biz.live.development.js +28504 -3692
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +377 -168
- package/esm/veplayer.development.js +25355 -538
- package/esm/veplayer.live.d.ts +377 -168
- package/esm/veplayer.live.development.js +25355 -538
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +62 -32
- package/esm/veplayer.vod.development.js +9 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +62 -32
- package/umd/veplayer.biz.live.development.js +28487 -3675
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +377 -168
- package/umd/veplayer.development.js +25347 -530
- package/umd/veplayer.live.d.ts +377 -168
- package/umd/veplayer.live.development.js +25347 -530
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +62 -32
- package/umd/veplayer.vod.development.js +9 -6
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +377 -168
- package/veplayer.live.d.ts +377 -168
- package/veplayer.vod.d.ts +62 -32
package/veplayer.live.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import MiniScreen from "xgplayer/es/plugins/miniScreen";
|
|
|
23
23
|
import PIPIcon from "xgplayer/es/plugins/pip";
|
|
24
24
|
import VeStrategy from "@byted/volcengine-vestrategy";
|
|
25
25
|
import { StrategyRecommendation, BaseStrategy, VeStrategyConfig } from "@byted/volcengine-vestrategy";
|
|
26
|
+
import { HLS } from "@byted/xgplayer-hls.js";
|
|
26
27
|
declare const EN: {
|
|
27
28
|
DEFINITION_FALLBACK_TOAST: string;
|
|
28
29
|
DEFINITION_SWITCHING: string;
|
|
@@ -516,6 +517,16 @@ declare enum Level {
|
|
|
516
517
|
*/
|
|
517
518
|
Warn = "Warn"
|
|
518
519
|
}
|
|
520
|
+
/** {zh}
|
|
521
|
+
* @detail error
|
|
522
|
+
* @id errorcode
|
|
523
|
+
* @hidden
|
|
524
|
+
*/
|
|
525
|
+
/** {en}
|
|
526
|
+
* @detail error
|
|
527
|
+
* @id errorcode
|
|
528
|
+
* @hidden
|
|
529
|
+
*/
|
|
519
530
|
declare enum ErrorCode {
|
|
520
531
|
/** {zh}
|
|
521
532
|
* @brief 视频解析错误
|
|
@@ -1729,15 +1740,15 @@ interface Poster {
|
|
|
1729
1740
|
*/
|
|
1730
1741
|
isEndedShow?: boolean;
|
|
1731
1742
|
/** {zh}
|
|
1732
|
-
* @brief
|
|
1733
|
-
* - `true
|
|
1734
|
-
* - `false
|
|
1743
|
+
* @brief 是否在播放后隐藏封面图。
|
|
1744
|
+
* - `true`:在播放器开始播放(即画面可见)后隐藏封面图,播放前始终显示,避免黑屏;
|
|
1745
|
+
* - `false`:在触发 `play` 事件时立即隐藏封面图,可能在画面显示前出现黑屏。
|
|
1735
1746
|
* @default false
|
|
1736
1747
|
*/
|
|
1737
1748
|
/** {en}
|
|
1738
|
-
* @brief Whether to hide the
|
|
1739
|
-
* - `true`:
|
|
1740
|
-
* - `false`:
|
|
1749
|
+
* @brief Whether to hide the poster image after playback starts.
|
|
1750
|
+
* - `true`:The poster image remains visible until video playback actually starts (i.e., video frames are rendered), preventing a black screen before playback.
|
|
1751
|
+
* - `false`:The poster image is hidden immediately when the `play` event is triggered, which may cause a brief black screen before video appears.
|
|
1741
1752
|
* @default false
|
|
1742
1753
|
*/
|
|
1743
1754
|
hideCanplay?: boolean;
|
|
@@ -1751,18 +1762,18 @@ interface Poster {
|
|
|
1751
1762
|
*/
|
|
1752
1763
|
notHidden?: boolean;
|
|
1753
1764
|
/** {zh}
|
|
1754
|
-
* @brief
|
|
1755
|
-
* - `fixWidth
|
|
1756
|
-
* - `fixHeight
|
|
1757
|
-
* - `cover
|
|
1758
|
-
* - `contain
|
|
1765
|
+
* @brief 封面图的填充方式,取值如下所示。
|
|
1766
|
+
* - `fixWidth`:按宽度适配容器,高度等比缩放,图像不拉伸压缩;
|
|
1767
|
+
* - `fixHeight`:按高度适配容器,宽度等比缩放,图像不拉伸压缩;
|
|
1768
|
+
* - `cover`:等比缩放并裁剪,使封面图完整覆盖容器,不留黑边;
|
|
1769
|
+
* - `contain`:等比缩放并拉伸,使封面图完整覆盖容器,不留黑边,可能失真。
|
|
1759
1770
|
*/
|
|
1760
1771
|
/** {en}
|
|
1761
|
-
* @brief
|
|
1762
|
-
* - `fixWidth`:
|
|
1763
|
-
* - `fixHeight`:
|
|
1764
|
-
* - `cover`:
|
|
1765
|
-
* - `contain`:
|
|
1772
|
+
* @brief Fill mode of the poster image. The available options are as follows:
|
|
1773
|
+
* - `fixWidth`:Scales the image to fit the container's width while maintaining aspect ratio. Height is scaled proportionally, which may leave vertical blank space.
|
|
1774
|
+
* - `fixHeight`:Scales the image to fit the container's height while maintaining aspect ratio. Width is scaled proportionally, which may leave horizontal blank space.
|
|
1775
|
+
* - `cover`:Scales the image proportionally and crops overflow to fully cover the container without black borders.
|
|
1776
|
+
* - `contain`:Scales the image to fully fit the container. May stretch non-proportionally to avoid black borders, potentially causing distortion.
|
|
1766
1777
|
*/
|
|
1767
1778
|
fillMode?: "fixWidth" | "fixHeight" | "cover" | "contain";
|
|
1768
1779
|
}
|
|
@@ -3027,6 +3038,16 @@ declare namespace strategy {
|
|
|
3027
3038
|
*/
|
|
3028
3039
|
Warn = "Warn"
|
|
3029
3040
|
}
|
|
3041
|
+
/** {zh}
|
|
3042
|
+
* @detail error
|
|
3043
|
+
* @id errorcode
|
|
3044
|
+
* @hidden
|
|
3045
|
+
*/
|
|
3046
|
+
/** {en}
|
|
3047
|
+
* @detail error
|
|
3048
|
+
* @id errorcode
|
|
3049
|
+
* @hidden
|
|
3050
|
+
*/
|
|
3030
3051
|
enum ErrorCode {
|
|
3031
3052
|
/** {zh}
|
|
3032
3053
|
* @brief 视频解析错误
|
|
@@ -4244,15 +4265,15 @@ declare namespace strategy {
|
|
|
4244
4265
|
*/
|
|
4245
4266
|
isEndedShow?: boolean;
|
|
4246
4267
|
/** {zh}
|
|
4247
|
-
* @brief
|
|
4248
|
-
* - `true
|
|
4249
|
-
* - `false
|
|
4268
|
+
* @brief 是否在播放后隐藏封面图。
|
|
4269
|
+
* - `true`:在播放器开始播放(即画面可见)后隐藏封面图,播放前始终显示,避免黑屏;
|
|
4270
|
+
* - `false`:在触发 `play` 事件时立即隐藏封面图,可能在画面显示前出现黑屏。
|
|
4250
4271
|
* @default false
|
|
4251
4272
|
*/
|
|
4252
4273
|
/** {en}
|
|
4253
|
-
* @brief Whether to hide the
|
|
4254
|
-
* - `true`:
|
|
4255
|
-
* - `false`:
|
|
4274
|
+
* @brief Whether to hide the poster image after playback starts.
|
|
4275
|
+
* - `true`:The poster image remains visible until video playback actually starts (i.e., video frames are rendered), preventing a black screen before playback.
|
|
4276
|
+
* - `false`:The poster image is hidden immediately when the `play` event is triggered, which may cause a brief black screen before video appears.
|
|
4256
4277
|
* @default false
|
|
4257
4278
|
*/
|
|
4258
4279
|
hideCanplay?: boolean;
|
|
@@ -4266,18 +4287,18 @@ declare namespace strategy {
|
|
|
4266
4287
|
*/
|
|
4267
4288
|
notHidden?: boolean;
|
|
4268
4289
|
/** {zh}
|
|
4269
|
-
* @brief
|
|
4270
|
-
* - `fixWidth
|
|
4271
|
-
* - `fixHeight
|
|
4272
|
-
* - `cover
|
|
4273
|
-
* - `contain
|
|
4290
|
+
* @brief 封面图的填充方式,取值如下所示。
|
|
4291
|
+
* - `fixWidth`:按宽度适配容器,高度等比缩放,图像不拉伸压缩;
|
|
4292
|
+
* - `fixHeight`:按高度适配容器,宽度等比缩放,图像不拉伸压缩;
|
|
4293
|
+
* - `cover`:等比缩放并裁剪,使封面图完整覆盖容器,不留黑边;
|
|
4294
|
+
* - `contain`:等比缩放并拉伸,使封面图完整覆盖容器,不留黑边,可能失真。
|
|
4274
4295
|
*/
|
|
4275
4296
|
/** {en}
|
|
4276
|
-
* @brief
|
|
4277
|
-
* - `fixWidth`:
|
|
4278
|
-
* - `fixHeight`:
|
|
4279
|
-
* - `cover`:
|
|
4280
|
-
* - `contain`:
|
|
4297
|
+
* @brief Fill mode of the poster image. The available options are as follows:
|
|
4298
|
+
* - `fixWidth`:Scales the image to fit the container's width while maintaining aspect ratio. Height is scaled proportionally, which may leave vertical blank space.
|
|
4299
|
+
* - `fixHeight`:Scales the image to fit the container's height while maintaining aspect ratio. Width is scaled proportionally, which may leave horizontal blank space.
|
|
4300
|
+
* - `cover`:Scales the image proportionally and crops overflow to fully cover the container without black borders.
|
|
4301
|
+
* - `contain`:Scales the image to fully fit the container. May stretch non-proportionally to avoid black borders, potentially causing distortion.
|
|
4281
4302
|
*/
|
|
4282
4303
|
fillMode?: "fixWidth" | "fixHeight" | "cover" | "contain";
|
|
4283
4304
|
}
|
|
@@ -4818,6 +4839,16 @@ declare namespace error {
|
|
|
4818
4839
|
*/
|
|
4819
4840
|
Warn = "Warn"
|
|
4820
4841
|
}
|
|
4842
|
+
/** {zh}
|
|
4843
|
+
* @detail error
|
|
4844
|
+
* @id errorcode
|
|
4845
|
+
* @hidden
|
|
4846
|
+
*/
|
|
4847
|
+
/** {en}
|
|
4848
|
+
* @detail error
|
|
4849
|
+
* @id errorcode
|
|
4850
|
+
* @hidden
|
|
4851
|
+
*/
|
|
4821
4852
|
enum ErrorCode {
|
|
4822
4853
|
/** {zh}
|
|
4823
4854
|
* @brief 视频解析错误
|
|
@@ -5655,7 +5686,6 @@ interface LoggerConfig {
|
|
|
5655
5686
|
}
|
|
5656
5687
|
/** {zh}
|
|
5657
5688
|
* 高级能力(策略)名称
|
|
5658
|
-
* @detail Options
|
|
5659
5689
|
* @brief 策略名称
|
|
5660
5690
|
*/
|
|
5661
5691
|
declare enum StrategyNames {
|
|
@@ -5682,7 +5712,6 @@ declare enum StrategyNames {
|
|
|
5682
5712
|
}
|
|
5683
5713
|
/** {zh}
|
|
5684
5714
|
* 播放器预初始化配置
|
|
5685
|
-
* @detail Options
|
|
5686
5715
|
*/
|
|
5687
5716
|
type StrategyInitOptions<T = Record<string, Partial<VeStrategyConfig> | boolean>> = {
|
|
5688
5717
|
/**
|
|
@@ -5782,6 +5811,7 @@ interface ErrorFallbackStrategy {
|
|
|
5782
5811
|
*/
|
|
5783
5812
|
/** {en}
|
|
5784
5813
|
* @brief Type of fallback. Specifies whether fallback is automatic or manually controlled.
|
|
5814
|
+
* @hidden
|
|
5785
5815
|
*/
|
|
5786
5816
|
type?: FallbackKind;
|
|
5787
5817
|
/** {zh}
|
|
@@ -5882,15 +5912,57 @@ declare class ProtocolManager {
|
|
|
5882
5912
|
private _init;
|
|
5883
5913
|
private _initSingleProtocol;
|
|
5884
5914
|
}
|
|
5915
|
+
/** {zh}
|
|
5916
|
+
* @list option
|
|
5917
|
+
* @kind property
|
|
5918
|
+
*/
|
|
5919
|
+
/** {en}
|
|
5920
|
+
* @list option
|
|
5921
|
+
* @kind property
|
|
5922
|
+
*/
|
|
5885
5923
|
interface PrepareOptions {
|
|
5924
|
+
/** {zh}
|
|
5925
|
+
* @brief 应用 ID,登录[视频直播控制台 > SDK 管理](https://console.volcengine.com/live/main/sdk)查询。
|
|
5926
|
+
*/
|
|
5927
|
+
/** {en}
|
|
5928
|
+
* @brief The SDK application ID. You can access it by logging in to the BytePlus MediaLive console and navigating to [SDK Management](https://console.byteplus.com/live/main/sdk).
|
|
5929
|
+
*/
|
|
5886
5930
|
appId: string;
|
|
5931
|
+
/** {zh}
|
|
5932
|
+
* @brief 用于识别单一用户的 ID,如不设置,会随机生成一个用户 ID 存在浏览器缓存中。
|
|
5933
|
+
* @listtip
|
|
5934
|
+
* 建议您使用与业务相关的用户 ID,以便在发生播放错误时快速定位排查问题。
|
|
5935
|
+
*/
|
|
5936
|
+
/** {en}
|
|
5937
|
+
* @brief The ID used to identify a single user. If not set, a random user ID will be generated and stored in the browser cache.
|
|
5938
|
+
* @listtip
|
|
5939
|
+
* We recommend using a business-related user ID to quickly locate and troubleshoot problems in the event of playback errors.
|
|
5940
|
+
*/
|
|
5887
5941
|
userId?: string;
|
|
5942
|
+
/** {zh}
|
|
5943
|
+
* @hidden
|
|
5944
|
+
*/
|
|
5945
|
+
/** {en}
|
|
5946
|
+
* @hidden
|
|
5947
|
+
*/
|
|
5888
5948
|
deviceId?: string;
|
|
5889
|
-
|
|
5949
|
+
/** {zh}
|
|
5950
|
+
* @brief 播放策略配置。
|
|
5951
|
+
*/
|
|
5952
|
+
/** {en}
|
|
5953
|
+
* @brief Playback Strategy Configuration.
|
|
5954
|
+
*/
|
|
5955
|
+
strategies: {
|
|
5956
|
+
/** {zh}
|
|
5957
|
+
* @brief 是否开启 RTM buffer 自适应策略。
|
|
5958
|
+
*/
|
|
5959
|
+
/** {en}
|
|
5960
|
+
* @brief Enable RTM buffer adaptive strategy.
|
|
5961
|
+
*/
|
|
5962
|
+
rtmAdaptiveBuffer?: boolean;
|
|
5963
|
+
};
|
|
5890
5964
|
}
|
|
5891
|
-
type
|
|
5892
|
-
rtmAdaptiveBuffer?: boolean;
|
|
5893
|
-
};
|
|
5965
|
+
type HlsJs = HLS;
|
|
5894
5966
|
/** {zh}
|
|
5895
5967
|
* @list option
|
|
5896
5968
|
* @kind property
|
|
@@ -6019,6 +6091,7 @@ interface Fallback {
|
|
|
6019
6091
|
*/
|
|
6020
6092
|
/** {en}
|
|
6021
6093
|
* @brief Whether to enable protocol fallback.
|
|
6094
|
+
* @hidden
|
|
6022
6095
|
*/
|
|
6023
6096
|
enableFallback?: boolean;
|
|
6024
6097
|
/** {zh}
|
|
@@ -6056,6 +6129,9 @@ interface FallbackStrategy {
|
|
|
6056
6129
|
/** {zh}
|
|
6057
6130
|
* @brief 拉流报错时降级策略
|
|
6058
6131
|
*/
|
|
6132
|
+
/** {en}
|
|
6133
|
+
* @brief The protocol downgrade strategy when a pull stream encounters an error.
|
|
6134
|
+
*/
|
|
6059
6135
|
[FallbackKind.Error]?: ErrorFallbackStrategy;
|
|
6060
6136
|
/**
|
|
6061
6137
|
* @hidden
|
|
@@ -6186,13 +6262,25 @@ interface HlsAbr {
|
|
|
6186
6262
|
*/
|
|
6187
6263
|
interface Drm {
|
|
6188
6264
|
/** {zh}
|
|
6189
|
-
* @brief FairPlay DRM
|
|
6265
|
+
* @brief 配置 FairPlay DRM 参数,用于在 Apple 系统中播放加密内容。
|
|
6190
6266
|
*/
|
|
6191
6267
|
/** {en}
|
|
6192
|
-
* @brief FairPlay DRM
|
|
6268
|
+
* @brief FairPlay DRM configuration, used for encrypted content playback on Apple devices.
|
|
6193
6269
|
*/
|
|
6194
6270
|
fairplay?: FairplayDrm;
|
|
6271
|
+
/** {zh}
|
|
6272
|
+
* @brief Widevine DRM 配置。
|
|
6273
|
+
*/
|
|
6274
|
+
/** {en}
|
|
6275
|
+
* @brief Widevine DRM configurations.
|
|
6276
|
+
*/
|
|
6195
6277
|
widevine?: WidevineDrm;
|
|
6278
|
+
/** {zh}
|
|
6279
|
+
* @brief 配置 PlayReady DRM 参数,用于支持在 Windows/Edge 等环境中播放加密内容。
|
|
6280
|
+
*/
|
|
6281
|
+
/** {en}
|
|
6282
|
+
* @brief PlayReady DRM configuration, used for encrypted content playback on Windows/Edge.
|
|
6283
|
+
*/
|
|
6196
6284
|
playready?: PlayreadyDrm;
|
|
6197
6285
|
}
|
|
6198
6286
|
/** {zh}
|
|
@@ -6229,10 +6317,10 @@ interface FairplayDrm {
|
|
|
6229
6317
|
*/
|
|
6230
6318
|
interface WidevineDrm {
|
|
6231
6319
|
/** {zh}
|
|
6232
|
-
* @
|
|
6320
|
+
* @brief 获取内容密钥许可证的请求地址。
|
|
6233
6321
|
*/
|
|
6234
6322
|
/** {en}
|
|
6235
|
-
* @
|
|
6323
|
+
* @brief URL used to acquire the DRM license.
|
|
6236
6324
|
*/
|
|
6237
6325
|
// [x: string]: string | undefined;
|
|
6238
6326
|
/** {zh}
|
|
@@ -6253,7 +6341,7 @@ interface WidevineDrm {
|
|
|
6253
6341
|
*/
|
|
6254
6342
|
interface PlayreadyDrm {
|
|
6255
6343
|
/**
|
|
6256
|
-
* @
|
|
6344
|
+
* @brief 获取内容密钥许可证的请求地址。
|
|
6257
6345
|
*/
|
|
6258
6346
|
// [x: string]: string | undefined;
|
|
6259
6347
|
/** {zh}
|
|
@@ -6416,11 +6504,13 @@ interface Rtm {
|
|
|
6416
6504
|
* - 未指定 `fallbackUrl`:当前环境不支持播放 RTM 或 RTM 拉流建联失败时,根据当前 RTM 地址降级到对应的 FLV 或者 HLS 地址。
|
|
6417
6505
|
* @listtip - v2.5.2 版本后未指定 `fallbackUrl` 且未开启自动转码的情况下,不会自动降级到 FLV 或者 HLS 地址。
|
|
6418
6506
|
* - 多线路和多清晰禁止插件内部自动降级, 具体降级方式查看 [RTM 协议拉流](https://www.volcengine.com/docs/6469/1548474)。
|
|
6507
|
+
* @hidden
|
|
6419
6508
|
*/
|
|
6420
6509
|
/** {en}
|
|
6421
6510
|
* @brief The FLV or HLS addresses the player uses when failing to pull an RTM stream. This parameter takes effect when `enableFallback` is set to `true`.
|
|
6422
6511
|
* - If `fallbackUrl` is specified, in the event of a failed RTM pull-stream connection, the player will switch to the specified fallback address.
|
|
6423
6512
|
* - If `fallbackUrl` is not specified, in the event of a failed RTM pull-stream connection, the player will switch to the corresponding FLV or HLS address.
|
|
6513
|
+
* @hidden
|
|
6424
6514
|
*/
|
|
6425
6515
|
fallbackUrl?: string;
|
|
6426
6516
|
/** {zh}
|
|
@@ -6515,17 +6605,20 @@ interface Rtm {
|
|
|
6515
6605
|
*/
|
|
6516
6606
|
delayHint?: number;
|
|
6517
6607
|
/** {zh}
|
|
6518
|
-
* @brief RTM
|
|
6608
|
+
* @brief RTM 拉流建联成功后延迟指定时间开始检测数据接收情况,单位为毫秒。取值范围为 [5000,10000]。若在此时间内未成功接收到数据,则触发播放错误
|
|
6519
6609
|
* @default 5000
|
|
6520
6610
|
*/
|
|
6521
6611
|
/** {en}
|
|
6522
|
-
* @brief After RTM connection is established, the
|
|
6612
|
+
* @brief After the RTM streaming connection is successfully established, the player delays for a specified period (in milliseconds) before checking if data is successfully received. If no data is received within this period, a playback error will be triggered.
|
|
6523
6613
|
* @default 5000
|
|
6524
6614
|
*/
|
|
6525
6615
|
checkStatsErrorDelay?: number;
|
|
6526
6616
|
/** {zh}
|
|
6527
6617
|
* @brief 是否打开 RTM SEI
|
|
6528
6618
|
*/
|
|
6619
|
+
/** {en}
|
|
6620
|
+
* @brief enable RTM SEI data.
|
|
6621
|
+
*/
|
|
6529
6622
|
enableSei?: boolean;
|
|
6530
6623
|
}
|
|
6531
6624
|
/** {zh}
|
|
@@ -6679,6 +6772,7 @@ interface Hls {
|
|
|
6679
6772
|
* @default 10000
|
|
6680
6773
|
*/
|
|
6681
6774
|
loadTimeout?: number;
|
|
6775
|
+
manifestLoadTimeout?: number;
|
|
6682
6776
|
/** {zh}
|
|
6683
6777
|
* @brief 播放器发起 HLS 拉流请求失败时重新尝试建联的最大次数,取值为 0 时表示关闭播放器重试。
|
|
6684
6778
|
* @default 0
|
|
@@ -7192,6 +7286,7 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
7192
7286
|
* @hidden
|
|
7193
7287
|
*/
|
|
7194
7288
|
get ad(): any;
|
|
7289
|
+
get hls(): HlsJs.default;
|
|
7195
7290
|
/** {zh}
|
|
7196
7291
|
* @brief 调用此方法开启直播日志上报。
|
|
7197
7292
|
*/
|
|
@@ -7932,6 +8027,16 @@ declare namespace live {
|
|
|
7932
8027
|
*/
|
|
7933
8028
|
Warn = "Warn"
|
|
7934
8029
|
}
|
|
8030
|
+
/** {zh}
|
|
8031
|
+
* @detail error
|
|
8032
|
+
* @id errorcode
|
|
8033
|
+
* @hidden
|
|
8034
|
+
*/
|
|
8035
|
+
/** {en}
|
|
8036
|
+
* @detail error
|
|
8037
|
+
* @id errorcode
|
|
8038
|
+
* @hidden
|
|
8039
|
+
*/
|
|
7935
8040
|
enum ErrorCode {
|
|
7936
8041
|
/** {zh}
|
|
7937
8042
|
* @brief 视频解析错误
|
|
@@ -9149,15 +9254,15 @@ declare namespace live {
|
|
|
9149
9254
|
*/
|
|
9150
9255
|
isEndedShow?: boolean;
|
|
9151
9256
|
/** {zh}
|
|
9152
|
-
* @brief
|
|
9153
|
-
* - `true
|
|
9154
|
-
* - `false
|
|
9257
|
+
* @brief 是否在播放后隐藏封面图。
|
|
9258
|
+
* - `true`:在播放器开始播放(即画面可见)后隐藏封面图,播放前始终显示,避免黑屏;
|
|
9259
|
+
* - `false`:在触发 `play` 事件时立即隐藏封面图,可能在画面显示前出现黑屏。
|
|
9155
9260
|
* @default false
|
|
9156
9261
|
*/
|
|
9157
9262
|
/** {en}
|
|
9158
|
-
* @brief Whether to hide the
|
|
9159
|
-
* - `true`:
|
|
9160
|
-
* - `false`:
|
|
9263
|
+
* @brief Whether to hide the poster image after playback starts.
|
|
9264
|
+
* - `true`:The poster image remains visible until video playback actually starts (i.e., video frames are rendered), preventing a black screen before playback.
|
|
9265
|
+
* - `false`:The poster image is hidden immediately when the `play` event is triggered, which may cause a brief black screen before video appears.
|
|
9161
9266
|
* @default false
|
|
9162
9267
|
*/
|
|
9163
9268
|
hideCanplay?: boolean;
|
|
@@ -9171,18 +9276,18 @@ declare namespace live {
|
|
|
9171
9276
|
*/
|
|
9172
9277
|
notHidden?: boolean;
|
|
9173
9278
|
/** {zh}
|
|
9174
|
-
* @brief
|
|
9175
|
-
* - `fixWidth
|
|
9176
|
-
* - `fixHeight
|
|
9177
|
-
* - `cover
|
|
9178
|
-
* - `contain
|
|
9279
|
+
* @brief 封面图的填充方式,取值如下所示。
|
|
9280
|
+
* - `fixWidth`:按宽度适配容器,高度等比缩放,图像不拉伸压缩;
|
|
9281
|
+
* - `fixHeight`:按高度适配容器,宽度等比缩放,图像不拉伸压缩;
|
|
9282
|
+
* - `cover`:等比缩放并裁剪,使封面图完整覆盖容器,不留黑边;
|
|
9283
|
+
* - `contain`:等比缩放并拉伸,使封面图完整覆盖容器,不留黑边,可能失真。
|
|
9179
9284
|
*/
|
|
9180
9285
|
/** {en}
|
|
9181
|
-
* @brief
|
|
9182
|
-
* - `fixWidth`:
|
|
9183
|
-
* - `fixHeight`:
|
|
9184
|
-
* - `cover`:
|
|
9185
|
-
* - `contain`:
|
|
9286
|
+
* @brief Fill mode of the poster image. The available options are as follows:
|
|
9287
|
+
* - `fixWidth`:Scales the image to fit the container's width while maintaining aspect ratio. Height is scaled proportionally, which may leave vertical blank space.
|
|
9288
|
+
* - `fixHeight`:Scales the image to fit the container's height while maintaining aspect ratio. Width is scaled proportionally, which may leave horizontal blank space.
|
|
9289
|
+
* - `cover`:Scales the image proportionally and crops overflow to fully cover the container without black borders.
|
|
9290
|
+
* - `contain`:Scales the image to fully fit the container. May stretch non-proportionally to avoid black borders, potentially causing distortion.
|
|
9186
9291
|
*/
|
|
9187
9292
|
fillMode?: "fixWidth" | "fixHeight" | "cover" | "contain";
|
|
9188
9293
|
}
|
|
@@ -10462,7 +10567,6 @@ declare namespace live {
|
|
|
10462
10567
|
}
|
|
10463
10568
|
/** {zh}
|
|
10464
10569
|
* 高级能力(策略)名称
|
|
10465
|
-
* @detail Options
|
|
10466
10570
|
* @brief 策略名称
|
|
10467
10571
|
*/
|
|
10468
10572
|
enum StrategyNames {
|
|
@@ -10489,7 +10593,6 @@ declare namespace live {
|
|
|
10489
10593
|
}
|
|
10490
10594
|
/** {zh}
|
|
10491
10595
|
* 播放器预初始化配置
|
|
10492
|
-
* @detail Options
|
|
10493
10596
|
*/
|
|
10494
10597
|
type StrategyInitOptions<T = Record<string, Partial<VeStrategyConfig> | boolean>> = {
|
|
10495
10598
|
/**
|
|
@@ -10615,6 +10718,7 @@ declare namespace live {
|
|
|
10615
10718
|
*/
|
|
10616
10719
|
/** {en}
|
|
10617
10720
|
* @brief Type of fallback. Specifies whether fallback is automatic or manually controlled.
|
|
10721
|
+
* @hidden
|
|
10618
10722
|
*/
|
|
10619
10723
|
type?: FallbackKind;
|
|
10620
10724
|
/** {zh}
|
|
@@ -10715,15 +10819,57 @@ declare namespace live {
|
|
|
10715
10819
|
private _init;
|
|
10716
10820
|
private _initSingleProtocol;
|
|
10717
10821
|
}
|
|
10822
|
+
/** {zh}
|
|
10823
|
+
* @list option
|
|
10824
|
+
* @kind property
|
|
10825
|
+
*/
|
|
10826
|
+
/** {en}
|
|
10827
|
+
* @list option
|
|
10828
|
+
* @kind property
|
|
10829
|
+
*/
|
|
10718
10830
|
interface PrepareOptions {
|
|
10831
|
+
/** {zh}
|
|
10832
|
+
* @brief 应用 ID,登录[视频直播控制台 > SDK 管理](https://console.volcengine.com/live/main/sdk)查询。
|
|
10833
|
+
*/
|
|
10834
|
+
/** {en}
|
|
10835
|
+
* @brief The SDK application ID. You can access it by logging in to the BytePlus MediaLive console and navigating to [SDK Management](https://console.byteplus.com/live/main/sdk).
|
|
10836
|
+
*/
|
|
10719
10837
|
appId: string;
|
|
10838
|
+
/** {zh}
|
|
10839
|
+
* @brief 用于识别单一用户的 ID,如不设置,会随机生成一个用户 ID 存在浏览器缓存中。
|
|
10840
|
+
* @listtip
|
|
10841
|
+
* 建议您使用与业务相关的用户 ID,以便在发生播放错误时快速定位排查问题。
|
|
10842
|
+
*/
|
|
10843
|
+
/** {en}
|
|
10844
|
+
* @brief The ID used to identify a single user. If not set, a random user ID will be generated and stored in the browser cache.
|
|
10845
|
+
* @listtip
|
|
10846
|
+
* We recommend using a business-related user ID to quickly locate and troubleshoot problems in the event of playback errors.
|
|
10847
|
+
*/
|
|
10720
10848
|
userId?: string;
|
|
10849
|
+
/** {zh}
|
|
10850
|
+
* @hidden
|
|
10851
|
+
*/
|
|
10852
|
+
/** {en}
|
|
10853
|
+
* @hidden
|
|
10854
|
+
*/
|
|
10721
10855
|
deviceId?: string;
|
|
10722
|
-
|
|
10856
|
+
/** {zh}
|
|
10857
|
+
* @brief 播放策略配置。
|
|
10858
|
+
*/
|
|
10859
|
+
/** {en}
|
|
10860
|
+
* @brief Playback Strategy Configuration.
|
|
10861
|
+
*/
|
|
10862
|
+
strategies: {
|
|
10863
|
+
/** {zh}
|
|
10864
|
+
* @brief 是否开启 RTM buffer 自适应策略。
|
|
10865
|
+
*/
|
|
10866
|
+
/** {en}
|
|
10867
|
+
* @brief Enable RTM buffer adaptive strategy.
|
|
10868
|
+
*/
|
|
10869
|
+
rtmAdaptiveBuffer?: boolean;
|
|
10870
|
+
};
|
|
10723
10871
|
}
|
|
10724
|
-
type
|
|
10725
|
-
rtmAdaptiveBuffer?: boolean;
|
|
10726
|
-
};
|
|
10872
|
+
type HlsJs = HLS;
|
|
10727
10873
|
/** {zh}
|
|
10728
10874
|
* @list option
|
|
10729
10875
|
* @kind property
|
|
@@ -10852,6 +10998,7 @@ declare namespace live {
|
|
|
10852
10998
|
*/
|
|
10853
10999
|
/** {en}
|
|
10854
11000
|
* @brief Whether to enable protocol fallback.
|
|
11001
|
+
* @hidden
|
|
10855
11002
|
*/
|
|
10856
11003
|
enableFallback?: boolean;
|
|
10857
11004
|
/** {zh}
|
|
@@ -10889,6 +11036,9 @@ declare namespace live {
|
|
|
10889
11036
|
/** {zh}
|
|
10890
11037
|
* @brief 拉流报错时降级策略
|
|
10891
11038
|
*/
|
|
11039
|
+
/** {en}
|
|
11040
|
+
* @brief The protocol downgrade strategy when a pull stream encounters an error.
|
|
11041
|
+
*/
|
|
10892
11042
|
[FallbackKind.Error]?: ErrorFallbackStrategy;
|
|
10893
11043
|
/**
|
|
10894
11044
|
* @hidden
|
|
@@ -11019,13 +11169,25 @@ declare namespace live {
|
|
|
11019
11169
|
*/
|
|
11020
11170
|
interface Drm {
|
|
11021
11171
|
/** {zh}
|
|
11022
|
-
* @brief FairPlay DRM
|
|
11172
|
+
* @brief 配置 FairPlay DRM 参数,用于在 Apple 系统中播放加密内容。
|
|
11023
11173
|
*/
|
|
11024
11174
|
/** {en}
|
|
11025
|
-
* @brief FairPlay DRM
|
|
11175
|
+
* @brief FairPlay DRM configuration, used for encrypted content playback on Apple devices.
|
|
11026
11176
|
*/
|
|
11027
11177
|
fairplay?: FairplayDrm;
|
|
11178
|
+
/** {zh}
|
|
11179
|
+
* @brief Widevine DRM 配置。
|
|
11180
|
+
*/
|
|
11181
|
+
/** {en}
|
|
11182
|
+
* @brief Widevine DRM configurations.
|
|
11183
|
+
*/
|
|
11028
11184
|
widevine?: WidevineDrm;
|
|
11185
|
+
/** {zh}
|
|
11186
|
+
* @brief 配置 PlayReady DRM 参数,用于支持在 Windows/Edge 等环境中播放加密内容。
|
|
11187
|
+
*/
|
|
11188
|
+
/** {en}
|
|
11189
|
+
* @brief PlayReady DRM configuration, used for encrypted content playback on Windows/Edge.
|
|
11190
|
+
*/
|
|
11029
11191
|
playready?: PlayreadyDrm;
|
|
11030
11192
|
}
|
|
11031
11193
|
/** {zh}
|
|
@@ -11062,10 +11224,10 @@ declare namespace live {
|
|
|
11062
11224
|
*/
|
|
11063
11225
|
interface WidevineDrm {
|
|
11064
11226
|
/** {zh}
|
|
11065
|
-
* @
|
|
11227
|
+
* @brief 获取内容密钥许可证的请求地址。
|
|
11066
11228
|
*/
|
|
11067
11229
|
/** {en}
|
|
11068
|
-
* @
|
|
11230
|
+
* @brief URL used to acquire the DRM license.
|
|
11069
11231
|
*/
|
|
11070
11232
|
// [x: string]: string | undefined;
|
|
11071
11233
|
/** {zh}
|
|
@@ -11086,7 +11248,7 @@ declare namespace live {
|
|
|
11086
11248
|
*/
|
|
11087
11249
|
interface PlayreadyDrm {
|
|
11088
11250
|
/**
|
|
11089
|
-
* @
|
|
11251
|
+
* @brief 获取内容密钥许可证的请求地址。
|
|
11090
11252
|
*/
|
|
11091
11253
|
// [x: string]: string | undefined;
|
|
11092
11254
|
/** {zh}
|
|
@@ -11249,11 +11411,13 @@ declare namespace live {
|
|
|
11249
11411
|
* - 未指定 `fallbackUrl`:当前环境不支持播放 RTM 或 RTM 拉流建联失败时,根据当前 RTM 地址降级到对应的 FLV 或者 HLS 地址。
|
|
11250
11412
|
* @listtip - v2.5.2 版本后未指定 `fallbackUrl` 且未开启自动转码的情况下,不会自动降级到 FLV 或者 HLS 地址。
|
|
11251
11413
|
* - 多线路和多清晰禁止插件内部自动降级, 具体降级方式查看 [RTM 协议拉流](https://www.volcengine.com/docs/6469/1548474)。
|
|
11414
|
+
* @hidden
|
|
11252
11415
|
*/
|
|
11253
11416
|
/** {en}
|
|
11254
11417
|
* @brief The FLV or HLS addresses the player uses when failing to pull an RTM stream. This parameter takes effect when `enableFallback` is set to `true`.
|
|
11255
11418
|
* - If `fallbackUrl` is specified, in the event of a failed RTM pull-stream connection, the player will switch to the specified fallback address.
|
|
11256
11419
|
* - If `fallbackUrl` is not specified, in the event of a failed RTM pull-stream connection, the player will switch to the corresponding FLV or HLS address.
|
|
11420
|
+
* @hidden
|
|
11257
11421
|
*/
|
|
11258
11422
|
fallbackUrl?: string;
|
|
11259
11423
|
/** {zh}
|
|
@@ -11348,17 +11512,20 @@ declare namespace live {
|
|
|
11348
11512
|
*/
|
|
11349
11513
|
delayHint?: number;
|
|
11350
11514
|
/** {zh}
|
|
11351
|
-
* @brief RTM
|
|
11515
|
+
* @brief RTM 拉流建联成功后延迟指定时间开始检测数据接收情况,单位为毫秒。取值范围为 [5000,10000]。若在此时间内未成功接收到数据,则触发播放错误
|
|
11352
11516
|
* @default 5000
|
|
11353
11517
|
*/
|
|
11354
11518
|
/** {en}
|
|
11355
|
-
* @brief After RTM connection is established, the
|
|
11519
|
+
* @brief After the RTM streaming connection is successfully established, the player delays for a specified period (in milliseconds) before checking if data is successfully received. If no data is received within this period, a playback error will be triggered.
|
|
11356
11520
|
* @default 5000
|
|
11357
11521
|
*/
|
|
11358
11522
|
checkStatsErrorDelay?: number;
|
|
11359
11523
|
/** {zh}
|
|
11360
11524
|
* @brief 是否打开 RTM SEI
|
|
11361
11525
|
*/
|
|
11526
|
+
/** {en}
|
|
11527
|
+
* @brief enable RTM SEI data.
|
|
11528
|
+
*/
|
|
11362
11529
|
enableSei?: boolean;
|
|
11363
11530
|
}
|
|
11364
11531
|
/** {zh}
|
|
@@ -11512,6 +11679,7 @@ declare namespace live {
|
|
|
11512
11679
|
* @default 10000
|
|
11513
11680
|
*/
|
|
11514
11681
|
loadTimeout?: number;
|
|
11682
|
+
manifestLoadTimeout?: number;
|
|
11515
11683
|
/** {zh}
|
|
11516
11684
|
* @brief 播放器发起 HLS 拉流请求失败时重新尝试建联的最大次数,取值为 0 时表示关闭播放器重试。
|
|
11517
11685
|
* @default 0
|
|
@@ -12025,6 +12193,7 @@ declare namespace live {
|
|
|
12025
12193
|
* @hidden
|
|
12026
12194
|
*/
|
|
12027
12195
|
get ad(): any;
|
|
12196
|
+
get hls(): HlsJs.default;
|
|
12028
12197
|
/** {zh}
|
|
12029
12198
|
* @brief 调用此方法开启直播日志上报。
|
|
12030
12199
|
*/
|
|
@@ -12215,6 +12384,54 @@ declare namespace live {
|
|
|
12215
12384
|
* @returns The player instance.
|
|
12216
12385
|
*/
|
|
12217
12386
|
function createLivePlayer(options?: LiveVePlayerOptions): Promise<VePlayerLive>;
|
|
12387
|
+
/** {zh}
|
|
12388
|
+
* @detail api
|
|
12389
|
+
* @brief 初始化播放器策略。
|
|
12390
|
+
* @example
|
|
12391
|
+
* ```js
|
|
12392
|
+
* live.prepare({
|
|
12393
|
+
* appId: '***',
|
|
12394
|
+
* userId: '***',
|
|
12395
|
+
* strategies: {
|
|
12396
|
+
* rtmAdaptiveBuffer: true,
|
|
12397
|
+
* },
|
|
12398
|
+
* }).then(function () {
|
|
12399
|
+
* VePlayer.createLivePlayer({
|
|
12400
|
+
* height: '300px',
|
|
12401
|
+
* url: 'https://pulldomain.com/appname/streamname.sdp',
|
|
12402
|
+
* logger: {
|
|
12403
|
+
* userId: '***',
|
|
12404
|
+
* appId: '***',
|
|
12405
|
+
* },
|
|
12406
|
+
* });
|
|
12407
|
+
* });
|
|
12408
|
+
* ```
|
|
12409
|
+
* @param options 配置策略参数。
|
|
12410
|
+
*/
|
|
12411
|
+
/** {en}
|
|
12412
|
+
* @detail api
|
|
12413
|
+
* @brief Initialize player strategy.
|
|
12414
|
+
* @example
|
|
12415
|
+
* ```js
|
|
12416
|
+
* live.prepare({
|
|
12417
|
+
* appId: '***',
|
|
12418
|
+
* userId: '***',
|
|
12419
|
+
* strategies: {
|
|
12420
|
+
* rtmAdaptiveBuffer: true,
|
|
12421
|
+
* },
|
|
12422
|
+
* }).then(function () {
|
|
12423
|
+
* VePlayer.createLivePlayer({
|
|
12424
|
+
* height: '300px',
|
|
12425
|
+
* url: 'https://pulldomain.com/appname/streamname.sdp',
|
|
12426
|
+
* logger: {
|
|
12427
|
+
* userId: '***',
|
|
12428
|
+
* appId: '***',
|
|
12429
|
+
* },
|
|
12430
|
+
* });
|
|
12431
|
+
* });
|
|
12432
|
+
* ```
|
|
12433
|
+
* @param options Configure strategy parameters.
|
|
12434
|
+
*/
|
|
12218
12435
|
function prepare(options: PrepareOptions): Promise<VeStrategyManager | undefined>;
|
|
12219
12436
|
/** {zh}
|
|
12220
12437
|
* @detail events
|
|
@@ -12560,7 +12777,44 @@ declare namespace live {
|
|
|
12560
12777
|
* @brief Event of failing to switch Adaptive Bitrate (ABR) live stream.
|
|
12561
12778
|
*/
|
|
12562
12779
|
ABR_SWITCH_FAILED = "abrSwitchFailed",
|
|
12563
|
-
|
|
12780
|
+
/** {en}
|
|
12781
|
+
* @hidden
|
|
12782
|
+
*/
|
|
12783
|
+
/** {zh}
|
|
12784
|
+
* @hidden
|
|
12785
|
+
*/
|
|
12786
|
+
RTM_NETWORK = "rtmNetwork",
|
|
12787
|
+
// HLS_MEDIA_ATTACHING = 'hlsMediaAttaching',
|
|
12788
|
+
// HLS_MEDIA_ATTACHED = 'hlsMediaAttached',
|
|
12789
|
+
// HLS_MEDIA_DETACHING = 'hlsMediaDetaching',
|
|
12790
|
+
// HLS_MEDIA_DETACHED = 'hlsMediaDetached',
|
|
12791
|
+
// HLS_MEDIA_ENDED = 'hlsMediaEnded',
|
|
12792
|
+
// HLS_BUFFER_RESET = 'hlsBufferReset',
|
|
12793
|
+
// HLS_BUFFER_CODECS = 'hlsBufferCodecs',
|
|
12794
|
+
// HLS_BUFFER_CREATED = 'hlsBufferCreated',
|
|
12795
|
+
// HLS_BUFFER_APPENDING = 'hlsBufferAppending',
|
|
12796
|
+
// HLS_BUFFER_APPENDED = 'hlsBufferAppended',
|
|
12797
|
+
// HLS_BUFFER_EOS = 'hlsBufferEos',
|
|
12798
|
+
// HLS_BUFFERED_TO_END = 'hlsBufferedToEnd',
|
|
12799
|
+
// HLS_BUFFER_FLUSHING = 'hlsBufferFlushing',
|
|
12800
|
+
// HLS_BUFFER_FLUSHED = 'hlsBufferFlushed',
|
|
12801
|
+
// HLS_MANIFEST_LOADING = 'hlsManifestLoading',
|
|
12802
|
+
// HLS_MANIFEST_LOADED = 'hlsManifestLoaded',
|
|
12803
|
+
// HLS_MANIFEST_PARSED = 'hlsManifestParsed',
|
|
12804
|
+
/** {en}
|
|
12805
|
+
*
|
|
12806
|
+
*/
|
|
12807
|
+
/** {zh}
|
|
12808
|
+
* 开始 Abr 档位
|
|
12809
|
+
*/
|
|
12810
|
+
HLS_LEVEL_SWITCHING = "hlsLevelSwitching",
|
|
12811
|
+
/** {en}
|
|
12812
|
+
*
|
|
12813
|
+
*/
|
|
12814
|
+
/** {zh}
|
|
12815
|
+
* Abr 档位切换完成
|
|
12816
|
+
*/
|
|
12817
|
+
HLS_LEVEL_SWITCHED = "hlsLevelSwitched"
|
|
12564
12818
|
}
|
|
12565
12819
|
/** {zh}
|
|
12566
12820
|
* @detail events
|
|
@@ -13170,101 +13424,56 @@ declare namespace live {
|
|
|
13170
13424
|
*/
|
|
13171
13425
|
url: string;
|
|
13172
13426
|
}) => void;
|
|
13427
|
+
/** {en}
|
|
13428
|
+
* @hidden
|
|
13429
|
+
*/
|
|
13430
|
+
/** {zh}
|
|
13431
|
+
* @hidden
|
|
13432
|
+
*/
|
|
13173
13433
|
[LiveEvents.RTM_NETWORK]: (data: any) => void;
|
|
13434
|
+
[LiveEvents.HLS_LEVEL_SWITCHED]: (data: {
|
|
13435
|
+
/** {zh}
|
|
13436
|
+
* @brief 切换档位。
|
|
13437
|
+
*/
|
|
13438
|
+
/** {en}
|
|
13439
|
+
*/
|
|
13440
|
+
level: number;
|
|
13441
|
+
}) => void;
|
|
13442
|
+
[LiveEvents.HLS_LEVEL_SWITCHING]: (data: {
|
|
13443
|
+
/** {zh}
|
|
13444
|
+
* @brief 切换档位。
|
|
13445
|
+
*/
|
|
13446
|
+
/** {en}
|
|
13447
|
+
*/
|
|
13448
|
+
level: number;
|
|
13449
|
+
/** {zh}
|
|
13450
|
+
* @brief 切换后的码率。
|
|
13451
|
+
*/
|
|
13452
|
+
/** {en}
|
|
13453
|
+
* @brief Bitrate after switching.
|
|
13454
|
+
*/
|
|
13455
|
+
bitrate: number;
|
|
13456
|
+
/** {zh}
|
|
13457
|
+
* @brief 切换后地址的高度。
|
|
13458
|
+
*/
|
|
13459
|
+
/** {en}
|
|
13460
|
+
*/
|
|
13461
|
+
height: number;
|
|
13462
|
+
/** {zh}
|
|
13463
|
+
* @brief 切换后地址的宽度。
|
|
13464
|
+
*/
|
|
13465
|
+
/** {en}
|
|
13466
|
+
*/
|
|
13467
|
+
width: number;
|
|
13468
|
+
/** {zh}
|
|
13469
|
+
* @brief 切换地址。
|
|
13470
|
+
*/
|
|
13471
|
+
/** {en}
|
|
13472
|
+
*/
|
|
13473
|
+
uri: string;
|
|
13474
|
+
}) => void;
|
|
13174
13475
|
}
|
|
13175
|
-
const Events:
|
|
13176
|
-
TIME_SHIFT_CHANGE: string;
|
|
13177
|
-
REFRESH_CLICK: string;
|
|
13178
|
-
SEI: string;
|
|
13179
|
-
PLAYER_CREATE_FINISH: string;
|
|
13180
|
-
FALLBACK_ERROR: string;
|
|
13181
|
-
FALLBACK: string;
|
|
13182
|
-
AUTOPLAY_STARTED: string;
|
|
13183
|
-
AUTOPLAY_PREVENTED: string;
|
|
13184
|
-
DOWNLOAD_SPEED_CHANGE: string;
|
|
13185
|
-
FULLSCREEN_CHANGE: string;
|
|
13186
|
-
CSS_FULLSCREEN_CHANGE: string;
|
|
13187
|
-
MINI_STATE_CHANGE: string;
|
|
13188
|
-
DEFINITION_CHANGE: string;
|
|
13189
|
-
BEFORE_DEFINITION_CHANGE: string;
|
|
13190
|
-
AFTER_DEFINITION_CHANGE: string;
|
|
13191
|
-
VIDEO_RESIZE: string;
|
|
13192
|
-
PIP_CHANGE: string;
|
|
13193
|
-
USER_ACTION: string;
|
|
13194
|
-
AUTOPLAY_UNMUTE: string;
|
|
13195
|
-
LONG_WAITING: string;
|
|
13196
|
-
DEFINITION_FALLBACK: string;
|
|
13197
|
-
AUTOPLAY_FAIL: string;
|
|
13198
|
-
AUTOPLAY_SUCCESS: string;
|
|
13199
|
-
ERROR_REFRESH_CLICK: string;
|
|
13200
|
-
SOURCE_CHANGE: string;
|
|
13201
|
-
ABR_SWITCH_START: string;
|
|
13202
|
-
ABR_SWITCH_SUCCESS: string;
|
|
13203
|
-
ABR_SWITCH_FAILED: string;
|
|
13204
|
-
AD_FIRST_QUARTILE: string;
|
|
13205
|
-
AD_MIDPOINT: string;
|
|
13206
|
-
AD_THIRD_QUARTILE: string;
|
|
13207
|
-
AD_CLICK: string;
|
|
13208
|
-
AD_IMPRESSION: string;
|
|
13209
|
-
AD_RESUME: string;
|
|
13210
|
-
AD_START: string;
|
|
13211
|
-
AD_PLAY: string;
|
|
13212
|
-
AD_PAUSE: string;
|
|
13213
|
-
AD_TIME_UPDATE: string;
|
|
13214
|
-
AD_SKIPPED: string;
|
|
13215
|
-
AD_ERROR: string;
|
|
13216
|
-
AD_COMPLETE: string;
|
|
13217
|
-
AD_ALL_COMPLETED: string;
|
|
13218
|
-
RTM_NETWORK: string;
|
|
13219
|
-
REPLAY: string;
|
|
13220
|
-
ERROR: string;
|
|
13221
|
-
PLAY: string;
|
|
13222
|
-
PLAYING: string;
|
|
13223
|
-
ENDED: string;
|
|
13224
|
-
PAUSE: string;
|
|
13225
|
-
SEEKING: string;
|
|
13226
|
-
SEEKED: string;
|
|
13227
|
-
TIME_UPDATE: string;
|
|
13228
|
-
WAITING: string;
|
|
13229
|
-
CANPLAY: string;
|
|
13230
|
-
CANPLAY_THROUGH: string;
|
|
13231
|
-
DURATION_CHANGE: string;
|
|
13232
|
-
VOLUME_CHANGE: string;
|
|
13233
|
-
LOADED_DATA: string;
|
|
13234
|
-
LOADED_METADATA: string;
|
|
13235
|
-
RATE_CHANGE: string;
|
|
13236
|
-
PROGRESS: string;
|
|
13237
|
-
LOAD_START: string;
|
|
13238
|
-
EMPTIED: string;
|
|
13239
|
-
STALLED: string;
|
|
13240
|
-
SUSPEND: string;
|
|
13241
|
-
ABORT: string;
|
|
13242
|
-
BUFFER_CHANGE: string;
|
|
13243
|
-
PLAYER_FOCUS: string;
|
|
13244
|
-
PLAYER_BLUR: string;
|
|
13245
|
-
READY: string;
|
|
13246
|
-
URL_NULL: string;
|
|
13247
|
-
COMPLETE: string;
|
|
13248
|
-
DESTROY: string;
|
|
13249
|
-
URL_CHANGE: string;
|
|
13250
|
-
LEAVE_PLAYER: string;
|
|
13251
|
-
ENTER_PLAYER: string;
|
|
13252
|
-
LOADING: string;
|
|
13253
|
-
SEI_PARSED: string;
|
|
13254
|
-
RETRY: string;
|
|
13255
|
-
ROTATE: string;
|
|
13256
|
-
SCREEN_SHOT: string;
|
|
13257
|
-
PLAYNEXT: string;
|
|
13258
|
-
SHORTCUT: string;
|
|
13259
|
-
XGLOG: string;
|
|
13260
|
-
RESET: string;
|
|
13261
|
-
SOURCE_ERROR: string;
|
|
13262
|
-
SOURCE_SUCCESS: string;
|
|
13263
|
-
SWITCH_SUBTITLE: string;
|
|
13264
|
-
VIDEO_EVENTS: string;
|
|
13265
|
-
STATS_EVENTS: string;
|
|
13266
|
-
FPS_STUCK: string;
|
|
13267
|
-
};
|
|
13476
|
+
const Events: any;
|
|
13268
13477
|
type Events = LiveEvents;
|
|
13269
13478
|
const EN$0: {
|
|
13270
13479
|
INVALID_PARAMETER: string;
|