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

feat(Ads): New HLS interstitial DATERANGE attributes for Skip Button #7467

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Oct 22, 2024

Close: #7466

@avelad avelad added type: enhancement New feature or request component: ads The issue involves the Shaka Player ads API or the use of other ad SDKs priority: P3 Useful but not urgent labels Oct 22, 2024
@avelad avelad added this to the v4.12 milestone Oct 22, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 54.67%

externs/shaka/ads.js Outdated Show resolved Hide resolved
if (this.isSkippable_ && this.skipFor_ != null) {
const position = this.getDuration() - this.getRemainingTime();
const maxTime = this.skipOffset_ + this.skipFor_;
return position < maxTime;
Copy link
Member

Choose a reason for hiding this comment

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

So, if you don't skip fast enough, you lose the chance? That seems backwards to how most skippable ads work, in my experience.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is a new feature that is only activated for HLS interstitials, and it is configurable. If you configure X-ENABLE-SKIP-FOR with a number high or equal to the duration of the ad or omit this parameter, you have the old behavior.

@avelad avelad requested a review from joeyparrish October 23, 2024 06:15
@avelad avelad merged commit 3107de3 into shaka-project:main Oct 23, 2024
17 of 18 checks passed
@avelad avelad deleted the ENABLE-SKIP-AFTER-FOR branch October 23, 2024 18:28
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 22, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Dec 22, 2024
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: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New HLS interstitial DATERANGE attributes for Skip Button
3 participants