UNPKG

873 BTypeScriptView Raw
1import { BackgroundAudioManager } from './BackgroundAudioManager';
2export declare const stopBackgroundAudio: () => Promise<{
3 errMsg: string;
4}>;
5export declare const seekBackgroundAudio: () => Promise<{
6 errMsg: string;
7}>;
8export declare const playBackgroundAudio: () => Promise<{
9 errMsg: string;
10}>;
11export declare const pauseBackgroundAudio: () => Promise<{
12 errMsg: string;
13}>;
14export declare const onBackgroundAudioStop: () => Promise<{
15 errMsg: string;
16}>;
17export declare const onBackgroundAudioPlay: () => Promise<{
18 errMsg: string;
19}>;
20export declare const onBackgroundAudioPause: () => Promise<{
21 errMsg: string;
22}>;
23export declare const getBackgroundAudioPlayerState: () => Promise<{
24 errMsg: string;
25}>;
26/**
27 * 获取全局唯一的背景音频管理器
28 */
29export declare const getBackgroundAudioManager: () => BackgroundAudioManager;