我让youtube播放器在iframe中自动静音,并具有取消静音按钮,并且我按下该按钮时会调用unMute()。但是我收到此错误:
Unmuting failed and the element was paused instead because the user didn't interact with the document before
这里是页面的链接:
https://video.inpwrd.net/college-prep-dont-go-it-alone/48ebe783-bcc4-4b96-9ba5-aff3db5f13df
在iframe外部有效。这绝对是一个错误,因为我坚持自动播放静音策略。这是堆栈跟踪:
Unmuting failed and the element was paused instead because the user didn't interact with the document before
g.h.xk @ base.js:6951
jya @ base.js:4586
yQ @ base.js:4585
Fna @ base.js:3091
g.h.unMute @ base.js:6718
a.F.(anonymous function) @ base.js:3082
g.h.handleExternalCall @ base.js:6698
a.C.(anonymous function) @ base.js:3086
(anonymous) @ www-embed-player.js:526
k.la @ www-embed-player.js:609
k.La @ www-embed-player.js:598
ii.B @ www-embed-player.js:594