@volcengine/veplayer 2.4.0-rc.2 → 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.
- package/esm/index.d.ts +22 -6
- package/esm/veplayer.biz.live.development.js +194 -100
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +551 -104
- package/esm/veplayer.development.css +1 -1
- package/esm/veplayer.development.js +265 -132
- package/esm/veplayer.live.d.ts +551 -104
- package/esm/veplayer.live.development.css +1 -1
- package/esm/veplayer.live.development.js +265 -132
- package/esm/veplayer.live.production.css +1 -1
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.css +1 -1
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +22 -6
- package/esm/veplayer.vod.development.css +1 -1
- package/esm/veplayer.vod.development.js +65 -27
- package/esm/veplayer.vod.production.css +1 -1
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +22 -6
- package/umd/veplayer.biz.live.development.js +194 -100
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +551 -104
- package/umd/veplayer.development.css +1 -1
- package/umd/veplayer.development.js +265 -132
- package/umd/veplayer.live.d.ts +551 -104
- package/umd/veplayer.live.development.css +1 -1
- package/umd/veplayer.live.development.js +265 -132
- package/umd/veplayer.live.production.css +1 -1
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.css +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +22 -6
- package/umd/veplayer.vod.development.css +1 -1
- package/umd/veplayer.vod.development.js +65 -27
- package/umd/veplayer.vod.production.css +1 -1
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +551 -104
- package/veplayer.live.d.ts +551 -104
- 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
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
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
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
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;
|