@tarojs/taro-h5 4.1.8-beta.1 → 4.1.8-beta.3
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/api/media/background-audio/index.js +6 -1
- package/dist/api/media/background-audio/index.js.map +1 -1
- package/dist/index.cjs.js +6 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts.map +1 -1
- package/dist/index.esm.js +6 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
|
@@ -10,10 +10,15 @@ const onBackgroundAudioStop = /* @__PURE__ */ temporarilyNotSupport('onBackgroun
|
|
|
10
10
|
const onBackgroundAudioPlay = /* @__PURE__ */ temporarilyNotSupport('onBackgroundAudioPlay');
|
|
11
11
|
const onBackgroundAudioPause = /* @__PURE__ */ temporarilyNotSupport('onBackgroundAudioPause');
|
|
12
12
|
const getBackgroundAudioPlayerState = /* @__PURE__ */ temporarilyNotSupport('getBackgroundAudioPlayerState');
|
|
13
|
+
let _instance = null;
|
|
13
14
|
/**
|
|
14
15
|
* 获取全局唯一的背景音频管理器
|
|
15
16
|
*/
|
|
16
|
-
const getBackgroundAudioManager = () =>
|
|
17
|
+
const getBackgroundAudioManager = () => {
|
|
18
|
+
if (!_instance)
|
|
19
|
+
_instance = new BackgroundAudioManager();
|
|
20
|
+
return _instance;
|
|
21
|
+
};
|
|
17
22
|
|
|
18
23
|
export { getBackgroundAudioManager, getBackgroundAudioPlayerState, onBackgroundAudioPause, onBackgroundAudioPlay, onBackgroundAudioStop, pauseBackgroundAudio, playBackgroundAudio, seekBackgroundAudio, stopBackgroundAudio };
|
|
19
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/api/media/background-audio/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;AACa,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,6BAA6B,mBAAmB,qBAAqB,CAAC,+BAA+B,EAAC;AAEnH;;AAEG;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/api/media/background-audio/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;AACa,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,6BAA6B,mBAAmB,qBAAqB,CAAC,+BAA+B,EAAC;AAEnH,IAAI,SAAS,GAAkC,IAAI,CAAA;AAEnD;;AAEG;AACI,MAAM,yBAAyB,GAAG,MAAK;AAC5C,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,SAAS,GAAG,IAAI,sBAAsB,EAAE,CAAA;AACxD,IAAA,OAAO,SAAS,CAAA;AAClB;;;;"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -3334,10 +3334,15 @@ const onBackgroundAudioStop = /* @__PURE__ */ temporarilyNotSupport('onBackgroun
|
|
|
3334
3334
|
const onBackgroundAudioPlay = /* @__PURE__ */ temporarilyNotSupport('onBackgroundAudioPlay');
|
|
3335
3335
|
const onBackgroundAudioPause = /* @__PURE__ */ temporarilyNotSupport('onBackgroundAudioPause');
|
|
3336
3336
|
const getBackgroundAudioPlayerState = /* @__PURE__ */ temporarilyNotSupport('getBackgroundAudioPlayerState');
|
|
3337
|
+
let _instance = null;
|
|
3337
3338
|
/**
|
|
3338
3339
|
* 获取全局唯一的背景音频管理器
|
|
3339
3340
|
*/
|
|
3340
|
-
const getBackgroundAudioManager = () =>
|
|
3341
|
+
const getBackgroundAudioManager = () => {
|
|
3342
|
+
if (!_instance)
|
|
3343
|
+
_instance = new BackgroundAudioManager();
|
|
3344
|
+
return _instance;
|
|
3345
|
+
};
|
|
3341
3346
|
|
|
3342
3347
|
// 相机
|
|
3343
3348
|
const createCameraContext = /* @__PURE__ */ temporarilyNotSupport('createCameraContext');
|