web-audio-api icon indicating copy to clipboard operation
web-audio-api copied to clipboard

React native

Open tom-s opened this issue 9 years ago • 8 comments
trafficstars

Hi,

Great library ! Do youu think it would be possible to use it with react native ? How would you proceed with the "connect" bit in order to connect it to the speaker output of a phone?

tom-s avatar Apr 25 '16 22:04 tom-s

@tom-s Why wouldn't you use the regular Web Audio API?

bradisbell avatar Apr 26 '16 15:04 bradisbell

I wish i could but i don't think the web audio api is implemented in react native.

2016-04-26 17:36 GMT+02:00 Brad Isbell [email protected]:

@tom-s https://github.com/tom-s Why wouldn't you use the regular Web Audio API?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/sebpiq/node-web-audio-api/issues/55#issuecomment-214785806

tom-s avatar Apr 26 '16 15:04 tom-s

Why make a native app at all? Why not just wrap a normal web page, if you must have a presence in an app store?

bradisbell avatar Apr 26 '16 15:04 bradisbell

I might be wrong, but i think embedding a webview using web audio html5 api is not gonna work. My requirement is to make a native app, so normal webpage is not a solution for me.

tom-s avatar Apr 26 '16 16:04 tom-s

@tom-s Where does your requirement to make a native app come from? It sounds kinda like you would consider using a webview if you thought it would work (and I personally don't know why it wouldn't)

1j01 avatar Oct 24 '16 05:10 1j01

In webview it is impossible to get mic input, at least in iPhones, and also there might be trouble getting sound if the phone is in silent mode. In all other aspects I don’t see reasons why webview should not work, web-pages with web audio api def work.

dy avatar Oct 24 '16 05:10 dy

WebView equivalents on iOS and Android both use the WebKit engine, which implements some version of the Web Audio API.

ajrussellaudio avatar Apr 01 '17 14:04 ajrussellaudio

It looks as if in 2020 Android/iOS have still not made the WebAudio API available as a direct API without loading the entire chrome/safari instance. Facebook closed a request from last year, so it's clear the corpseorations are not planning on doing this any time soon. This library would prove revolutionary if ported to RN. We could finally build instruments that work on all platforms. Right?

clevertree avatar Jan 11 '20 00:01 clevertree