mirror of
https://github.com/remvze/moodist.git
synced 2026-01-09 06:12:56 +08:00
feat: add audio session type
This commit is contained in:
parent
7e8f23f5fa
commit
3a96d38a77
@ -47,6 +47,10 @@ export function useSound(
|
|||||||
preload: options.preload ?? false,
|
preload: options.preload ?? false,
|
||||||
src: src,
|
src: src,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (window.navigator.audioSession) {
|
||||||
|
window.navigator.audioSession.type = 'playback';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sound;
|
return sound;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user