检测声音的Javascript [英] Detect Sound Javascript

查看:96
本文介绍了检测声音的Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法来检测某个页面是否正在使用JScript制造噪音?一些环境变量或东西,跟踪扬声器的状态?我试图写一个把一个图标上的Tab标题如果选项卡正在完善的脚本。

Is there any way to detect whether a certain page is making noise using jscript? Some sort of environmental variable or something that tracks the status of the speakers? I'm attempting to write a script that puts an icon on the Tab Title if that Tab is making sound.

推荐答案

没有,这是不可能的。

插件很多可以使声音,他们都做它自己的方式。有没有包罗万象的在这里。

Lots of plugins can make sound, and they all do it in their own way. There is no catch-all here.

也许在哪里使用Chrome等浏览器,使一个单独的进程为每个页面的应用程序时使用的声音实际上是保持轨道,和Vista / 7,你可能有更多的运气。这将涉及搞清楚哪些进程正在播放声音,然后计算出每个进程加载了什么网页。通过JavaScript虽然?没办法。

Perhaps on Vista/7 where applications sound usage is actually kept track of, and when using a browser like Chrome that makes a separate process for each page, you might have more luck. It would involve figuring out which processes are playing sound, then figuring out what page each process had loaded. Through JavaScript though? No way.

这篇关于检测声音的Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆