Comments (6)
Hi Benank,
I have a feeling you need to explicitly have WebAudio handle the stream via a createMediaStreamSource() function call and then pipe it's output to our renderer. See https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource for more details.
Please feel free to post some example code as well so I can help you better. :)
Cheers,
Drew
from resonance-audio-web-sdk.
@benank Wow, I didn't really expect that you'd respond at all, and the fact that you responded so quickly is blowing me away, especially given that you're sharing code.
I really appreciate it.
As it turns out, at the same time as you were typing this, I was able to figure it out based on your earlier hint: #34 (comment)
Thank you so much! This is really cool.
from resonance-audio-web-sdk.
Hi, thank you for the response. Using createMediaStreamSource
was exactly what I needed, along with muting the original audioElement. Thank you for your help!
from resonance-audio-web-sdk.
from resonance-audio-web-sdk.
@benank and @drewbitllama I'd be so appreciative if you could clarify what you did here because I have the same question and shared my code in this other issue here.
Like you said, regular wav files worked well, but I couldn't get webcam streams to work (even with audioContext.createMediaStreamSource(video.srcObject);
).
I'm wondering what you did differently to get it to work.
I realize it's 3.3 years later, but any hints you can think of would be much appreciated! Thanks!
from resonance-audio-web-sdk.
@ryancwalsh My use case was for a voice chat application, and the code is still available here. I honestly can't give you much more than the code because I don't remember anything else about it at this point. Hope this helps!
from resonance-audio-web-sdk.
Related Issues (20)
- Directivity patterns, occlusion and reflections
- setRoomProperties throws an error HOT 11
- require Omnitone without relative paths HOT 1
- PannerNode vs TresureHunt
- Severe bug in ResonanceAudio.setRoomProperties() HOT 1
- Not working on Chrome HOT 5
- Typescript definitions
- Spatial audio doesn't work in iOS12.01 safari HOT 4
- Reverb is always mono on any browser HOT 4
- module loading HOT 7
- Confirming exactly what the "ambisonicOutput" is HOT 6
- Web SDK Documentation title indicates Unity
- How to download ambisonics file HOT 4
- Smooth transition when using sliders to set params HOT 3
- L R reverse HOT 3
- ssoruce spread not working on the web version
- Only Left speaker HOT 1
- CPU benchmark utility hangs HOT 2
- audioContext.createMediaStreamSource instead of audioContext.createMediaElementSource? HOT 1
- Audio stuttering/popping with Three.js and First Person camera
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resonance-audio-web-sdk.