Skip to content

Conversation

@PratimMallick
Copy link
Contributor

@PratimMallick PratimMallick commented Oct 30, 2025

Goal

To enable stereo playout and provide ability to switch between stereo and mono playout mid call

Implementation

Provided setAudioUsage method on SpeakerManager that can be used after joining a call to change the current audio mode from VOICE_COMMUNICATION to MEDIA that will enable stereo playout.
A StateFlow audioUsage is added as well which apps can observe to know the current audio usage

Testing

A debug option is added in the debug menu option to toggle between mono and stereo playout.
To test stereo output, join a call from android and play a screenshare track from youtube on web containing stereo sound. Toggle to stereo mode from android and observe the stereo effect.

@PratimMallick PratimMallick requested a review from a team as a code owner October 30, 2025 13:18
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@PratimMallick PratimMallick requested review from rahul-lohra and removed request for a team October 30, 2025 13:24
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

SDK Size Comparison 📏

SDK Before After Difference Status
stream-video-android-core 11.91 MB 11.91 MB 0.00 MB 🟢
stream-video-android-ui-xml 5.68 MB 5.68 MB 0.00 MB 🟢
stream-video-android-ui-compose 6.25 MB 6.25 MB 0.00 MB 🟢

@PratimMallick PratimMallick changed the title hifi_audio [AN-765] Add stereo playout support Oct 30, 2025
@PratimMallick PratimMallick added the pr:new-feature Adds new functionality label Oct 30, 2025
@aleksandar-apostolov aleksandar-apostolov changed the title [AN-765] Add stereo playout support Add stereo playout support Oct 30, 2025
@aleksandar-apostolov aleksandar-apostolov changed the title Add stereo playout support [AND-765] Add stereo playout support Oct 30, 2025
@aleksandar-apostolov aleksandar-apostolov changed the title [AND-765] Add stereo playout support Add stereo playout support Oct 30, 2025
@aleksandar-apostolov aleksandar-apostolov changed the title Add stereo playout support Add support for stereo playback Oct 30, 2025
@PratimMallick PratimMallick changed the title Add support for stereo playback [AN-765] Add support for stereo playback Oct 30, 2025
@PratimMallick PratimMallick changed the title [AN-765] Add support for stereo playback Add support for stereo playback Oct 30, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
56.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:new-feature Adds new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants