Added support for High fidelity (hi-fi) audio capture#1564
Merged
aleksandar-apostolov merged 35 commits intodevelopfrom Nov 7, 2025
Merged
Added support for High fidelity (hi-fi) audio capture#1564aleksandar-apostolov merged 35 commits intodevelopfrom
aleksandar-apostolov merged 35 commits intodevelopfrom
Conversation
…n be either VOICE_COMMUNICATION or MEDIA
…and usage_voice_communication
…one when adding stereo capture to recording feature
… any remote track has come in. Updated to webrtc which has the fix for this.
…nto hifi_audio # Conflicts: # stream-video-android-core/api/stream-video-android-core.api # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/MediaManager.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Contributor
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
Contributor
SDK Size Comparison 📏
|
… come under breaking change Make eglbase optional param while creating StreamPeerConnectionFctory so that it doesnt come under breaking change
…lBase instead of a direct parameter. So that unit test can initiaze StreamPeerConnectionFactory without invoking EglBase.create() in the constructor
…hone.audioBitrateProfile
…the call settings before setting the profile in the call 2. Lobby does not show the hifi toggle button if it is not enables in the call settings
aleksandar-apostolov
approved these changes
Nov 6, 2025
rahul-lohra
reviewed
Nov 7, 2025
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Show resolved
Hide resolved
rahul-lohra
reviewed
Nov 7, 2025
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Outdated
Show resolved
Hide resolved
rahul-lohra
reviewed
Nov 7, 2025
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Outdated
Show resolved
Hide resolved
rahul-lohra
reviewed
Nov 7, 2025
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Show resolved
Hide resolved
rahul-lohra
reviewed
Nov 7, 2025
Contributor
rahul-lohra
left a comment
There was a problem hiding this comment.
please check my comments
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Goal
This PR adds support for HiFi (high-fidelity) audio in the Stream Video Android SDK, enabling users to choose a certain type of audio profile before joining the call.
This enhancement allows applications to provide better audio quality for music streaming, podcast calls, or any scenario requiring higher audio fidelity
Implementation
Audio Bitrate Profile Support (
MediaManager.kt):audioBitrateProfileStateFlow inMicrophoneManagerto track current audio profilesetAudioBitrateProfile()method that validates:MUSIC_HIGH_QUALITYAudioBitrateProfileenum support withVOICE_STANDARD_UNSPECIFIEDandMUSIC_HIGH_QUALITYoptionsPeer Connection Factory Refactoring (
StreamPeerConnectionFactory.kt):audioBitrateProfileProviderfunction, which enables it to turn off hardware AEC, NSCall State Management (
Call.kt):ensureFactoryMatchesAudioProfile()to validate factory matches current profilerecreateFactoryAndAudioTracks()to rebuild factory and tracks. This is needed if app has to provide a toggle in Lobby screen, where intial factory is already created with the default audioProfileUI Components (
ToggleHifiAudioAction.kt):CallActionsystem viaToggleHifiAudioactionDemo App Integration:
CallLobbyScreenandCallScreen🎨 UI Changes
Testing