@volcengine/veplayer 2.5.0 → 2.6.0-rc.0

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.
@@ -1457,7 +1457,7 @@ var sniffer$1 = {
1457
1457
  }
1458
1458
  }
1459
1459
  };
1460
- var version = "3.0.21-rc.2";
1460
+ var version = "3.0.21-rc.3";
1461
1461
  var ERROR_TYPE_MAP = {
1462
1462
  1: "media",
1463
1463
  2: "media",
@@ -12913,15 +12913,11 @@ async function isSoftDecodeSupported$1() {
12913
12913
  const { XGVideoPlugin } = await load(DynamicModule.PluginXgvideo);
12914
12914
  return XGVideoPlugin == null ? void 0 : XGVideoPlugin.isSupported();
12915
12915
  }
12916
- function isMMSSupported$1() {
12917
- return typeof ManagedMediaSource !== "undefined";
12918
- }
12919
12916
  const util = {
12920
12917
  ...util$1,
12921
12918
  getStreamType,
12922
12919
  isMseSupported: isMseSupported$1,
12923
12920
  isSoftDecodeSupported: isSoftDecodeSupported$1,
12924
- isMMSSupported: isMMSSupported$1,
12925
12921
  appendSearchParams,
12926
12922
  getUrlObject
12927
12923
  };
@@ -13134,6 +13130,7 @@ class Autoplay extends Plugin {
13134
13130
  }
13135
13131
  // 有音量修改,取消静音
13136
13132
  handleVolumechange() {
13133
+ this._state.mode = this.player.muted ? 1 : 0;
13137
13134
  if (!this._state.showUnmuteBt)
13138
13135
  return;
13139
13136
  this._state.showUnmuteBt = false;
@@ -13843,7 +13840,7 @@ class VePlayerBase {
13843
13840
  * @brief Retrieve the player SDK version number.
13844
13841
  */
13845
13842
  get playerVersion() {
13846
- return "2.5.0";
13843
+ return "2.6.0-rc.0";
13847
13844
  }
13848
13845
  /** {zh}
13849
13846
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -18979,8 +18976,6 @@ const getFlvStrategy = async (options) => {
18979
18976
  }
18980
18977
  if (codec === "unknown" ? isMseSupported$1(Codec.H264) : isMseSupported$1(codec)) {
18981
18978
  mseStrategy = createFlvMseStrategy(options);
18982
- } else if (isMMSSupported$1()) {
18983
- mseStrategy = createFlvMssStrategy(options);
18984
18979
  }
18985
18980
  if (!mseStrategy && !softStrategy) {
18986
18981
  return {};
@@ -19033,38 +19028,24 @@ const getHlsStrategy = async (options) => {
19033
19028
  plugins: (mseModule == null ? void 0 : mseModule.HlsPlugin) ? [mseModule.HlsPlugin] : []
19034
19029
  };
19035
19030
  };
19036
- const getDefaultFlvOptions = (options) => {
19031
+ const createFlvMseStrategy = (options) => {
19037
19032
  var _a;
19038
19033
  return {
19039
- retryCount: 0,
19040
- disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0
19034
+ options: {
19035
+ flv: {
19036
+ retryCount: 0,
19037
+ disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0,
19038
+ ...(options == null ? void 0 : options.flv) ?? {}
19039
+ }
19040
+ },
19041
+ module: DynamicModule.PluginFlv
19041
19042
  };
19042
19043
  };
19043
- const createFlvMseStrategy = (options) => ({
19044
- options: {
19045
- flv: {
19046
- ...getDefaultFlvOptions(options),
19047
- ...(options == null ? void 0 : options.flv) ?? {}
19048
- }
19049
- },
19050
- module: DynamicModule.PluginFlv
19051
- });
19052
- const createFlvMssStrategy = (options) => ({
19053
- options: {
19054
- flv: {
19055
- preferMMS: true,
19056
- ...getDefaultFlvOptions(options),
19057
- ...(options == null ? void 0 : options.flv) ?? {}
19058
- }
19059
- },
19060
- module: DynamicModule.PluginFlv
19061
- });
19062
19044
  const createHlsMseStrategy = (options) => ({
19063
19045
  options: {
19064
19046
  hls: {
19065
19047
  retryCount: 0,
19066
19048
  pollRetryCount: 0,
19067
- allowedStreamTrackChange: false,
19068
19049
  ...(options == null ? void 0 : options.hls) ?? {}
19069
19050
  }
19070
19051
  },
@@ -22123,10 +22104,10 @@ class Logger extends Plugin {
22123
22104
  user_id: this._userId,
22124
22105
  device_id: this._deviceId,
22125
22106
  ext: {
22126
- veplayer_version: "2.5.0",
22127
- flv_version: "3.0.21-rc.2",
22128
- hls_version: "3.0.21-rc.2",
22129
- rts_version: "0.2.1-alpha.12"
22107
+ veplayer_version: "2.6.0-rc.0",
22108
+ flv_version: "3.0.21-rc.3",
22109
+ hls_version: "3.0.21-rc.3",
22110
+ rts_version: "0.2.1-alpha.0"
22130
22111
  }
22131
22112
  });
22132
22113
  }
@@ -22719,9 +22700,6 @@ async function createLivePlayer(options) {
22719
22700
  }
22720
22701
  return player;
22721
22702
  }
22722
- function isFLVSupported() {
22723
- return isMseSupported$1() || isMMSSupported$1();
22724
- }
22725
22703
  var live = /* @__PURE__ */ Object.freeze({
22726
22704
  __proto__: null,
22727
22705
  ErrorCode,
@@ -22730,7 +22708,6 @@ var live = /* @__PURE__ */ Object.freeze({
22730
22708
  setModuleSystem("esm");
22731
22709
  const isMseSupported = util.isMseSupported;
22732
22710
  const isSoftDecodeSupported = util.isSoftDecodeSupported;
22733
- const isMMSSupported = util.isMMSSupported;
22734
22711
  export {
22735
22712
  Codec,
22736
22713
  DecodeType,
@@ -22744,8 +22721,6 @@ export {
22744
22721
  sniffer$1 as Sniffer,
22745
22722
  ZH_CN$1 as ZH_CN,
22746
22723
  createLivePlayer,
22747
- isFLVSupported,
22748
- isMMSSupported,
22749
22724
  isMseSupported,
22750
22725
  isRTMSupportCodec,
22751
22726
  isRTMSupported,