Skip to content

Migrate Android playback from ExoPlayer 2 to Media3 #509

Description

@victorrss

Is your feature request related to a problem? Please describe.
Standalone com.google.android.exoplayer2 is discontinued. This plugin still depends on com.google.android.exoplayer:exoplayer:2.17.1 for Android playback in AudioPlayer.kt.

Describe the solution you'd like
Migrate Android playback to Jetpack Media3 (androidx.media3:media3-exoplayer), following https://developer.android.com/media/media3/exoplayer/migration-guide.

The change is limited to the Android player module. The Dart PlayerController API stays the same.

Describe alternatives you've considered
Google's media3-migration.sh targets ExoPlayer 2.19.1 to Media3 1.1.1. This repo is on 2.17.1 and should move to current Media3, so a manual migration of the small playback surface is preferable.

Additional context

  • Current dependency: com.google.android.exoplayer:exoplayer:2.17.1
  • Usage is only in android/src/main/kotlin/com/simform/audio_waveforms/AudioPlayer.kt
  • Waveform extraction and recording do not use ExoPlayer
  • Plugin minSdk should align with Media3 1.9+ (23), which is already documented

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions