@volcengine/veplayer 2.4.0-rc.1 → 2.4.0-rc.2
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 +2 -0
- package/esm/veplayer.biz.live.development.js +48 -3
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +30 -4
- package/esm/veplayer.development.js +57 -7
- package/esm/veplayer.live.d.ts +30 -4
- package/esm/veplayer.live.development.js +57 -7
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +4 -4
- package/esm/veplayer.vod.d.ts +2 -0
- package/esm/veplayer.vod.development.js +8 -3
- package/esm/veplayer.vod.production.js +3 -3
- package/package.json +1 -1
- package/umd/index.d.ts +2 -0
- package/umd/veplayer.biz.live.development.js +48 -3
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +30 -4
- package/umd/veplayer.development.js +57 -7
- package/umd/veplayer.live.d.ts +30 -4
- package/umd/veplayer.live.development.js +57 -7
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +2 -0
- package/umd/veplayer.vod.development.js +8 -3
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +30 -4
- package/veplayer.live.d.ts +30 -4
- package/veplayer.vod.d.ts +2 -0
package/umd/veplayer.vod.d.ts
CHANGED
|
@@ -1851,6 +1851,7 @@ declare class VePlayerBase {
|
|
|
1851
1851
|
*
|
|
1852
1852
|
*/
|
|
1853
1853
|
fallbackToFirstDefinition?: boolean;
|
|
1854
|
+
seamless?: boolean;
|
|
1854
1855
|
}): Promise<ExposedDefinition>;
|
|
1855
1856
|
/** {zh}
|
|
1856
1857
|
* @brief 调用此方法更新拉流地址列表。
|
|
@@ -2019,6 +2020,7 @@ declare class VePlayerBase {
|
|
|
2019
2020
|
*/
|
|
2020
2021
|
ignorePaused?: boolean;
|
|
2021
2022
|
}): void;
|
|
2023
|
+
canPlayType(type: string): boolean;
|
|
2022
2024
|
/** {zh}
|
|
2023
2025
|
* @brief 调用此方法进入系统全屏状态。如果该方法调用的时候处于网页全屏状态会自动退出网页全屏,下发事件 `Events.FULLSCREEN_CHANGE`。
|
|
2024
2026
|
* @param el 全屏作用的 DOM 节点。
|
|
@@ -13711,7 +13711,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13711
13711
|
var _a, _b;
|
|
13712
13712
|
if (typeof target === "string" && this._sourceManager.sources.length === 1 && ((_b = (_a = this._sourceManager.sources) == null ? void 0 : _a[0].definitions) == null ? void 0 : _b.length) === 1) {
|
|
13713
13713
|
this._sourceManager.updateSources(target);
|
|
13714
|
-
await this._switchUrl(target);
|
|
13714
|
+
await this._switchUrl(target, { seamless: options == null ? void 0 : options.seamless });
|
|
13715
13715
|
return this._sourceManager.definition;
|
|
13716
13716
|
}
|
|
13717
13717
|
const targetDefinition = this._sourceManager.find(target, options);
|
|
@@ -13897,6 +13897,9 @@ var __publicField = (obj, key, value) => {
|
|
|
13897
13897
|
blur(data) {
|
|
13898
13898
|
return this._player.blur(data);
|
|
13899
13899
|
}
|
|
13900
|
+
canPlayType(type) {
|
|
13901
|
+
return this._player.canPlayType(type);
|
|
13902
|
+
}
|
|
13900
13903
|
/** {zh}
|
|
13901
13904
|
* @brief 调用此方法进入系统全屏状态。如果该方法调用的时候处于网页全屏状态会自动退出网页全屏,下发事件 `Events.FULLSCREEN_CHANGE`。
|
|
13902
13905
|
* @param el 全屏作用的 DOM 节点。
|
|
@@ -14094,14 +14097,16 @@ var __publicField = (obj, key, value) => {
|
|
|
14094
14097
|
this._player.changeDefinition(targetDefinition, preDefinition);
|
|
14095
14098
|
}
|
|
14096
14099
|
}
|
|
14097
|
-
async _switchUrl(url) {
|
|
14100
|
+
async _switchUrl(url, config) {
|
|
14098
14101
|
const { plugins: newPlugins, options } = await this.prepare(url) || {};
|
|
14099
14102
|
const newUrl = (options == null ? void 0 : options.url) ?? url;
|
|
14100
14103
|
this._sourceManager.url = newUrl;
|
|
14101
14104
|
if (newPlugins == null ? void 0 : newPlugins.length) {
|
|
14102
14105
|
this._callBeforePlayerInitForUrl(newPlugins, newUrl);
|
|
14103
14106
|
} else {
|
|
14104
|
-
const res = this._player.switchURL(newUrl,
|
|
14107
|
+
const res = this._player.switchURL(newUrl, {
|
|
14108
|
+
seamless: config == null ? void 0 : config.seamless
|
|
14109
|
+
});
|
|
14105
14110
|
const curTime = this._player.currentTime;
|
|
14106
14111
|
if (res && res.then) {
|
|
14107
14112
|
return res;
|