Skip to content

Unable to play content with pre-roll in version 1.10.0 #3125

@hung365dev

Description

@hung365dev

Version

Media3 main branch

More version details

Branch: main
Release version: 1.10.0 - xxx

Devices that reproduce the issue

  • All devices

Devices that do not reproduce the issue

  • This bug does not appear in older versions like 1.9.x or below.

Reproducible in the demo app?

Yes

Reproduction steps

  1. Open the demo app
  2. Play the content like IMA sample ad tags / VMAP pre-roll

Expected result

Able to play the content with Pre-roll without issues.
This is a critical bug, so please fix it as soon as possible.
If there are any changes related to Ads handling, please check CSAI and SSAI function before releasing the new version.

Actual result

When playing content with a pre-roll, an error occurs as shown below. You can reproduce the error even with Media3's demo.

playerFailed [eventTime=0.57, mediaPos=0.00, window=0, period=0, errorCode=ERROR_CODE_UNSPECIFIED
                                                                                                      androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
                                                                                                          at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:925)
                                                                                                          at android.os.Handler.dispatchMessage(Handler.java:103)
                                                                                                          at android.os.Looper.loop(Looper.java:213)
                                                                                                          at android.os.HandlerThread.run(HandlerThread.java:67)
                                                                                                      Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
                                                                                                          at androidx.media3.exoplayer.ExoPlayerImplInternal.resolvePositionForPlaylistChange(ExoPlayerImplInternal.java:3738)
                                                                                                          at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMediaSourceListInfoRefreshed(ExoPlayerImplInternal.java:2475)
                                                                                                          at androidx.media3.exoplayer.ExoPlayerImplInternal.mediaSourceListUpdateRequestedInternal(ExoPlayerImplInternal.java:1032)
                                                                                                          at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:784)
                                                                                                          at android.os.Handler.dispatchMessage(Handler.java:103) 
                                                                                                          at android.os.Looper.loop(Looper.java:213) 
                                                                                                          at android.os.HandlerThread.run(HandlerThread.java:67) 

Media

You can reproduce the error even with Media3's demo.

Bug Report

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions