@volcengine/veplayer 2.8.0-rc.0 → 2.8.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 +155 -121
- package/esm/veplayer.biz.live.development.js +36 -6
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +513 -212
- package/esm/veplayer.development.js +40 -12
- package/esm/veplayer.live.d.ts +513 -212
- package/esm/veplayer.live.development.js +40 -12
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.d.ts +155 -121
- package/esm/veplayer.vod.development.js +3 -5
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/index.d.ts +155 -121
- package/umd/veplayer.biz.live.development.js +36 -6
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +513 -212
- package/umd/veplayer.development.js +40 -12
- package/umd/veplayer.live.d.ts +513 -212
- package/umd/veplayer.live.development.js +40 -12
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +155 -121
- package/umd/veplayer.vod.development.js +3 -5
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +513 -212
- package/veplayer.live.d.ts +513 -212
- package/veplayer.vod.d.ts +155 -121
|
@@ -14454,7 +14454,7 @@ class VePlayerBase {
|
|
|
14454
14454
|
* @brief Retrieve the player SDK version number.
|
|
14455
14455
|
*/
|
|
14456
14456
|
get playerVersion() {
|
|
14457
|
-
return "2.8.0-rc.
|
|
14457
|
+
return "2.8.0-rc.2";
|
|
14458
14458
|
}
|
|
14459
14459
|
/** {zh}
|
|
14460
14460
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14729,7 +14729,7 @@ class VePlayerBase {
|
|
|
14729
14729
|
}
|
|
14730
14730
|
}
|
|
14731
14731
|
/** {zh}
|
|
14732
|
-
* @brief
|
|
14732
|
+
* @brief 调用此方法开始播放。
|
|
14733
14733
|
*/
|
|
14734
14734
|
/** {en}
|
|
14735
14735
|
* @brief Starts playback.
|
|
@@ -14975,9 +14975,7 @@ class VePlayerBase {
|
|
|
14975
14975
|
if (!url2) {
|
|
14976
14976
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14977
14977
|
try {
|
|
14978
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14979
|
-
transformedError
|
|
14980
|
-
);
|
|
14978
|
+
const { canEmitError } = await this._beforeFallbackError(transformedError);
|
|
14981
14979
|
if (!canEmitError) {
|
|
14982
14980
|
return;
|
|
14983
14981
|
}
|
|
@@ -21941,10 +21939,10 @@ let Logger$1 = class Logger extends Plugin {
|
|
|
21941
21939
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
21942
21940
|
error_report_stop: true,
|
|
21943
21941
|
ext: {
|
|
21944
|
-
veplayer_version: "2.8.0-rc.
|
|
21942
|
+
veplayer_version: "2.8.0-rc.2",
|
|
21945
21943
|
flv_version: "3.0.21-rc.21",
|
|
21946
21944
|
hls_version: "3.0.21-rc.21",
|
|
21947
|
-
rts_version: "0.2.1-alpha.
|
|
21945
|
+
rts_version: "0.2.1-alpha.30"
|
|
21948
21946
|
}
|
|
21949
21947
|
});
|
|
21950
21948
|
}
|
|
@@ -36932,7 +36930,7 @@ class VeStrategyManager {
|
|
|
36932
36930
|
}
|
|
36933
36931
|
const { appId, deviceId, Module } = this.config;
|
|
36934
36932
|
if (appId && deviceId && Module) {
|
|
36935
|
-
|
|
36933
|
+
Module.bootstrap({
|
|
36936
36934
|
...this.config,
|
|
36937
36935
|
tracker: {
|
|
36938
36936
|
Collector: this.Collector,
|
|
@@ -41479,6 +41477,12 @@ class VePlayerLive extends VePlayerBase {
|
|
|
41479
41477
|
*/
|
|
41480
41478
|
constructor(options) {
|
|
41481
41479
|
super(options);
|
|
41480
|
+
/** {en}
|
|
41481
|
+
* @hidden
|
|
41482
|
+
*/
|
|
41483
|
+
/** {zh}
|
|
41484
|
+
* @hidden
|
|
41485
|
+
*/
|
|
41482
41486
|
__publicField(this, "_protocolManager");
|
|
41483
41487
|
}
|
|
41484
41488
|
/** {zh}
|
|
@@ -41589,10 +41593,11 @@ class VePlayerLive extends VePlayerBase {
|
|
|
41589
41593
|
}
|
|
41590
41594
|
/** {zh}
|
|
41591
41595
|
* @brief 调用此方法更新 DRM 配置。
|
|
41596
|
+
* @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
|
|
41592
41597
|
*/
|
|
41593
41598
|
/** {en}
|
|
41594
41599
|
* @brief Use this method to update DRM configuration.
|
|
41595
|
-
* @param config
|
|
41600
|
+
* @param config A configuration object containing settings for Fairplay DRM.
|
|
41596
41601
|
*/
|
|
41597
41602
|
updateDrmConfig(config2) {
|
|
41598
41603
|
var _a, _b, _c;
|
|
@@ -41670,10 +41675,29 @@ class VePlayerLive extends VePlayerBase {
|
|
|
41670
41675
|
var _a, _b, _c;
|
|
41671
41676
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
41672
41677
|
}
|
|
41678
|
+
/** {en}
|
|
41679
|
+
* @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
|
|
41680
|
+
* @param playlist The playlist, consisting of multiple `Source` type elements.
|
|
41681
|
+
* @param target An optional target configuration, which can specify the resolution or source. Providing this information helps update the playback source for a specific resolution or stream.
|
|
41682
|
+
* @param needUpdateProtocol Whether the protocol needs to be updated.
|
|
41683
|
+
*
|
|
41684
|
+
* - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
|
|
41685
|
+
* - `false`: Does not update the protocol and continues to use the current configuration.
|
|
41686
|
+
*/
|
|
41687
|
+
/** {zh}
|
|
41688
|
+
* @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
|
|
41689
|
+
* @param playlist 播放列表,包含多个 `Source` 类型的元素。
|
|
41690
|
+
* @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
|
|
41691
|
+
* @param needUpdateProtocol 是否需要更新协议。
|
|
41692
|
+
* - `true`:强制更新协议,以确保播放配置或源的兼容性。
|
|
41693
|
+
* - `false`:不更新协议,继续使用当前配置。
|
|
41694
|
+
*/
|
|
41673
41695
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
41674
41696
|
var _a;
|
|
41675
41697
|
if (needUpdateProtocol) {
|
|
41676
|
-
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
41698
|
+
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
41699
|
+
playlist
|
|
41700
|
+
}));
|
|
41677
41701
|
}
|
|
41678
41702
|
return super.updatePlaylist(playlist, target);
|
|
41679
41703
|
}
|
|
@@ -41713,7 +41737,9 @@ async function createLivePlayer(options) {
|
|
|
41713
41737
|
teaTracker,
|
|
41714
41738
|
preProcessUrl: (url2) => {
|
|
41715
41739
|
if (isType(".ts", url2)) {
|
|
41716
|
-
return {
|
|
41740
|
+
return {
|
|
41741
|
+
url: url2
|
|
41742
|
+
};
|
|
41717
41743
|
}
|
|
41718
41744
|
return {
|
|
41719
41745
|
url: generateUrlWithSessionId(url2)
|
|
@@ -41721,7 +41747,9 @@ async function createLivePlayer(options) {
|
|
|
41721
41747
|
},
|
|
41722
41748
|
async preparePlugins(url2) {
|
|
41723
41749
|
if (!protocolManager.enableSelector) {
|
|
41724
|
-
await protocolManager.update({
|
|
41750
|
+
await protocolManager.update({
|
|
41751
|
+
url: url2
|
|
41752
|
+
});
|
|
41725
41753
|
}
|
|
41726
41754
|
return protocolManager.getStrategy(
|
|
41727
41755
|
player,
|