I need detect all sound in webpage with banners. How I can do this? I look to PhantomJS, but can't find a API for browser sound.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
PhantomJS (1.x and 2) doesn't support either Flash, <video>
or the <audio>
element. There is no way to detect sound, because there isn't any.
From the docs:
Support for plugins (such as Flash) was dropped a long time ago.
and
Video and Audio would require shipping a variety of different codecs.