Version
Media3 1.9.0
More version details
No response
Devices that reproduce the issue
Android simulator(API 34) using media3 v1.9.0
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
If interstitial breaks are consecutive, HlsInterstitialsAdsLoader.Listener.onAdStarted() is not called at the beginning of the second and third breaks.
The breaks are defined in the manifest:
#EXT-X-DATERANGE:ID="47115_16_1",CLASS="com.apple.hls.interstitial",START-DATE="2025-12-11T14:16:00.000Z",DURATION=20.0,X-ASSET-URI="{$host}break/47115_16_1.m3u8{$sessionId}"
#EXT-X-DATERANGE:ID="47115_21_1",CLASS="com.apple.hls.interstitial",START-DATE="2025-12-11T14:16:20.000Z",DURATION=40.0,X-ASSET-URI="{$host}break/47115_21_1.m3u8{$sessionId}"
#EXT-X-DATERANGE:ID="47115_31_1",CLASS="com.apple.hls.interstitial",START-DATE="2025-12-11T14:17:00.000Z",DURATION=60.0,X-ASSET-URI="{$host}break/47115_31_1.m3u8{$sessionId}"
#EXT-X-DATERANGE:ID="47115_31_1",CLASS="com.apple.hls.interstitial",X-SNAP="IN"
Expected result
The sequence of callbacks should be like:
onAdStarted() --> break#1 --> onAdCompleted() --> onAdStarted() —> break#2 --> onAdCompleted() --> onAdStarted() —> break#3 --> onAdCompleted()
Actual result
Some of the onAdCompleted() are not called
onAdStarted() --> break#1 --> onAdCompleted() --> break#2 --> onAdCompleted() --> break#3 --> onAdCompleted()
Media
Sample stream URL is sent via email.
Bug Report
Version
Media3 1.9.0
More version details
No response
Devices that reproduce the issue
Android simulator(API 34) using media3 v1.9.0
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
If interstitial breaks are consecutive,
HlsInterstitialsAdsLoader.Listener.onAdStarted()is not called at the beginning of the second and third breaks.The breaks are defined in the manifest:
Expected result
The sequence of callbacks should be like:
onAdStarted() --> break#1 --> onAdCompleted() --> onAdStarted() —> break#2 --> onAdCompleted() --> onAdStarted() —> break#3 --> onAdCompleted()
Actual result
Some of the
onAdCompleted()are not calledonAdStarted() --> break#1 --> onAdCompleted() --> break#2 --> onAdCompleted() --> break#3 --> onAdCompleted()
Media
Sample stream URL is sent via email.
Bug Report
adb bugreportto android-media-github@google.com after filing this issue.