Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Ads): Fix id of X-ASSET-LIST #7662

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

avelad
Copy link
Member

@avelad avelad commented Nov 25, 2024

Fixes #7661

@avelad avelad added type: bug Something isn't working correctly component: ads The issue involves the Shaka Player ads API or the use of other ad SDKs priority: P1 Big impact or workaround impractical; resolve before feature release labels Nov 25, 2024
@avelad avelad added this to the v4.13 milestone Nov 25, 2024
if (asset['URI']) {
interstitialsAd.push({
id,
id: id + '_asset_' + i,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically, couldn't this still result in id collisions? If (for example) they have an asset list interstitial with the id "foo" and an asset uri interstitial with the id "foo_asset_0".
That seems extremely unlikely, however, so this is probably fine.

@avelad avelad merged commit 79b1536 into shaka-project:main Nov 26, 2024
22 of 23 checks passed
@avelad avelad deleted the X-ASSET-LIST branch November 26, 2024 08:05
avelad added a commit that referenced this pull request Nov 27, 2024
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jan 25, 2025
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: ads The issue involves the Shaka Player ads API or the use of other ad SDKs priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HLS interstitials only first item referenced in the X-ASSET-LIST is played
3 participants