@volcengine/veplayer 2.5.1-rc.2 → 2.5.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/veplayer",
3
- "version": "2.5.1-rc.2",
3
+ "version": "2.5.2-rc.0",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
package/umd/index.d.ts CHANGED
@@ -419,7 +419,14 @@ declare enum Level {
419
419
  /** {en}
420
420
  * @brief Error.
421
421
  */
422
- Error = "Error"
422
+ Error = "Error",
423
+ /** {zh}
424
+ * @brief 提示。
425
+ */
426
+ /** {en}
427
+ * @brief Warn.
428
+ */
429
+ Warn = "Warn"
423
430
  }
424
431
  declare enum ErrorCode {
425
432
  /** {zh}
@@ -1501,15 +1508,16 @@ type PrepareResult = {
1501
1508
  options?: Partial<VePlayerBaseOptions>;
1502
1509
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1503
1510
  plugins?: any[];
1511
+ useSrc?: boolean;
1504
1512
  };
1505
1513
  type PreparePlugins = (url: string) => Promise<PrepareResult> | undefined;
1506
1514
  /** {zh}
1507
1515
  * @detail option
1508
- * @brief 视频的实际编码格式。如果您在degradation 设置了 SoftFirst 属性(即硬解不支持降级软解),建议您传入该参数,省去探测实际编码格式的操作。
1516
+ * @brief 视频的实际编码格式。如果您在 degradation 设置了 SoftFirst 属性(即硬解不支持降级软解),建议您传入该参数,省去探测实际编码格式的操作。
1509
1517
  */
1510
1518
  /** {en}
1511
1519
  * @detail option
1512
- * @brief The actual codec of the video.
1520
+ * @brief The actual codec of the video. If you set the SoftFirst property in degradation (that is, hard solutions do not support downgrading soft solutions), it is recommended that you pass this parameter to save the operation of probing the actual encoding format.
1513
1521
  */
1514
1522
  declare enum Codec {
1515
1523
  /** {zh}
@@ -2147,16 +2155,17 @@ declare class VePlayerBase {
2147
2155
  * @hidden
2148
2156
  */
2149
2157
  prepare(url: string): Promise<{
2150
- plugins: any[];
2158
+ plugins: any[] | undefined;
2151
2159
  options: Partial<VePlayerBaseOptions> | undefined;
2160
+ isSameProtocol: boolean | "";
2161
+ useSrc: boolean | undefined;
2152
2162
  }>;
2153
2163
  private _handleFallback;
2154
2164
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2155
2165
  private _transformEvent;
2156
2166
  private _switch;
2167
+ private _switchDifferentProtocolUrl;
2157
2168
  private _switchUrl;
2158
- // 获取需要卸载和需要注册的播放插件
2159
- private _diffPlugins;
2160
2169
  private _callBeforePlayerInitForUrl;
2161
2170
  }
2162
2171
  declare const enum State {
@@ -2679,7 +2688,14 @@ declare namespace strategy {
2679
2688
  /** {en}
2680
2689
  * @brief Error.
2681
2690
  */
2682
- Error = "Error"
2691
+ Error = "Error",
2692
+ /** {zh}
2693
+ * @brief 提示。
2694
+ */
2695
+ /** {en}
2696
+ * @brief Warn.
2697
+ */
2698
+ Warn = "Warn"
2683
2699
  }
2684
2700
  enum ErrorCode {
2685
2701
  /** {zh}
@@ -3824,15 +3840,16 @@ declare namespace strategy {
3824
3840
  options?: Partial<VePlayerBaseOptions>;
3825
3841
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3826
3842
  plugins?: any[];
3843
+ useSrc?: boolean;
3827
3844
  };
3828
3845
  type PreparePlugins = (url: string) => Promise<PrepareResult> | undefined;
3829
3846
  /** {zh}
3830
3847
  * @detail option
3831
- * @brief 视频的实际编码格式。如果您在degradation 设置了 SoftFirst 属性(即硬解不支持降级软解),建议您传入该参数,省去探测实际编码格式的操作。
3848
+ * @brief 视频的实际编码格式。如果您在 degradation 设置了 SoftFirst 属性(即硬解不支持降级软解),建议您传入该参数,省去探测实际编码格式的操作。
3832
3849
  */
3833
3850
  /** {en}
3834
3851
  * @detail option
3835
- * @brief The actual codec of the video.
3852
+ * @brief The actual codec of the video. If you set the SoftFirst property in degradation (that is, hard solutions do not support downgrading soft solutions), it is recommended that you pass this parameter to save the operation of probing the actual encoding format.
3836
3853
  */
3837
3854
  enum Codec {
3838
3855
  /** {zh}
@@ -4172,7 +4189,14 @@ declare namespace error {
4172
4189
  /** {en}
4173
4190
  * @brief Error.
4174
4191
  */
4175
- Error = "Error"
4192
+ Error = "Error",
4193
+ /** {zh}
4194
+ * @brief 提示。
4195
+ */
4196
+ /** {en}
4197
+ * @brief Warn.
4198
+ */
4199
+ Warn = "Warn"
4176
4200
  }
4177
4201
  enum ErrorCode {
4178
4202
  /** {zh}