Plugin to enable SCO audio communication
Find a file
2014-10-29 04:38:08 +02:00
src/android added README 2014-10-29 04:36:17 +02:00
www added playback support 2014-10-28 20:31:52 +02:00
plugin.xml indentation fix 2014-10-29 04:12:00 +02:00
README.md Update README.md 2014-10-29 04:38:08 +02:00

cordova-BluetoothSco

Enable audio communication via a Bluetooth SCO link

How to use

####Create a SCO link

BluetoothSco.start(function() {
    // success callback
}, function() {
    // error callback
}, {enablePlayback: true});

The last argument is optional. If enablePlayback is set false (or not at all), the link is used to route audio from the Bluetooth headset to the phone (one-way link). If set true as above, a two-way link is created.

####Remove SCO link

BluetoothSco.start(function() {
    // success callback
}, function() {
    // error callback
});

Note

The plugin will not switch device's Bluetooth on or off, or try to pair with a headset. You have to do that in some other part of your code.