This is a sample PTT app, following the browser-based PTT application. The app is divided into 2 parts: native implementation and web-view based implementation.
WebView-based implementation connects to the same web site as the browser version.
The sound is recorded using AudioRecord for both native and webview implementation.
WebView uses AudioContext to play back audio and native implementation uses AudioTrack.
- cross-platform (desktop browsers & android devices)
- support starting from API level 17 and WebView/Chrome version starting from 55
- better sound quality
- can stream audio to other android devices and browsers
- support starting from API level 23
A demo can be performed between browser and android app at https://ptt-demo.herokuapp.com