Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Always allow muted autoplay (#3357)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored May 15, 2020
1 parent 48e1688 commit 3c2ee5d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ public void onContentPermissionRequest(GeckoSession aSession, String aUri, int a
return;
}

if (aType == PERMISSION_AUTOPLAY_AUDIBLE || aType == PERMISSION_AUTOPLAY_INAUDIBLE) {
if (aType == PERMISSION_AUTOPLAY_INAUDIBLE) {
// https://hacks.mozilla.org/2019/02/firefox-66-to-block-automatically-playing-audible-video-and-audio/
callback.grant();
return;

} else if(aType == PERMISSION_AUTOPLAY_AUDIBLE) {
if (SettingsStore.getInstance(mContext).isAutoplayEnabled()) {
callback.grant();
} else {
Expand Down

0 comments on commit 3c2ee5d

Please sign in to comment.