Open Chadewik-junao opened 1 week ago
Thanks for reporting the error. Could you share the media file that reproduces the issue? It looks not quite clear how this problem can happen, so I think we can only debug this further if we can reproduce it ourselves. You can send a link to android-media-github@google.com with "Issue #1476" in the subject if you don't want to share it here.
I have already sent the problematic media file. Hope it is helpful for solving the issue. Thank you.
Thanks for sharing the file. It seems this is caused by adding tracks in the TS file that are only advertised later in the file after ExoPlayer already finished its initial preparation step. I'll add a fix to the class that currently breaks to ignore such tracks as they are unsupported.
Problem Description
I've integrated ExoPlayer into my application to play TS format videos from a server URL. However, I encountered an exception that prevents the video from playing correctly. The exception is an ArrayIndexOutOfBoundsException thrown while trying to retrieve the buffered position.
Version
Media3 1.3.0
Error Log
Here is the complete stack trace of the error:
My code looks like this
The video file cannot be uploaded due to copyright reasons.
How do I fix it ? Thank you for your assistance.