Skip to content

Merve40/ptt-android

Repository files navigation

Push-To-Talk (PTT) App for Android

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.

Support

WebView based streaming (webstream)

  • cross-platform (desktop browsers & android devices)
  • support starting from API level 17 and WebView/Chrome version starting from 55

Native streaming (nativestream)

  • better sound quality
  • can stream audio to other android devices and browsers
  • support starting from API level 23

Demo

A demo can be performed between browser and android app at https://ptt-demo.herokuapp.com