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 VMAP won't play in muted autoplay #6046

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Jan 8, 2024

Fixes #6020
Fixes #6037

@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 Jan 8, 2024
@avelad avelad added this to the v5.0 milestone Jan 8, 2024
@avelad avelad requested a review from theodab January 8, 2024 13:20
/**
* @param {number} videoVolume
*/
mute(videoVolume) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, after some examining I agree that this method needs to exist, so that we can keep track of what the previous video volume is without actually setting the volume on the ad element.
However, this name is bad. It's very similar to the setMuted method, and doesn't really explain how the two methods are different.
Instead I'd call this something like "setInitialMuted", and add a comment to the JSDoc that it's required for a muted ad to start when autoplaying.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@avelad avelad requested a review from theodab January 9, 2024 09:29
@avelad avelad merged commit a8bbbce into shaka-project:main Jan 9, 2024
12 of 16 checks passed
@avelad avelad deleted the vmap-muted branch January 9, 2024 09:45
avelad added a commit that referenced this pull request Jan 9, 2024
avelad added a commit that referenced this pull request Jan 9, 2024
joeyparrish pushed a commit that referenced this pull request Feb 17, 2024
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 9, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 9, 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: 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.

Ads don't work in iOS (but work when "Request desktop site" is on) (VMAP) ads won't play in muted autoplay
3 participants