androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.7k stars 406 forks source link

Midroll playback issue with the first AD Unit (Exoplayer) - first ad unit is skipped #1202

Open mauroDeFeo opened 7 months ago

mauroDeFeo commented 7 months ago

Version

Media3 1.1.1 / ExoPlayer 2.19.1

More version details

No response

Devices that reproduce the issue

Mobile phones with Android O.S

Devices that do not reproduce the issue

None

Reproducible in the demo app?

Not tested

Reproduction steps

  1. Launch an Irish VPN (to have access to our Google campaigns which are targeted only to Ireland country);
  2. Install and launch the attached sample app (Basic sample app with Media3 integration (v.1.1.1) and IMA SDK integration) (sample app also available here: https://finconsspa-my.sharepoint.com/personal/mauro_defeo_finconsgroup_com/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fmauro%5Fdefeo%5Ffinconsgroup%5Fcom%2FDocuments%2FFreeStream%2BIrishAdv%2Ezip&parent=%2Fpersonal%2Fmauro%5Fdefeo%5Ffinconsgroup%5Fcom%2FDocuments&ga=1)
  3. Play the media content configured in the sample app (DRM free content)
  4. Seek to minute 27:30
  5. Wait for minute 28:00 where the mid-roll slot should begin

Expected result

At minute 28 mid-roll slot should begin and play successfully

Actual result

Mid-roll slot begins at minute 28:08 as the first ad unit has been skipped and ADV playback starts from the second ad unit.

Media

Media content: https://www.emmanuelevilla.com/2048895036-50037512-c42f26a3-505c-4131-951f-8700b36d881d.mp4

VMAP tag: https://pubads.g.doubleclick.net/gampad/ads?correlator=6289&iu=%2F3014%2FRTE_Player_VOD%2FAndroid_Phone%2FNotRegistered&env=vp&gdfp_req=1&sz=640x360&description_url=https://www.rte.ie/player&tfcd=0&npa=0&vpmute=0&vpa=0&vad_format=linear&url=&output=vmap&unviewed_position_start=1&cmsid=2506236&vid=AQ000269472&cust_params=brn%3DAQ000269472%26title%3DYellowstone+S01+E1%26genre%3D%5BDrama%5D

Sample app: https://finconsspa-my.sharepoint.com/personal/mauro_defeo_finconsgroup_com/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fmauro%5Fdefeo%5Ffinconsgroup%5Fcom%2FDocuments%2FFreeStream%2BIrishAdv%2Ezip&parent=%2Fpersonal%2Fmauro%5Fdefeo%5Ffinconsgroup%5Fcom%2FDocuments&ga=1

Bug Report

mauroDeFeo commented 7 months ago

Hi team, just to flag that we have replicated the same issue using Media3 sample app. I'm attaching here the sample app package configured in such a way to replicate the mentioned issue (only replicable if an Irish VPN is active).

Sample app project: https://finconsspa-my.sharepoint.com/:u:/g/personal/mauro_defeo_finconsgroup_com/Ed-k3V1qbhVIvxdV3ah1LfUB2mvwOTKo6FOprx9X0vNXYA?e=u8YIL1

Thanks, Mauro.

mauroDeFeo commented 7 months ago

Hello everyone, did you have the chance to replicate the mentioned issue? Any suggestion would be much appreciated. Thanks, Mauro.