-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Exoplayer crashes when it encounters a unexpected stream in an HLS file #2836
Comments
@AquilesCanta You can find the video here https://s3.amazonaws.com/charlyvault/live/12345/12345.m3u8 |
Thanks! It will probably have to wait until next week, but I will get to it as soon as I have some free time. |
@AquilesCanta Do you happen to know what i can do to have the exoplayer simply ignore the track? |
Anything not supported should be ignored by default. I'll look into this as soon as possible. Sorry for the inconvenience. |
When I tested with the sample app, i get a toast saying "The device does not provide a decoder for application/id3" |
The issue here is that the second chunk is not a continuation of the first one. It declares an audio while the first one does not. This is not allowed by the spec unless a discontinuity is signaled.
However, even with discontinuities, ExoPlayer does not support changes in the track configuration, like adding a track type that was not there or removing one. The best way to go here is fix the media, particularly because even though the pmt does not declare audio, the audio PES packets are there. |
The issue occurs for version 2.4.0
I have a HLS file generated from a third party with 3 tracks
Stream #0:0 is video
Stream #0:1 is audio
Stream #0:2 is something custom from the third party.
When I load my HLS into the exoplayer the player crashes with this stacktrace
For some reason the crash above only happens on a fresh install. After if I initialize the player a second time, i ran into this error on the console and the player still won't play anything.
Below is the ffprobe analysis for my file with this weird third stream. How can I have exoplayer to ignore stream #2?
This is the code I wrote to have the video player to play my urls. It is taken almost directly from the documents.
The text was updated successfully, but these errors were encountered: