UNPKG

1.16 kBJavaScriptView Raw
1import { temporarilyNotSupport } from '../../../utils/index.js';
2import { BackgroundAudioManager } from './BackgroundAudioManager.js';
3
4// 背景音频
5const stopBackgroundAudio = temporarilyNotSupport('stopBackgroundAudio');
6const seekBackgroundAudio = temporarilyNotSupport('seekBackgroundAudio');
7const playBackgroundAudio = temporarilyNotSupport('playBackgroundAudio');
8const pauseBackgroundAudio = temporarilyNotSupport('pauseBackgroundAudio');
9const onBackgroundAudioStop = temporarilyNotSupport('onBackgroundAudioStop');
10const onBackgroundAudioPlay = temporarilyNotSupport('onBackgroundAudioPlay');
11const onBackgroundAudioPause = temporarilyNotSupport('onBackgroundAudioPause');
12const getBackgroundAudioPlayerState = temporarilyNotSupport('getBackgroundAudioPlayerState');
13/**
14 * 获取全局唯一的背景音频管理器
15 */
16const getBackgroundAudioManager = () => new BackgroundAudioManager();
17
18export { getBackgroundAudioManager, getBackgroundAudioPlayerState, onBackgroundAudioPause, onBackgroundAudioPlay, onBackgroundAudioStop, pauseBackgroundAudio, playBackgroundAudio, seekBackgroundAudio, stopBackgroundAudio };
19//# sourceMappingURL=index.js.map