mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
feat: add media session (wip)
This commit is contained in:
parent
4f752bb6d0
commit
56b0e9bf1a
@ -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…
x
Reference in New Issue
Block a user