Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: audio OGG (OGA) is detected as OGX instead #90

Open
AndroidDeveloperLB opened this issue Jul 10, 2024 · 0 comments
Open

Bug: audio OGG (OGA) is detected as OGX instead #90

AndroidDeveloperLB opened this issue Jul 10, 2024 · 0 comments

Comments

@AndroidDeveloperLB
Copy link

The mimetype I get is "application/ogg" instead of "audio/ogg".

Code:

val util = ContentInfoUtil()
val info = util.findMatch(inputStream)
val extension = info?.mimeType?.let { mimeType ->
  MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType)?.let { result ->
     return result
     }
  }

Attached sample file.

Your New Adventure.zip

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

No branches or pull requests

1 participant