ad-insertion.md
9.53 KB
-
Use the content URI as well as mediaId for the auto-generated ad ID · 278593f0
MediaItem.mediaId used to default to the content URI, but this changed: https://github.com/google/ExoPlayer/commit/cc26a92e070db8963738beed423bb4699762877f Before the mediaId change linked above, a playlist of different content all with the same ad URI would play the ads for every item. After the change the ad would only play once (because mediaId == "" for every item, so they're all the same). This change restores roughly the original behaviour by always considering both mediaId and the content URI. Issue: #9106 PiperOrigin-RevId: 382763618
ibaker committed