Skip to content

Add Player.setAudioPresentation API #2549

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sqshet-dlb
Copy link

  • Set an available AudioPresentation via Player interface on an AudioSink that plays audio data using AudioTrack.
  • Verify AudioManager.getParameters() using the key "isAc4PresentationSelectionByIndexSupported" before setting the audio presentation. Additionally, extend the Player command by incorporating Player.COMMAND_SET_AUDIO_PRESENTATION, allowing the app to check for this capability before configuring audio presentations

Change-Id: I8a37e3dc66878934b67c24e137cba8c9db7c79ac

* Set an available AudioPresentation via Player interface on an
  AudioSink that plays audio data using AudioTrack.
* Verify AudioManager.getParameters() using the key
  "isAc4PresentationSelectionByIndexSupported" before setting the
  audio presentation. Additionally, extend the Player command by
  incorporating Player.COMMAND_SET_AUDIO_PRESENTATION,
  allowing the app to check for this capability before
  configuring audio presentations

Change-Id: I8a37e3dc66878934b67c24e137cba8c9db7c79ac
@rohitjoins rohitjoins self-assigned this Jun 20, 2025
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.

2 participants