当我遇到以下 JavaScript 错误(在 Google Chrome 中)时,我试图在 ThemePunch Slider Revolution 5.4.2 中自动播放视频:
Unmuting failed and the element was paused instead because the user didn't interact with the document before. revolution.extension.video.min.js:7
最佳答案
OP 的回答:
在网上苦苦思索了 3 天后,我决定打开出现错误的脚本,即:
revolution.extension.video.min.js
我删除了整个第 7 行,即以下代码:
c=void 0!=c&&"mute"!=c?parseFloat(c)/100:c,d||(!0===e.globalmute?q.muted=!0:q.muted=!1,c>1&&(c/=100),"mute"==c?q.muted=!0:void 0!=c&&(q.volume=c)),a.addClass("videoisplaying");
这解决了我的问题!
关于javascript - WordPress Revolution slider : Unmuting failed and the element was paused instead because the user didn't interact with the document before,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51131597/