mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 00:44:14 +00:00
feat: add media session (wip)
This commit is contained in:
parent
4f752bb6d0
commit
56b0e9bf1a
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ export function App() {
|
|||
useEffect(() => {
|
||||
const dest = Howler.ctx.createMediaStreamDestination();
|
||||
|
||||
Howler.masterGain.connect(dest);
|
||||
|
||||
if (audioElement.current) {
|
||||
audioElement.current.srcObject = dest.stream;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue