How can detect sound on webpage with JavaScript in PhantomJS?

后端 未结 1 465
灰色年华
灰色年华 2021-01-28 08:50

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条回答
  • 2021-01-28 09:19

    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.

    0 讨论(0)
提交回复
热议问题