Skip to content

Publish Matroska chapter metadata after the initial track format - #3596

Open
FongMi wants to merge 1 commit into
androidx:mainfrom
FongMi:media3-mkv-late-chapters
Open

FongMi wants to merge 1 commit into
androidx:mainfrom
FongMi:media3-mkv-late-chapters

Conversation

@FongMi

@FongMi FongMi commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

Matroska chapters may be parsed after a track's initial Format. Record the last format delivered to each TrackOutput, then emit an updated format when parsing chapter metadata changes it.

Testing

Extractor tests cover chapters before the first Cluster and between Clusters. The ExoPlayer test verifies that audio renderer input receives the new chapter metadata through AnalyticsListener.onAudioInputFormatChanged.

Passed 6 extractor tests and both cases in AnalyticsListenerPlaybackTest.

@FongMi FongMi changed the title Publish Matroska chapters parsed after the seek map Publish Matroska chapter metadata after the initial track format Nov 27, 2026
Remember the last format sent to each track output and emit the changed
format when late chapters are parsed. Verify propagation to the ExoPlayer
audio input format as well as the extractor output.
@FongMi
FongMi force-pushed the media3-mkv-late-chapters branch from a1b42ab to c73e9bf Compare November 29, 2026 14:04
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.

3 participants