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.
- 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.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 runtime is base on node-android-build v14.17.0 release verison, Thanks!
- Test case based on wpt.
- NAPI_IH base on node-addon-api-helper.
- Use ProcessPhoenix to restart Android App.