Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you trying to adjust the volume of the remote audio streams? Can you change value of the `audio` element of the DOM?

I think you could also do it with the WebAudio API. If you throw up a repo would love to try and help :) having a backend makes it so much harder to deploy/maintain stuff.



Yes I want to adjust remote audio streams but I don't see where in the API I can iterate over each user's audio feed.


It's not in the WebRTC API. You can change the volume on the audio tags you create, or you can pipe the audio media stream into a WebAudio graph and modify it there.

I've built a number of WebRTC apps over the years. Recently, I built just such a thing as you described and open sourced it: https://www.calla.chat. I opted to build it on top of Jitsi Meet this time. It's actually advantageous that it's not through the WebRTC API because Jitsi doesn't give access to the raw WebRTC commands. But hijacking the audio elements it creates is completely doable.


Oh man this is like 90% of what I wanted to make! Thanks for making this open-source!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: