@volcengine/veplayer 2.4.0-rc.3 → 2.4.0-rc.4

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 (40) hide show
  1. package/esm/index.d.ts +22 -6
  2. package/esm/veplayer.biz.live.development.js +192 -102
  3. package/esm/veplayer.biz.live.production.js +1 -1
  4. package/esm/veplayer.d.ts +551 -106
  5. package/esm/veplayer.development.css +1 -1
  6. package/esm/veplayer.development.js +263 -134
  7. package/esm/veplayer.live.d.ts +551 -106
  8. package/esm/veplayer.live.development.css +1 -1
  9. package/esm/veplayer.live.development.js +263 -134
  10. package/esm/veplayer.live.production.css +1 -1
  11. package/esm/veplayer.live.production.js +3 -3
  12. package/esm/veplayer.production.css +1 -1
  13. package/esm/veplayer.production.js +3 -3
  14. package/esm/veplayer.vod.d.ts +22 -6
  15. package/esm/veplayer.vod.development.css +1 -1
  16. package/esm/veplayer.vod.development.js +65 -27
  17. package/esm/veplayer.vod.production.css +1 -1
  18. package/esm/veplayer.vod.production.js +2 -2
  19. package/package.json +1 -1
  20. package/umd/index.d.ts +22 -6
  21. package/umd/veplayer.biz.live.development.js +192 -102
  22. package/umd/veplayer.biz.live.production.js +1 -1
  23. package/umd/veplayer.d.ts +551 -106
  24. package/umd/veplayer.development.css +1 -1
  25. package/umd/veplayer.development.js +263 -134
  26. package/umd/veplayer.live.d.ts +551 -106
  27. package/umd/veplayer.live.development.css +1 -1
  28. package/umd/veplayer.live.development.js +263 -134
  29. package/umd/veplayer.live.production.css +1 -1
  30. package/umd/veplayer.live.production.js +1 -1
  31. package/umd/veplayer.production.css +1 -1
  32. package/umd/veplayer.production.js +1 -1
  33. package/umd/veplayer.vod.d.ts +22 -6
  34. package/umd/veplayer.vod.development.css +1 -1
  35. package/umd/veplayer.vod.development.js +65 -27
  36. package/umd/veplayer.vod.production.css +1 -1
  37. package/umd/veplayer.vod.production.js +1 -1
  38. package/veplayer.d.ts +551 -106
  39. package/veplayer.live.d.ts +551 -106
  40. package/veplayer.vod.d.ts +22 -6
package/veplayer.vod.d.ts CHANGED
@@ -1729,6 +1729,11 @@ declare class VePlayerBase {
1729
1729
  * @brief Gets the current playback source ID.
1730
1730
  */
1731
1731
  get source(): string | undefined;
1732
+ /** {zh}
1733
+ * 获取播放器版本号
1734
+ * @returns
1735
+ */
1736
+ get playerVersion(): string;
1732
1737
  /** {zh}
1733
1738
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
1734
1739
  */
@@ -1851,6 +1856,12 @@ declare class VePlayerBase {
1851
1856
  *
1852
1857
  */
1853
1858
  fallbackToFirstDefinition?: boolean;
1859
+ /** {zh}
1860
+ * @brief 是否无缝切换
1861
+ * - true: 无缝切换
1862
+ * - false: 非无缝切换
1863
+ * @default false
1864
+ */
1854
1865
  seamless?: boolean;
1855
1866
  }): Promise<ExposedDefinition>;
1856
1867
  /** {zh}
@@ -2020,6 +2031,11 @@ declare class VePlayerBase {
2020
2031
  */
2021
2032
  ignorePaused?: boolean;
2022
2033
  }): void;
2034
+ /** {zh}
2035
+ * @brief 判断浏览器是否支持播放格式
2036
+ * @param type 播放格式
2037
+ * @returns
2038
+ */
2023
2039
  canPlayType(type: string): boolean;
2024
2040
  /** {zh}
2025
2041
  * @brief 调用此方法进入系统全屏状态。如果该方法调用的时候处于网页全屏状态会自动退出网页全屏,下发事件 `Events.FULLSCREEN_CHANGE`。
@@ -4609,9 +4625,9 @@ declare namespace event {
4609
4625
  AUTOPLAY_SUCCESS: string;
4610
4626
  ERROR_REFRESH_CLICK: string;
4611
4627
  SOURCE_CHANGE: string;
4612
- SWITCH_DEFINITION_START: string;
4613
- SWITCH_DEFINITION_SUCCESS: string;
4614
- DOWN_DEFINITION: string;
4628
+ ABR_SWITCH_START: string;
4629
+ ABR_SWITCH_SUCCESS: string;
4630
+ ABR_SWITCH_FAILED: string;
4615
4631
  };
4616
4632
  const Events: {
4617
4633
  SEI: string;
@@ -4637,9 +4653,9 @@ declare namespace event {
4637
4653
  AUTOPLAY_SUCCESS: string;
4638
4654
  ERROR_REFRESH_CLICK: string;
4639
4655
  SOURCE_CHANGE: string;
4640
- SWITCH_DEFINITION_START: string;
4641
- SWITCH_DEFINITION_SUCCESS: string;
4642
- DOWN_DEFINITION: string;
4656
+ ABR_SWITCH_START: string;
4657
+ ABR_SWITCH_SUCCESS: string;
4658
+ ABR_SWITCH_FAILED: string;
4643
4659
  REPLAY: string;
4644
4660
  ERROR: string;
4645
4661
  PLAY: string;