Skip to content

polomani/cordova-plugin-audiofocus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-audiofocus

AudioFocus is a Cordova plugin for Android platform that allows requesting of audio focus.

Android uses audio focus to moderate audio playback—only apps that hold the audio focus should play audio.

Installation

Using Cordova/Ionic

$ cordova plugin add https://github.com/Bustanity/cordova-plugin-audiofocus.git

Usage

window.audioFocus.requestFocus(function() {
    // succeeded to gain focus
}, function() {
    // failed to gain focus
});

License

Apache License, Version 2.0

About

Cordova Plugin for Android to request Audio Focus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 83.0%
  • JavaScript 17.0%