@byteplus/veplayer 2.3.1-rc.0 → 2.3.1-rc.1

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.
@@ -13432,10 +13432,6 @@ class VePlayerBase {
13432
13432
  plugins.forEach((plugin) => {
13433
13433
  TopRightBar.isTopRightPlugin(plugin, options) ? topRightPlugins.push(plugin) : normalPlugins.push(plugin);
13434
13434
  });
13435
- window._veplayer_test_log["startxgplayer"] = {
13436
- msg: "start to new XGPlayer",
13437
- timestamp: performance.now()
13438
- };
13439
13435
  this._player = new Player({
13440
13436
  ...DEFAULT_OPTIONS,
13441
13437
  ...xgOptions,
@@ -18729,25 +18725,10 @@ const getFlvStrategy = async (options) => {
18729
18725
  if (!mseStrategy && !softStrategy) {
18730
18726
  return {};
18731
18727
  }
18732
- window._veplayer_test_log["beforefetch"] = {
18733
- msg: "start to load cdn",
18734
- timestamp: performance.now()
18735
- };
18736
18728
  const [mseModule, softModule] = await Promise.all([
18737
18729
  (mseStrategy == null ? void 0 : mseStrategy.module) && load(mseStrategy.module).catch(() => void 0),
18738
18730
  (softStrategy == null ? void 0 : softStrategy.module) && load(softStrategy.module).catch(() => void 0)
18739
18731
  ]);
18740
- if (mseModule) {
18741
- window._veplayer_test_log["fetched"] = {
18742
- msg: "cdn loaded",
18743
- timestamp: performance.now()
18744
- };
18745
- } else {
18746
- window._veplayer_test_log["fetched"] = {
18747
- msg: "cdn loaded but empty",
18748
- timestamp: performance.now()
18749
- };
18750
- }
18751
18732
  (softModule == null ? void 0 : softModule.XGVideoPlugin) && ((_c = softStrategy == null ? void 0 : softStrategy.afterLoad) == null ? void 0 : _c.call(softStrategy, softModule == null ? void 0 : softModule.XGVideoPlugin));
18752
18733
  const combineOptions$1 = combineOptions([mseStrategy, softStrategy]);
18753
18734
  const plugins = [];
@@ -21808,7 +21789,7 @@ class Logger extends Plugin {
21808
21789
  user_id: this._userId,
21809
21790
  device_id: this._deviceId,
21810
21791
  ext: {
21811
- veplayer_version: "2.3.1-rc.0",
21792
+ veplayer_version: "2.3.1-rc.1",
21812
21793
  flv_version: "3.0.15-alpha.2",
21813
21794
  hls_version: "3.0.12",
21814
21795
  rts_version: "0.2.0-alpha.5"
@@ -22189,12 +22170,6 @@ class VePlayerLive extends VePlayerBase {
22189
22170
  async function createLivePlayer(options) {
22190
22171
  var _a, _b;
22191
22172
  let player = void 0;
22192
- window._veplayer_test_log = {
22193
- start: {
22194
- msg: "start to create veplayer",
22195
- timestamp: performance.now()
22196
- }
22197
- };
22198
22173
  if (!options || !options.url && !options.playlist) {
22199
22174
  throw create(ErrorCode.INVALID_PARAMETER, new VeI18n());
22200
22175
  }
@@ -13432,10 +13432,6 @@ class VePlayerBase {
13432
13432
  plugins.forEach((plugin) => {
13433
13433
  TopRightBar.isTopRightPlugin(plugin, options) ? topRightPlugins.push(plugin) : normalPlugins.push(plugin);
13434
13434
  });
13435
- window._veplayer_test_log["startxgplayer"] = {
13436
- msg: "start to new XGPlayer",
13437
- timestamp: performance.now()
13438
- };
13439
13435
  this._player = new Player({
13440
13436
  ...DEFAULT_OPTIONS,
13441
13437
  ...xgOptions,
@@ -18729,25 +18725,10 @@ const getFlvStrategy = async (options) => {
18729
18725
  if (!mseStrategy && !softStrategy) {
18730
18726
  return {};
18731
18727
  }
18732
- window._veplayer_test_log["beforefetch"] = {
18733
- msg: "start to load cdn",
18734
- timestamp: performance.now()
18735
- };
18736
18728
  const [mseModule, softModule] = await Promise.all([
18737
18729
  (mseStrategy == null ? void 0 : mseStrategy.module) && load(mseStrategy.module).catch(() => void 0),
18738
18730
  (softStrategy == null ? void 0 : softStrategy.module) && load(softStrategy.module).catch(() => void 0)
18739
18731
  ]);
18740
- if (mseModule) {
18741
- window._veplayer_test_log["fetched"] = {
18742
- msg: "cdn loaded",
18743
- timestamp: performance.now()
18744
- };
18745
- } else {
18746
- window._veplayer_test_log["fetched"] = {
18747
- msg: "cdn loaded but empty",
18748
- timestamp: performance.now()
18749
- };
18750
- }
18751
18732
  (softModule == null ? void 0 : softModule.XGVideoPlugin) && ((_c = softStrategy == null ? void 0 : softStrategy.afterLoad) == null ? void 0 : _c.call(softStrategy, softModule == null ? void 0 : softModule.XGVideoPlugin));
18752
18733
  const combineOptions$1 = combineOptions([mseStrategy, softStrategy]);
18753
18734
  const plugins = [];
@@ -21808,7 +21789,7 @@ class Logger extends Plugin {
21808
21789
  user_id: this._userId,
21809
21790
  device_id: this._deviceId,
21810
21791
  ext: {
21811
- veplayer_version: "2.3.1-rc.0",
21792
+ veplayer_version: "2.3.1-rc.1",
21812
21793
  flv_version: "3.0.15-alpha.2",
21813
21794
  hls_version: "3.0.12",
21814
21795
  rts_version: "0.2.0-alpha.5"
@@ -22189,12 +22170,6 @@ class VePlayerLive extends VePlayerBase {
22189
22170
  async function createLivePlayer(options) {
22190
22171
  var _a, _b;
22191
22172
  let player = void 0;
22192
- window._veplayer_test_log = {
22193
- start: {
22194
- msg: "start to create veplayer",
22195
- timestamp: performance.now()
22196
- }
22197
- };
22198
22173
  if (!options || !options.url && !options.playlist) {
22199
22174
  throw create(ErrorCode.INVALID_PARAMETER, new VeI18n());
22200
22175
  }