Skip to content

Add missing AudioSessionIdChanged stub to android MediaElement#2992

Merged
TheCodeTraveler merged 1 commit intoCommunityToolkit:mainfrom
ne0rrmatrix:FixAudioSessionStubAndroid
Dec 6, 2025
Merged

Add missing AudioSessionIdChanged stub to android MediaElement#2992
TheCodeTraveler merged 1 commit intoCommunityToolkit:mainfrom
ne0rrmatrix:FixAudioSessionStubAndroid

Conversation

@ne0rrmatrix
Copy link
Member

-Bug Fix

Description of Change

Users have reported a bug that can be fixed by adding another method to MediaElement stubs for Player.Listener Adding OnAudioSessionIdChanged(int audioSessionId) should fix the linked issue.

Linked Issues

PR Checklist

Additional information

Copilot AI review requested due to automatic review settings December 6, 2025 19:07
Copy link
Contributor

Copilot AI left a 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 adds a missing method stub OnAudioSessionIdChanged(int audioSessionId) to the Android MediaManager's Player.Listener interface implementation to fix a bug where the interface was incomplete.

  • Adds the missing OnAudioSessionIdChanged method stub to MediaManager
  • Follows the existing pattern of empty method implementations for unused Player.Listener callbacks
  • Properly placed in alphabetical order among other stub methods

@TheCodeTraveler TheCodeTraveler enabled auto-merge (squash) December 6, 2025 19:14
@TheCodeTraveler TheCodeTraveler merged commit 20ab3fd into CommunityToolkit:main Dec 6, 2025
16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Missing OnAudioSessionIdChanged method causes AbstractMethodError crash on Android

3 participants