Skip to content

Fix remote audio volume range#995

Merged
hiroshihorie merged 6 commits into
mainfrom
hiroshi/audio-volume-range
May 12, 2026
Merged

Fix remote audio volume range#995
hiroshihorie merged 6 commits into
mainfrom
hiroshi/audio-volume-range

Conversation

@hiroshihorie
Copy link
Copy Markdown
Member

No description provided.

@hiroshihorie hiroshihorie changed the title Hiroshi/audio volume range Fix remote audio volume range May 8, 2026
@hiroshihorie hiroshihorie marked this pull request as ready for review May 8, 2026 20:58
set {
guard let audioTrack = mediaTrack as? LKRTCAudioTrack else { return }
audioTrack.source.volume = newValue * 10
audioTrack.source.volume = min(max(newValue, 0), 10)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curiously, when setting the volume, is this consistent with android volume change ?

Do we need to update the doc if it takes 0 - 10 as value ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it should be aligned with Android now.
Need to update doc if this is mentioned somewhere.

Copy link
Copy Markdown
Contributor

@pblazej pblazej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@hiroshihorie
Copy link
Copy Markdown
Member Author

Added workaround until webrtc-sdk/webrtc#236 ships.

@hiroshihorie hiroshihorie merged commit 45a12ec into main May 12, 2026
28 checks passed
@hiroshihorie hiroshihorie deleted the hiroshi/audio-volume-range branch May 12, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants