browser

Playing sound from INACTIVE browser tab

社会主义新天地 提交于 2021-01-17 23:46:59
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

半腔热情 提交于 2021-01-17 23:40:00
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

旧时模样 提交于 2021-01-17 23:36:52
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

╄→гoц情女王★ 提交于 2021-01-17 23:36:12
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

蹲街弑〆低调 提交于 2021-01-17 23:33:01
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

对着背影说爱祢 提交于 2021-01-17 23:32:38
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

Playing sound from INACTIVE browser tab

落花浮王杯 提交于 2021-01-17 23:31:23
问题 I have a control panel for restaurants and it plays an alert sound when an order is given. The problem is that when the control panel tab is not the active tab in Chrome (it's also same for Firefox) the alert sound doesn't play. After clicking the tab it plays the sound. I see some sites (Facebook Chat, Cloudstats.me server alert, ...) play sound even if they are in inactive tab, so what is the workaround for this problem? 回答1: Had a similar thing happen to me as well, we were trying to play

How do I access a *dependent* UMD library from within a web browser?

你离开我真会死。 提交于 2021-01-07 02:47:51
问题 I'm trying to separate out two large optional pieces of a library so the user doesn't have to load them unless they're needed. Trying to sort out the interdependencies with webpack, however, is driving me crazy. Getting the main part of the library working hasn't been a problem, but making the optional pieces work is going nowhere fast. Here's just one of many webpack configurations that I've tried: const umdConfig = env => { return { mode: env?.dev ? 'development' : 'production', target:

How to get the video card driver name using javascript browser side?

纵饮孤独 提交于 2021-01-03 04:32:27
问题 I want to get a string like: Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) Only using javascript on the browser. I know that a library from augur.io can find that value but I need a open source solution or to know what js method can be used. 回答1: You can use WebGL's WEBGL_debug_renderer_info extension. Though (a) the user might not have WebGL and (b) the extension might not be available depending on the browser. function getVideoCardInfo() { const gl =

How to get the video card driver name using javascript browser side?

让人想犯罪 __ 提交于 2021-01-03 04:31:38
问题 I want to get a string like: Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) Only using javascript on the browser. I know that a library from augur.io can find that value but I need a open source solution or to know what js method can be used. 回答1: You can use WebGL's WEBGL_debug_renderer_info extension. Though (a) the user might not have WebGL and (b) the extension might not be available depending on the browser. function getVideoCardInfo() { const gl =