-
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
MediaCodecRenderer bypass does not handle empty streams correctly #8374
Comments
Thanks for reporting this, and for the detailed reproduction steps. Please do take care to include all of the requested information when filing future issues though! In this particular instance, including a bug report (or even logcat output) would have shown the root cause, which is unrelated to ads:
|
This will be fixed shortly, and be eligible for the next minor release (although we don't have an ETA). As you've noticed, passing a sufficiently large value as the |
Thank you so much for such a quick response @ojw28 ! For further requests I'll include more logs from |
I'm getting a similar stacktrace as well when trying to play these files through the ExoPlayer demo app:
For reference, I've got the same files working as expected when streaming them through the VLC Android app. (https://play.google.com/store/apps/details?id=org.videolan.vlc&hl=en_IN&gl=US) Stacktrace:
EventLogger events before the above stacktrace popped up:
|
#minor-release Issue: #8374 PiperOrigin-RevId: 348792965
Issue: #8374 PiperOrigin-RevId: 348792965
In our code we had this part
which was working fine with ExoPlayer version 2.11.8
In order to launch standalone IMA preroll and then when it finishes launch another player which might not be ExoPlayer. So we relied on correct callback which is called
Steps to reproduce
media.exolist.json
onPlayerError() called with: error = [com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error]
" andImaAdsLoader
receives PAUSE callback instead of COMPLETEDUPDATE:
Passing
new SilenceMediaSource(TimeUnit.SECONDS.toMicros(1))
solves the problem.Proposed solution:
throw an error if duration of
SilenceMediaSource
isn't enough for player to actually play it.The text was updated successfully, but these errors were encountered: