Skip to content

fix: 🐛 Enable constant bitrate seeking for raw ADTS AAC on Android#501

Open
lavigarg-simform wants to merge 1 commit into
fix/I488_fix_android_release_crashfrom
fix/I429_adts_aac_seek
Open

fix: 🐛 Enable constant bitrate seeking for raw ADTS AAC on Android#501
lavigarg-simform wants to merge 1 commit into
fix/I488_fix_android_release_crashfrom
fix/I429_adts_aac_seek

Conversation

@lavigarg-simform

@lavigarg-simform lavigarg-simform commented Jun 26, 2026

Copy link
Copy Markdown

Description

Raw ADTS .aac files have no seek table inside them. On Android, ExoPlayer had no way to find a position, so seeking did nothing — playback stayed stuck at 0 and the duration came back as unknown. iOS was fine.

What changed

  • Build the Android player so constant-bitrate seeking is turned on.
  • This lets headerless constant-bitrate streams (raw ADTS AAC, and similar MP3/AMR) be seeked by estimating the byte position from the bitrate.
  • Seeking and duration now work for raw .aac on Android, matching iOS.

Files that already carry their own seek info (MP3 with a Xing header, MP4/M4A, WAV) are untouched and keep using it.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #429

@lavigarg-simform lavigarg-simform force-pushed the fix/I429_adts_aac_seek branch from 7102d7b to ae7c6c5 Compare June 26, 2026 08:36
@lavigarg-simform lavigarg-simform marked this pull request as ready for review June 26, 2026 08:37
@lavigarg-simform lavigarg-simform linked an issue Jun 26, 2026 that may be closed by this pull request
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.

aac file problem

1 participant