Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect if user has muted tab?

Chrome allows users to mute tabs, simply by right-clicking them and hitting Mute Tab. What I'm wondering is if there's a way to detect when a user has muted the tab.

To clarify, I'm wondering if there's a way for a website to detect when I've muted their tab.

like image 489
Ecksters Avatar asked Aug 10 '17 11:08

Ecksters


People also ask

How do I see muted sites on Chrome?

To mute a browser tab in Google Chrome, right-click it and select “Mute Site.” This will mute all tabs from the site in the future. To unmute them, right-click one of that site's tabs and click “Unmute SIte.”

How do you make a tab have no sound?

To mute a tab, just right-click the tab and select the "Mute" option. Google Chrome only lets you mute entire sites by default — to mute just an individual tab, you'll need an extension.

Where is the tab audio muting UI control?

You can try the new feature in the latest version of Chrome Canary by going to chrome://flags > Tab audio muting UI control > set it to Enabled. Once you enable this feature, Chrome will ask you to reboot. You will be able to see the new mute button after you restart the browser.

What is a muted tab?

Mute Tab is an extension that helps you quickly mute all tabs with just one button (click). The toolbar button serves as an ON|OFF switch, once pressed, the icon will change accordingly (the color and shape).


2 Answers

No, this is not possible in Google Chrome.

Such events can be recorded using low-level APIs expoosed by Chrome but it cannot be done via any of the Web APIs available.

like image 105
syntagma Avatar answered Oct 24 '22 01:10

syntagma


This is not possible for JavaScript on websites.

But, browser extensions can detect it using the Tabs API.

Learn more: https://developer.chrome.com/extensions/tabs#type-MutedInfo https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/Tabs/MutedInfo

like image 2
Musa Avatar answered Oct 24 '22 00:10

Musa