如何在 PhantomJS 中使用 JavaScript 检测网页上的声音?
How can detect sound on webpage with JavaScript in PhantomJS?
我需要检测带有横幅的网页中的所有声音。我该怎么做?
我查看 PhantomJS,但找不到 API 浏览器声音。
PhantomJS(1.x 和 2)不支持 Flash、<video>
或 <audio>
元素。没有办法检测声音,因为没有。
来自docs:
Support for plugins (such as Flash) was dropped a long time ago.
和
Video and Audio would require shipping a variety of different codecs.
我需要检测带有横幅的网页中的所有声音。我该怎么做? 我查看 PhantomJS,但找不到 API 浏览器声音。
PhantomJS(1.x 和 2)不支持 Flash、<video>
或 <audio>
元素。没有办法检测声音,因为没有。
来自docs:
Support for plugins (such as Flash) was dropped a long time ago.
和
Video and Audio would require shipping a variety of different codecs.