mirror of
https://github.com/remvze/moodist.git
synced 2025-12-16 16:34:14 +00:00
feat: add audio session type
This commit is contained in:
parent
7e8f23f5fa
commit
3a96d38a77
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ export function useSound(
|
|||
preload: options.preload ?? false,
|
||||
src: src,
|
||||
});
|
||||
|
||||
if (window.navigator.audioSession) {
|
||||
window.navigator.audioSession.type = 'playback';
|
||||
}
|
||||
}
|
||||
|
||||
return sound;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue