-
Notifications
You must be signed in to change notification settings - Fork 56
[AND-482] Add external audio device monitoring and select if available #1367
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
[AND-482] Add external audio device monitoring and select if available #1367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces external audio device monitoring to automatically select a Bluetooth or wired headset when available, while also preserving the previously selected non-headset device.
- In MediaManager.kt, a new internal variable (selectedDeviceBeforeHeadset) is added to store the previously selected device.
- In Call.kt, a new monitorHeadset() function is implemented to check available devices and update the microphone selection accordingly.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/MediaManager.kt | Adds tracking for the previously selected non-headset device |
| stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt | Introduces headset monitoring to auto-select external audio devices |
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Outdated
Show resolved
Hide resolved
SDK Size Comparison 📏
|
Co-authored-by: Copilot <[email protected]>
|
rahul-lohra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…uetooth-headphones-on-android # Conflicts: # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/MediaManager.kt


🎯 Goal
Select external audio device when available (Bluetooth Headset, Wired Headset etc)
🛠 Implementation details
Add a new monitoring method. It will respect what AudioSwitch tells us: select external device whenever available.