@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
|
@@ -14576,7 +14576,7 @@ class VePlayerBase {
|
|
|
14576
14576
|
* @brief Retrieve the player SDK version number.
|
|
14577
14577
|
*/
|
|
14578
14578
|
get playerVersion() {
|
|
14579
|
-
return "2.10.4-rc.
|
|
14579
|
+
return "2.10.4-rc.2";
|
|
14580
14580
|
}
|
|
14581
14581
|
/** {zh}
|
|
14582
14582
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55415,7 +55415,7 @@ let Logger$1 = class Logger2 extends Plugin {
|
|
|
55415
55415
|
device_id: deviceId,
|
|
55416
55416
|
error_report_stop: true,
|
|
55417
55417
|
ext: {
|
|
55418
|
-
veplayer_version: "2.10.4-rc.
|
|
55418
|
+
veplayer_version: "2.10.4-rc.2",
|
|
55419
55419
|
flv_version: "3.0.23-rc.7",
|
|
55420
55420
|
hls_version: "3.0.21-rc.21",
|
|
55421
55421
|
rts_version: "0.2.1-alpha.62"
|
|
@@ -55999,11 +55999,20 @@ function preferNativeForFairplay(options) {
|
|
|
55999
55999
|
var _a;
|
|
56000
56000
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
|
|
56001
56001
|
}
|
|
56002
|
+
function isBaiduOnOpenHarmony() {
|
|
56003
|
+
const ua2 = navigator.userAgent;
|
|
56004
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua2);
|
|
56005
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
|
|
56006
|
+
return isOpenHarmony && isBaidu;
|
|
56007
|
+
}
|
|
56002
56008
|
function enableMse(options) {
|
|
56003
56009
|
var _a;
|
|
56004
56010
|
if (preferNativeForFairplay(options)) {
|
|
56005
56011
|
return false;
|
|
56006
56012
|
}
|
|
56013
|
+
if (isBaiduOnOpenHarmony()) {
|
|
56014
|
+
return false;
|
|
56015
|
+
}
|
|
56007
56016
|
return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
56008
56017
|
}
|
|
56009
56018
|
function enableHlsJs(options) {
|
|
@@ -72882,7 +72891,7 @@ async function prepare(options) {
|
|
|
72882
72891
|
}
|
|
72883
72892
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72884
72893
|
...options,
|
|
72885
|
-
playerVersion: "2.10.4-rc.
|
|
72894
|
+
playerVersion: "2.10.4-rc.2",
|
|
72886
72895
|
type: "LIVE"
|
|
72887
72896
|
}));
|
|
72888
72897
|
return liveVeStrategy.veStrategyManager;
|
|
@@ -14576,7 +14576,7 @@ class VePlayerBase {
|
|
|
14576
14576
|
* @brief Retrieve the player SDK version number.
|
|
14577
14577
|
*/
|
|
14578
14578
|
get playerVersion() {
|
|
14579
|
-
return "2.10.4-rc.
|
|
14579
|
+
return "2.10.4-rc.2";
|
|
14580
14580
|
}
|
|
14581
14581
|
/** {zh}
|
|
14582
14582
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55415,7 +55415,7 @@ let Logger$1 = class Logger2 extends Plugin {
|
|
|
55415
55415
|
device_id: deviceId,
|
|
55416
55416
|
error_report_stop: true,
|
|
55417
55417
|
ext: {
|
|
55418
|
-
veplayer_version: "2.10.4-rc.
|
|
55418
|
+
veplayer_version: "2.10.4-rc.2",
|
|
55419
55419
|
flv_version: "3.0.23-rc.7",
|
|
55420
55420
|
hls_version: "3.0.21-rc.21",
|
|
55421
55421
|
rts_version: "0.2.1-alpha.62"
|
|
@@ -56005,11 +56005,20 @@ function preferNativeForFairplay(options) {
|
|
|
56005
56005
|
var _a;
|
|
56006
56006
|
return ((_a = options == null ? void 0 : options.drm) == null ? void 0 : _a.fairplay) && (sniffer$1.browser === "safari" || sniffer$1.os.isIos);
|
|
56007
56007
|
}
|
|
56008
|
+
function isBaiduOnOpenHarmony() {
|
|
56009
|
+
const ua2 = navigator.userAgent;
|
|
56010
|
+
const isOpenHarmony = /OpenHarmony/i.test(ua2);
|
|
56011
|
+
const isBaidu = /baiduboxapp|baiduboxlite/i.test(ua2);
|
|
56012
|
+
return isOpenHarmony && isBaidu;
|
|
56013
|
+
}
|
|
56008
56014
|
function enableMse(options) {
|
|
56009
56015
|
var _a;
|
|
56010
56016
|
if (preferNativeForFairplay(options)) {
|
|
56011
56017
|
return false;
|
|
56012
56018
|
}
|
|
56019
|
+
if (isBaiduOnOpenHarmony()) {
|
|
56020
|
+
return false;
|
|
56021
|
+
}
|
|
56013
56022
|
return sniffer$1.device !== "mobile" || (((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE) ?? true);
|
|
56014
56023
|
}
|
|
56015
56024
|
function enableHlsJs(options) {
|
|
@@ -72888,7 +72897,7 @@ async function prepare(options) {
|
|
|
72888
72897
|
}
|
|
72889
72898
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72890
72899
|
...options,
|
|
72891
|
-
playerVersion: "2.10.4-rc.
|
|
72900
|
+
playerVersion: "2.10.4-rc.2",
|
|
72892
72901
|
type: "LIVE"
|
|
72893
72902
|
}));
|
|
72894
72903
|
return liveVeStrategy.veStrategyManager;
|