简体   繁体   中英

How can detect sound on webpage with JavaScript in PhantomJS?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM