@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
|
@@ -14458,7 +14458,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14458
14458
|
* @brief Retrieve the player SDK version number.
|
|
14459
14459
|
*/
|
|
14460
14460
|
get playerVersion() {
|
|
14461
|
-
return "2.8.0-rc.
|
|
14461
|
+
return "2.8.0-rc.2";
|
|
14462
14462
|
}
|
|
14463
14463
|
/** {zh}
|
|
14464
14464
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14733,7 +14733,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14733
14733
|
}
|
|
14734
14734
|
}
|
|
14735
14735
|
/** {zh}
|
|
14736
|
-
* @brief
|
|
14736
|
+
* @brief 调用此方法开始播放。
|
|
14737
14737
|
*/
|
|
14738
14738
|
/** {en}
|
|
14739
14739
|
* @brief Starts playback.
|
|
@@ -14979,9 +14979,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14979
14979
|
if (!url2) {
|
|
14980
14980
|
const transformedError = transform$1(err, this._i18nManager);
|
|
14981
14981
|
try {
|
|
14982
|
-
const { canEmitError } = await this._beforeFallbackError(
|
|
14983
|
-
transformedError
|
|
14984
|
-
);
|
|
14982
|
+
const { canEmitError } = await this._beforeFallbackError(transformedError);
|
|
14985
14983
|
if (!canEmitError) {
|
|
14986
14984
|
return;
|
|
14987
14985
|
}
|
|
@@ -21945,10 +21943,10 @@ var __publicField = (obj, key, value) => {
|
|
|
21945
21943
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
21946
21944
|
error_report_stop: true,
|
|
21947
21945
|
ext: {
|
|
21948
|
-
veplayer_version: "2.8.0-rc.
|
|
21946
|
+
veplayer_version: "2.8.0-rc.2",
|
|
21949
21947
|
flv_version: "3.0.21-rc.21",
|
|
21950
21948
|
hls_version: "3.0.21-rc.21",
|
|
21951
|
-
rts_version: "0.2.1-alpha.
|
|
21949
|
+
rts_version: "0.2.1-alpha.30"
|
|
21952
21950
|
}
|
|
21953
21951
|
});
|
|
21954
21952
|
}
|
|
@@ -36936,7 +36934,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
36936
36934
|
}
|
|
36937
36935
|
const { appId, deviceId, Module } = this.config;
|
|
36938
36936
|
if (appId && deviceId && Module) {
|
|
36939
|
-
|
|
36937
|
+
Module.bootstrap({
|
|
36940
36938
|
...this.config,
|
|
36941
36939
|
tracker: {
|
|
36942
36940
|
Collector: this.Collector,
|
|
@@ -41483,6 +41481,12 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
41483
41481
|
*/
|
|
41484
41482
|
constructor(options) {
|
|
41485
41483
|
super(options);
|
|
41484
|
+
/** {en}
|
|
41485
|
+
* @hidden
|
|
41486
|
+
*/
|
|
41487
|
+
/** {zh}
|
|
41488
|
+
* @hidden
|
|
41489
|
+
*/
|
|
41486
41490
|
__publicField(this, "_protocolManager");
|
|
41487
41491
|
}
|
|
41488
41492
|
/** {zh}
|
|
@@ -41593,10 +41597,11 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
41593
41597
|
}
|
|
41594
41598
|
/** {zh}
|
|
41595
41599
|
* @brief 调用此方法更新 DRM 配置。
|
|
41600
|
+
* @param config DRM 配置对象,包含 Fairplay DRM 的相关设置。
|
|
41596
41601
|
*/
|
|
41597
41602
|
/** {en}
|
|
41598
41603
|
* @brief Use this method to update DRM configuration.
|
|
41599
|
-
* @param config
|
|
41604
|
+
* @param config A configuration object containing settings for Fairplay DRM.
|
|
41600
41605
|
*/
|
|
41601
41606
|
updateDrmConfig(config2) {
|
|
41602
41607
|
var _a, _b, _c;
|
|
@@ -41674,10 +41679,29 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
41674
41679
|
var _a, _b, _c;
|
|
41675
41680
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
41676
41681
|
}
|
|
41682
|
+
/** {en}
|
|
41683
|
+
* @brief This method is used to update the playlist, supporting updates to source, resolution, and related information.
|
|
41684
|
+
* @param playlist The playlist, consisting of multiple `Source` type elements.
|
|
41685
|
+
* @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.
|
|
41686
|
+
* @param needUpdateProtocol Whether the protocol needs to be updated.
|
|
41687
|
+
*
|
|
41688
|
+
* - `true`: Forces the protocol update to ensure compatibility with the playback configuration or source.
|
|
41689
|
+
* - `false`: Does not update the protocol and continues to use the current configuration.
|
|
41690
|
+
*/
|
|
41691
|
+
/** {zh}
|
|
41692
|
+
* @brief 调用此方法更新播放列表,支持更新源、清晰度等相关信息。
|
|
41693
|
+
* @param playlist 播放列表,包含多个 `Source` 类型的元素。
|
|
41694
|
+
* @param target 可选的目标配置项,可以指定清晰度或源。提供这些信息可以帮助更新特定清晰度或线路的播放源。
|
|
41695
|
+
* @param needUpdateProtocol 是否需要更新协议。
|
|
41696
|
+
* - `true`:强制更新协议,以确保播放配置或源的兼容性。
|
|
41697
|
+
* - `false`:不更新协议,继续使用当前配置。
|
|
41698
|
+
*/
|
|
41677
41699
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
41678
41700
|
var _a;
|
|
41679
41701
|
if (needUpdateProtocol) {
|
|
41680
|
-
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
41702
|
+
await ((_a = this._protocolManager) == null ? void 0 : _a.update({
|
|
41703
|
+
playlist
|
|
41704
|
+
}));
|
|
41681
41705
|
}
|
|
41682
41706
|
return super.updatePlaylist(playlist, target);
|
|
41683
41707
|
}
|
|
@@ -41717,7 +41741,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
41717
41741
|
teaTracker,
|
|
41718
41742
|
preProcessUrl: (url2) => {
|
|
41719
41743
|
if (isType(".ts", url2)) {
|
|
41720
|
-
return {
|
|
41744
|
+
return {
|
|
41745
|
+
url: url2
|
|
41746
|
+
};
|
|
41721
41747
|
}
|
|
41722
41748
|
return {
|
|
41723
41749
|
url: generateUrlWithSessionId(url2)
|
|
@@ -41725,7 +41751,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
41725
41751
|
},
|
|
41726
41752
|
async preparePlugins(url2) {
|
|
41727
41753
|
if (!protocolManager.enableSelector) {
|
|
41728
|
-
await protocolManager.update({
|
|
41754
|
+
await protocolManager.update({
|
|
41755
|
+
url: url2
|
|
41756
|
+
});
|
|
41729
41757
|
}
|
|
41730
41758
|
return protocolManager.getStrategy(
|
|
41731
41759
|
player,
|