-
Notifications
You must be signed in to change notification settings - Fork 769
onAdStarted() is not called between consecutive interstitial breaks #3013
Description
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
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.