mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 01:14:17 +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(() => {
|
useEffect(() => {
|
||||||
const dest = Howler.ctx.createMediaStreamDestination();
|
const dest = Howler.ctx.createMediaStreamDestination();
|
||||||
|
|
||||||
|
Howler.masterGain.connect(dest);
|
||||||
|
|
||||||
if (audioElement.current) {
|
if (audioElement.current) {
|
||||||
audioElement.current.srcObject = dest.stream;
|
audioElement.current.srcObject = dest.stream;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue