问题
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.
来源:https://stackoverflow.com/questions/31697239/how-can-detect-sound-on-webpage-with-javascript-in-phantomjs