@dcloudio/uni-app-plus 2.0.1-alpha-34020211231002 → 2.0.1-alpha-33720220111002

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/dist/index.v3.js CHANGED
@@ -4366,7 +4366,7 @@ var serviceContext = (function () {
4366
4366
  return array.length > 1 ? '.' + array[array.length - 1] : ''
4367
4367
  }
4368
4368
 
4369
- const AUDIO_DEFAULT_CATEGORY = 'ambient';
4369
+ const AUDIO_DEFAULT_SESSION_CATEGORY = 'ambient';
4370
4370
 
4371
4371
  const audios = {};
4372
4372
 
@@ -4414,7 +4414,7 @@ var serviceContext = (function () {
4414
4414
  audio.src = '';
4415
4415
  audio.volume = 1;
4416
4416
  audio.startTime = 0;
4417
- audio.setSessionCategory(AUDIO_DEFAULT_CATEGORY);
4417
+ audio.setSessionCategory(AUDIO_DEFAULT_SESSION_CATEGORY);
4418
4418
  return {
4419
4419
  errMsg: 'createAudioInstance:ok',
4420
4420
  audioId
@@ -4442,7 +4442,7 @@ var serviceContext = (function () {
4442
4442
  loop = false,
4443
4443
  obeyMuteSwitch,
4444
4444
  volume,
4445
- category = AUDIO_DEFAULT_CATEGORY
4445
+ sessionCategory = AUDIO_DEFAULT_SESSION_CATEGORY
4446
4446
  }) {
4447
4447
  const audio = audios[audioId];
4448
4448
  if (audio) {
@@ -4460,8 +4460,8 @@ var serviceContext = (function () {
4460
4460
  audio.volume = style.volume = volume;
4461
4461
  }
4462
4462
  audio.setStyles(style);
4463
- if (category) {
4464
- audio.setSessionCategory(category);
4463
+ if (sessionCategory) {
4464
+ audio.setSessionCategory(sessionCategory);
4465
4465
  }
4466
4466
  initStateChage(audioId);
4467
4467
  }
@@ -8145,7 +8145,7 @@ var serviceContext = (function () {
8145
8145
  }
8146
8146
 
8147
8147
  login (options) {
8148
- this._warp((data, callbackId) => login(data, callbackId, false), this._getOptions(options));
8148
+ this._warp((data, callbackId) => login(data, callbackId, false), options);
8149
8149
  }
8150
8150
 
8151
8151
  getCheckBoxState (options) {
@@ -8153,7 +8153,7 @@ var serviceContext = (function () {
8153
8153
  }
8154
8154
 
8155
8155
  preLogin (options) {
8156
- this._warp((data, callbackId) => preLogin$1(data, callbackId, false), this._getOptions(options));
8156
+ this._warp((data, callbackId) => preLogin$1(data, callbackId, false), options);
8157
8157
  }
8158
8158
 
8159
8159
  onButtonsClick (callback) {
@@ -20154,6 +20154,9 @@ var serviceContext = (function () {
20154
20154
  },
20155
20155
  {
20156
20156
  name: 'volume'
20157
+ },
20158
+ {
20159
+ name: 'sessionCategory'
20157
20160
  }
20158
20161
  ];
20159
20162