@volcengine/veplayer 1.20.0-rc.12 → 1.20.0-rc.14

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/index.d.ts CHANGED
@@ -1686,6 +1686,23 @@ export interface mp4OptsItem {
1686
1686
  * @kind property
1687
1687
  */
1688
1688
  export interface IEncryptHlsPluginConfig {
1689
+ /** {zh}
1690
+ * @brief 是否关闭 HLS 播放错误时降级到原生 video。默认开启降级,仅在浏览器支持原生 HLS 且插件允许时生效。
1691
+ * @default false
1692
+ * @example
1693
+ * ```js
1694
+ * new VePlayer({ id: 'video', url: 'video.m3u8', EncryptHlsPlugin: { closeDowngrade: true } });
1695
+ * ```
1696
+ */
1697
+ /** {en}
1698
+ * @brief Whether to disable native video fallback after HLS playback errors. Fallback is enabled by default when the browser supports native HLS and the plugin permits it.
1699
+ * @default false
1700
+ * @example
1701
+ * ```js
1702
+ * new VePlayer({ id: 'video', url: 'video.m3u8', EncryptHlsPlugin: { closeDowngrade: true } });
1703
+ * ```
1704
+ */
1705
+ closeDowngrade?: boolean;
1689
1706
  /** {zh}
1690
1707
  * @brief 获取播放地址的请求域名。
1691
1708
  * @default https://vod.volcengineapi.com
@@ -3472,6 +3489,9 @@ export interface IJSBCallbackResult {
3472
3489
  is_success: number | boolean;
3473
3490
  error?: MinisError;
3474
3491
  data?: {
3492
+ /** {zh} @brief 锚点播放是否有效;首次播放时 false 表示应返回首页。 @hidden */
3493
+ /** {en} @brief Whether anchor playback is valid; false on first playback redirects home. @hidden */
3494
+ if_valid_anchor_play?: boolean;
3475
3495
  /** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
3476
3496
  /** {en} @brief Native tracking fields; omitted fields are not reported. */
3477
3497
  tracking_context?: IJSBCallbackResult["tracking_context"];
@@ -7781,6 +7801,9 @@ declare class AuthToken extends SdkPlugin {
7781
7801
  defaultDefinition: string;
7782
7802
  }>;
7783
7803
  private reportEmptyDramaPlaylist;
7804
+ /** {zh} @brief 页面首次短剧播放的锚点失效时返回首页。 @hidden */
7805
+ /** {en} @brief Redirect home when the first page playback has an invalid drama anchor. @hidden */
7806
+ private redirectInvalidAnchorPlay;
7784
7807
  /**
7785
7808
  * 短剧 Minis 环境:通过 JSB getDramaInfo 获取媒体信息
7786
7809
  */