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

M3U8 causes UnrecognizedInputFormatException when no MimeType is given #40

Open
th3infinity opened this issue Oct 13, 2024 · 0 comments

Comments

@th3infinity
Copy link

When playing a M3U8 MediaItem from Network it gives a error:
Caused by: androidx.media3.exoplayer.source.UnrecognizedInputFormatException: None of the available extractors (FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaExtractor, AdtsExtractor, Ac3Extractor, Ac4Extractor, Mp3Extractor, AviExtractor, JpegExtractor, PngExtractor, WebpExtractor, BmpExtractor, HeifExtractor) could read the stream.{contentIsMalformed=false, dataType=1}

This is caused by the empty string mimeType which is the default value for VideoPlayerMediaItems. It would be possible to set the right mimeType but that could change.

Fix:
Since the mimeType property of Exoplayer MediaItem is nullable a fix would be to allow the mimeType of VideoPlayerMediaItems to also be null.

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