@byteplus/veplayer 2.10.4-rc.0 → 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 +15 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +2 -1
- package/esm/veplayer.development.js +18 -4
- package/esm/veplayer.live.d.ts +2 -1
- package/esm/veplayer.live.development.js +18 -4
- 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 +15 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +2 -1
- package/umd/veplayer.development.js +18 -4
- package/umd/veplayer.live.d.ts +2 -1
- package/umd/veplayer.live.development.js +18 -4
- 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
- package/veplayer.d.ts +2 -1
- package/veplayer.live.d.ts +2 -1
package/umd/veplayer.d.ts
CHANGED
|
@@ -7519,6 +7519,7 @@ declare function isRTMSupported(): Promise<boolean>;
|
|
|
7519
7519
|
* @returns
|
|
7520
7520
|
*/
|
|
7521
7521
|
declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
|
|
7522
|
+
declare function isRTMSeiSupported(): Promise<boolean>;
|
|
7522
7523
|
/** {zh}
|
|
7523
7524
|
* @detail api
|
|
7524
7525
|
* @brief 检查当前浏览器是否支持 FLV 格式流的编码信息。
|
|
@@ -13939,4 +13940,4 @@ declare namespace live {
|
|
|
13939
13940
|
const ERRORS: Partial<Record<ValueOf<typeof ErrorCode$0>, error.ErrorInfo<TextKey$0>>>;
|
|
13940
13941
|
function create$0(errorCode: ValueOf<typeof ErrorCode$0>, i18n?: VeI18n<TextKey$0>): error.VeError<"DEFINITION_FALLBACK_TOAST" | "DEFINITION_SWITCHING" | "ERROR_REFRESH" | "UNMUTE" | "MANIFEST" | "NETWORK" | "NETWORK_TIMEOUT" | "NETWORK_FORBIDDEN" | "NETWORK_NOTFOUND" | "DEMUX" | "REMUX" | "MEDIA" | "MEDIA_ERR_CODEC_NOT_SUPPORTED" | "MEDIA_ERR_URL_EMPTY" | "DRM" | "DRM_LICENSE" | "DRM_UNSUPPORTED" | "DRM_NO_MEDIA_KEY" | "DRM_NO_KEY_SESSION" | "DRM_GENERATE_QUEST_FAIL" | "DRM_LACK_SERVER_CERTIFICATE_PATH" | "DRM_LACK_SERVER_PROCESS_SPC_PATH" | "DRM_LICENSE_FAIL" | "DRM_KEY_ERROR" | "DRM_CERT_FAIL" | "OTHER" | "RUNTIME" | "MODULE_LOAD_ERROR" | "UNKNOWN" | "ERROR_TYPES" | "HAVE_NOTHING" | "HAVE_METADATA" | "HAVE_CURRENT_DATA" | "HAVE_FUTURE_DATA" | "HAVE_ENOUGH_DATA" | "NETWORK_EMPTY" | "NETWORK_IDLE" | "NETWORK_LOADING" | "NETWORK_NO_SOURCE" | "MEDIA_ERR_ABORTED" | "MEDIA_ERR_NETWORK" | "MEDIA_ERR_DECODE" | "MEDIA_ERR_SRC_NOT_SUPPORTED" | "REPLAY" | "ERROR" | "PLAY_TIPS" | "PAUSE_TIPS" | "PLAYNEXT_TIPS" | "DOWNLOAD_TIPS" | "ROTATE_TIPS" | "RELOAD_TIPS" | "FULLSCREEN_TIPS" | "EXITFULLSCREEN_TIPS" | "CSSFULLSCREEN_TIPS" | "EXITCSSFULLSCREEN_TIPS" | "TEXTTRACK" | "PIP" | "SCREENSHOT" | "LIVE" | "OFF" | "OPEN" | "MINI_DRAG" | "MINISCREEN" | "REFRESH_TIPS" | "REFRESH" | "FORWARD" | "LIVE_TIP" | "GOP" | "INVALID_PARAMETER" | "EMPTY_RTM_FALLBACK_PARAMETER" | "INVALID_LOGGER" | "FORMAT" | "FPS" | "BITRATE" | "RESOLUTION" | "ENCODE_TYPE" | "BUFFER_END" | "CURRENT_TIME" | "DECODE_EFFICIENCY" | "DECODE_COST" | "DECODE_INFO">;
|
|
13941
13942
|
}
|
|
13942
|
-
export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
|
|
13943
|
+
export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isRTMSeiSupported, isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
|
|
@@ -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,10 +55419,10 @@ 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
|
-
rts_version: "0.2.1-alpha.
|
|
55425
|
+
rts_version: "0.2.1-alpha.62"
|
|
55426
55426
|
}
|
|
55427
55427
|
});
|
|
55428
55428
|
}
|
|
@@ -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) {
|
|
@@ -56272,6 +56281,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56272
56281
|
return RtmPlugin.isSupportedH264();
|
|
56273
56282
|
return false;
|
|
56274
56283
|
}
|
|
56284
|
+
async function isRTMSeiSupported() {
|
|
56285
|
+
const { RtmPlugin } = await load(DynamicModule.PluginRtm);
|
|
56286
|
+
return RtmPlugin.isEncodedTransformSupported();
|
|
56287
|
+
}
|
|
56275
56288
|
const rtmStrategy = {
|
|
56276
56289
|
options: {},
|
|
56277
56290
|
module: DynamicModule.PluginRtm
|
|
@@ -72882,7 +72895,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72882
72895
|
}
|
|
72883
72896
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72884
72897
|
...options,
|
|
72885
|
-
playerVersion: "2.10.4-rc.
|
|
72898
|
+
playerVersion: "2.10.4-rc.2",
|
|
72886
72899
|
type: "LIVE"
|
|
72887
72900
|
}));
|
|
72888
72901
|
return liveVeStrategy.veStrategyManager;
|
|
@@ -72913,6 +72926,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72913
72926
|
exports2.isFLVSupported = isFLVSupported;
|
|
72914
72927
|
exports2.isMMSSupported = isMMSSupported$1;
|
|
72915
72928
|
exports2.isMseSupported = isMseSupported$2;
|
|
72929
|
+
exports2.isRTMSeiSupported = isRTMSeiSupported;
|
|
72916
72930
|
exports2.isRTMSupportCodec = isRTMSupportCodec;
|
|
72917
72931
|
exports2.isRTMSupported = isRTMSupported;
|
|
72918
72932
|
exports2.isSoftDecodeSupported = isSoftDecodeSupported;
|
package/umd/veplayer.live.d.ts
CHANGED
|
@@ -7519,6 +7519,7 @@ declare function isRTMSupported(): Promise<boolean>;
|
|
|
7519
7519
|
* @returns
|
|
7520
7520
|
*/
|
|
7521
7521
|
declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
|
|
7522
|
+
declare function isRTMSeiSupported(): Promise<boolean>;
|
|
7522
7523
|
/** {zh}
|
|
7523
7524
|
* @detail api
|
|
7524
7525
|
* @brief 检查当前浏览器是否支持 FLV 格式流的编码信息。
|
|
@@ -13947,4 +13948,4 @@ declare const enum DrmType {
|
|
|
13947
13948
|
declare const isMseSupported$0: typeof isMseSupported;
|
|
13948
13949
|
declare const isSoftDecodeSupported$0: typeof isSoftDecodeSupported;
|
|
13949
13950
|
declare const isMMSSupported$0: typeof isMMSSupported;
|
|
13950
|
-
export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, DrmType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported$0 as isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
|
|
13951
|
+
export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, DrmType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isRTMSeiSupported, isMMSSupported$0 as isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
|
|
@@ -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,10 +55419,10 @@ 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
|
-
rts_version: "0.2.1-alpha.
|
|
55425
|
+
rts_version: "0.2.1-alpha.62"
|
|
55426
55426
|
}
|
|
55427
55427
|
});
|
|
55428
55428
|
}
|
|
@@ -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) {
|
|
@@ -56272,6 +56281,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56272
56281
|
return RtmPlugin.isSupportedH264();
|
|
56273
56282
|
return false;
|
|
56274
56283
|
}
|
|
56284
|
+
async function isRTMSeiSupported() {
|
|
56285
|
+
const { RtmPlugin } = await load(DynamicModule.PluginRtm);
|
|
56286
|
+
return RtmPlugin.isEncodedTransformSupported();
|
|
56287
|
+
}
|
|
56275
56288
|
const rtmStrategy = {
|
|
56276
56289
|
options: {},
|
|
56277
56290
|
module: DynamicModule.PluginRtm
|
|
@@ -72888,7 +72901,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72888
72901
|
}
|
|
72889
72902
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
72890
72903
|
...options,
|
|
72891
|
-
playerVersion: "2.10.4-rc.
|
|
72904
|
+
playerVersion: "2.10.4-rc.2",
|
|
72892
72905
|
type: "LIVE"
|
|
72893
72906
|
}));
|
|
72894
72907
|
return liveVeStrategy.veStrategyManager;
|
|
@@ -72921,6 +72934,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
72921
72934
|
exports2.isFLVSupported = isFLVSupported;
|
|
72922
72935
|
exports2.isMMSSupported = isMMSSupported;
|
|
72923
72936
|
exports2.isMseSupported = isMseSupported;
|
|
72937
|
+
exports2.isRTMSeiSupported = isRTMSeiSupported;
|
|
72924
72938
|
exports2.isRTMSupportCodec = isRTMSupportCodec;
|
|
72925
72939
|
exports2.isRTMSupported = isRTMSupported;
|
|
72926
72940
|
exports2.isSoftDecodeSupported = isSoftDecodeSupported;
|