Skip to content

Audio route to speaker for Android platform #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,17 @@ RNCallKeep.checkSpeaker();

Update the audio route of Audio Service on Android with a `routeSpeaker` boolean value (`true` if speaker need on, `false` otherwise).
When Phone call is active, Android control the audio via connection service. so this function help to toggle the audio to Speaker or wired/ear-piece or vice-versa

_This feature is available only on Android._

```js
RNCallKeep.toggleAudioRouteSpeaker(uuid: string, routeSpeaker: boolean);
RNCallKeep.toggleAudioRouteSpeaker(uuid, true);
```

- `uuid`: string
- uuid of the current call.
- `routeSpeaker`: boolean

### supportConnectionService (async)

Tells if `ConnectionService` is available on the device (returns a boolean).
Expand Down