首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不允许启动AudioContext。必须恢复(或创建)

不允许启动AudioContext。必须恢复(或创建)
EN

Stack Overflow用户
提问于 2021-05-31 16:42:55
回答 1查看 86关注 0票数 0

因此,由于某种原因,我的脚本在运行它时会给出当前的错误。这是一个打开浏览器的selenium项目,headless.It工作得很好。

代码语言:javascript
复制
DevTools listening on ws://127.0.0.1:50010/devtools/browser/a0bd7321-8810-4867-9a1a-44830cabb881
[0531/093705.662:INFO:CONSOLE(483)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (483)
[0531/093705.665:INFO:CONSOLE(483)] "The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://developers.google.com/web/updates/2017/12/audio-worklet)", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (483)
[0531/093705.668:INFO:CONSOLE(487)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (487)
[0531/093705.668:INFO:CONSOLE(488)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (488)
[0531/093705.669:ERROR:web_contents_delegate.cc(225)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.

我打算把这个网站叫做“the”,因为它是私有的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-31 23:56:55

所以我找到了错误和信息的答案:CONSOLE。

对于我刚才添加的错误:

代码语言:javascript
复制
options.add_argument("--use-fake-ui-for-media-stream")

对于信息:控制台:

代码语言:javascript
复制
options.add_argument("--log-level=3")
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67770491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档