@byteplus/veplayer 2.10.4-rc.1 → 2.10.4-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/veplayer.biz.live.development.js +9 -0
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +12 -3
- package/esm/veplayer.live.development.js +12 -3
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +1 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +9 -0
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +12 -3
- package/umd/veplayer.live.development.js +12 -3
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +1 -1
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -14580,7 +14580,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14580
14580
|
* @brief Retrieve the player SDK version number.
|
|
14581
14581
|
*/
|
|
14582
14582
|
get playerVersion() {
|
|
14583
|
-
return "2.10.4-rc.
|
|
14583
|
+
return "2.10.4-rc.2";
|
|
14584
14584
|
}
|
|
14585
14585
|
/** {zh}
|
|
14586
14586
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55419,7 +55419,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55419
55419
|
device_id: deviceId,
|
|
55420
55420
|
error_report_stop: true,
|
|
55421
55421
|
ext: {
|
|
55422
|
-
veplayer_version: "2.10.4-rc.
|
|
55422
|
+
veplayer_version: "2.10.4-rc.2",
|
|
55423
55423
|
flv_version: "3.0.23-rc.7",
|
|
55424
55424
|
hls_version: "3.0.21-rc.21",
|
|
55425
55425
|
rts_version: "0.2.1-alpha.62"
|
|
@@ -56003,11 +56003,20 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56003
56003
|
var _a;
|
|
56004
56004
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
|
|
56005
56005
|
}
|
|
56006
|
+
function isBaiduOnOpenHarmony() {
|
|
56007
|
+
const ua2 = navigator.userAgent;
|
|
56008
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua2);
|
|
56009
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
|
|
56010
|
+
return isOpenHarmony && isBaidu;
|
|
56011
|
+
}
|
|
56006
56012
|
function enableMse(options) {
|
|
56007
56013
|
var _a;
|
|
56008
56014
|
if (preferNativeForFairplay(options)) {
|
|
56009
56015
|
return false;
|
|
56010
56016
|
}
|
|
56017
|
+
if (isBaiduOnOpenHarmony()) {
|
|
56018
|
+
return false;
|
|
56019
|
+
}
|
|
56011
56020
|
return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
56012
56021
|
}
|
|
56013
56022
|
function enableHlsJs(options) {
|
|
@@ -72886,7 +72895,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72886
72895
|
}
|
|
72887
72896
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72888
72897
|
...options,
|
|
72889
|
-
playerVersion: "2.10.4-rc.
|
|
72898
|
+
playerVersion: "2.10.4-rc.2",
|
|
72890
72899
|
type: "LIVE"
|
|
72891
72900
|
}));
|
|
72892
72901
|
return liveVeStrategy.veStrategyManager;
|
|
@@ -14580,7 +14580,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14580
14580
|
* @brief Retrieve the player SDK version number.
|
|
14581
14581
|
*/
|
|
14582
14582
|
get playerVersion() {
|
|
14583
|
-
return "2.10.4-rc.
|
|
14583
|
+
return "2.10.4-rc.2";
|
|
14584
14584
|
}
|
|
14585
14585
|
/** {zh}
|
|
14586
14586
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55419,7 +55419,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55419
55419
|
device_id: deviceId,
|
|
55420
55420
|
error_report_stop: true,
|
|
55421
55421
|
ext: {
|
|
55422
|
-
veplayer_version: "2.10.4-rc.
|
|
55422
|
+
veplayer_version: "2.10.4-rc.2",
|
|
55423
55423
|
flv_version: "3.0.23-rc.7",
|
|
55424
55424
|
hls_version: "3.0.21-rc.21",
|
|
55425
55425
|
rts_version: "0.2.1-alpha.62"
|
|
@@ -56003,11 +56003,20 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56003
56003
|
var _a;
|
|
56004
56004
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
|
|
56005
56005
|
}
|
|
56006
|
+
function isBaiduOnOpenHarmony() {
|
|
56007
|
+
const ua2 = navigator.userAgent;
|
|
56008
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua2);
|
|
56009
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
|
|
56010
|
+
return isOpenHarmony && isBaidu;
|
|
56011
|
+
}
|
|
56006
56012
|
function enableMse(options) {
|
|
56007
56013
|
var _a;
|
|
56008
56014
|
if (preferNativeForFairplay(options)) {
|
|
56009
56015
|
return false;
|
|
56010
56016
|
}
|
|
56017
|
+
if (isBaiduOnOpenHarmony()) {
|
|
56018
|
+
return false;
|
|
56019
|
+
}
|
|
56011
56020
|
return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
56012
56021
|
}
|
|
56013
56022
|
function enableHlsJs(options) {
|
|
@@ -72892,7 +72901,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72892
72901
|
}
|
|
72893
72902
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72894
72903
|
...options,
|
|
72895
|
-
playerVersion: "2.10.4-rc.
|
|
72904
|
+
playerVersion: "2.10.4-rc.2",
|
|
72896
72905
|
type: "LIVE"
|
|
72897
72906
|
}));
|
|
72898
72907
|
return liveVeStrategy.veStrategyManager;
|