androidx / androidx/media

Add re-synchronization logic to OggExtractor

Open
#2,266 1 comment 0 reactions 1 assignee View on GitHub

@icbaker is already working on this.

Since Mar 25, 2025.

enhancement low priority
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 main branch

More version details

I am streaming ogg wrapped opus audio from ffmpeg via UDP. The exoplayer can only connect to the stream if it’s listening first and receives the first packet with the header information.

If the stream has been playing and exoplayer attempts to connect mid-stream, it doesn’t recognize that it needs to use the OggExtractor. It fails to find one it can use.

I would hope that the exoplayer can find the next ogg container page, and resume playback. Is this a bug, or can I configure the player differently to connect?

Devices that reproduce the issue

Samsung Active5

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

Stream UDP wrapped opus audio. Connect to that stream mid-way.

Expected result

Exoplayer resumes playback.

Actual result

Crashed with media extractor not found.

Media

Ogg wrapped opus.

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.