/audiotoggle

👂Earpiece vs 🎧Headphone automatic router for AudioGuide app📱, which is a TwoGate™'s product.

Primary LanguageJavaApache License 2.0Apache-2.0

AudioToggle - Audio Routing Plugin for Silent Listening

Cordova plugin for automatic switching between headphone and earpiece when playing audio.

cordova plugin add com.twogate.audiotoggle

Supported Platforms

  • Android >= 6
  • iOS >= 9

Usage

To set the automatic route mode, use the setAutoRoute method:

AudioToggle.setAutoRoute();

Install

cordova plugin add https://github.com/twogate/audiotoggle.git