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 ads starting muted behavior #5153

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

theodab
Copy link
Collaborator

@theodab theodab commented Apr 14, 2023

Previously, we would set the starting volume of an ad to 0 if the main video is muted.
This had the problem that, because of how our custom mute/unmute functionality on ads worked, that would lead to the "unmute" button setting the ad to the "last volume" of 0.
This changes the ads manager to, instead, set the volume of the ad to the volume of the video, and then call the mute function if the ad is muted. That way, the ad will remember the previous volume of the video, and will be able to unmute properly.

Closes #5125

Previously, we would set the starting volume of an ad to 0
if the main video is muted.
This had the problem that, because of how our custom mute/unmute
functionality on ads worked, that would lead to the "unmute" button
setting the ad to the "last volume" of 0.
This changes the ads manager to, instead, set the volume of the
ad to the volume of the video, and then call the mute function if
the ad is muted. That way, the ad will remember the previous volume
of the video, and will be able to unmute properly.

Closes shaka-project#5125
@theodab theodab 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 labels Apr 14, 2023
@theodab theodab merged commit 211624f into shaka-project:main Apr 14, 2023
@theodab theodab deleted the adMuteBranch branch April 14, 2023 22:17
joeyparrish pushed a commit that referenced this pull request Apr 26, 2023
Previously, we would set the starting volume of an ad to 0 if the main
video is muted.
This had the problem that, because of how our custom mute/unmute
functionality on ads worked, that would lead to the "unmute" button
setting the ad to the "last volume" of 0.
This changes the ads manager to, instead, set the volume of the ad to
the volume of the video, and then call the mute function if the ad is
muted. That way, the ad will remember the previous volume of the video,
and will be able to unmute properly.

Closes #5125
joeyparrish pushed a commit that referenced this pull request Apr 26, 2023
Previously, we would set the starting volume of an ad to 0 if the main
video is muted.
This had the problem that, because of how our custom mute/unmute
functionality on ads worked, that would lead to the "unmute" button
setting the ad to the "last volume" of 0.
This changes the ads manager to, instead, set the volume of the ad to
the volume of the video, and then call the mute function if the ad is
muted. That way, the ad will remember the previous volume of the video,
and will be able to unmute properly.

Closes #5125
joeyparrish pushed a commit that referenced this pull request Apr 26, 2023
Previously, we would set the starting volume of an ad to 0 if the main
video is muted.
This had the problem that, because of how our custom mute/unmute
functionality on ads worked, that would lead to the "unmute" button
setting the ad to the "last volume" of 0.
This changes the ads manager to, instead, set the volume of the ad to
the volume of the video, and then call the mute function if the ad is
muted. That way, the ad will remember the previous volume of the video,
and will be able to unmute properly.

Closes #5125
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
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 status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
2 participants