Access alternate audio tracks

Late-binding audio uses MediaPlayer to play a video that is specified in an M3U8 HLS playlist and that can contain several alternate audio streams.

  1. Wait for the MediaPlayer to be in at least the PREPARED status.

  2. Listen for these events:

    • MediaPlayerItemEvent.ITEM_CREATED: The initial list of audio tracks is available.
    • MediaPlayerItemEvent.AUDIO_UPDATED: Audio tracks changed during playback
  3. Get the available audio tracks from the MediaPlayerItem instance.

  4. (Optional) Present the available tracks to the user.

  5. Set the selected audio track on the MediaPlayerItem instance.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now