This project aims to run Web Audio API in Android with javascript code. Most of the available APIs have passed wpt test cases.
Now it supports following Web Audio feature:
more detail info is descript here.
- Download
NodeJS v18.20.4
library from Release,put so in./app/dependency/cpp/node/library
and namedlibnode.so
- run
npm install
for installing dependency - run
npm start
to get server address likehttp://xxx.xxx.xxx.xxx:20490
- open root folder with Android Studio
- add this line
js_entry="http://xxx.xxx.xxx.xxx:20490/index.js"
to local.property file - build and run app
After running app, you can see five buttons:
START
: Start running js code inindex.js
STOP
: Stop js event loop. You need to pressRESTART
button to re-run js code. NOTE: Stop cannt stopwhile() loop
in sync code!PAUSE
: Pause js event loop.RESUME
: Resume js event from pause.RESTART
: Restart app.
NOTE: all console message in js code will be output to Android Studio Logcat.
see develop.md
- The NodeJS library is built base on nodejs-mobile v18.20.4 release verison by lima and containerd, Thanks!
- Test case based on wpt.
- NAPI_IH base on node-addon-api-helper.
- Use ProcessPhoenix to restart Android App.