[x] Updated the CHANGELOG.md to reflect any feature, bug fixes, or known issues made in the source code
[x] Tested code changes and observed expected behavior in the example app
[x] Performed a visual inspection of the Files changed tab prior to submitting the pull request for review to ensure proper usage of the style guide
All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.
[x] I acknowledge that all my contributions will be made under the project's license.
Description
AudioSwitch library requires calling .select and .activate functions to be called in order to switch between audio devices (like speakerphone to earpiece). As far as I see there is no existing way to call activate by using react native functions. I propose modifying voice_selectAudioDevice function so that it will immediately activate the device after selecting it.
Breakdown
[Bulleted summary of changes]
[eg. Updated documentation]
[eg. Added audio device feature]
Validation
Manually tested with app
Additional Notes
[Any additional comments, notes, or information relevant to reviewers.]
thank you @afalls-twilio, we are using a custom accept function and I missed that activate should be called before accepting the call. I added activate call there and now it works 👌
Submission Checklist
CHANGELOG.md
to reflect any feature, bug fixes, or known issues made in the source codeFiles changed
tab prior to submitting the pull request for review to ensure proper usage of the style guideDescription
AudioSwitch library requires calling
.select
and.activate
functions to be called in order to switch between audio devices (like speakerphone to earpiece). As far as I see there is no existing way to call activate by using react native functions. I propose modifyingvoice_selectAudioDevice
function so that it will immediately activate the device after selecting it.Breakdown
Validation
Additional Notes
[Any additional comments, notes, or information relevant to reviewers.]