javascript - WordPress Revolution slider : Unmuting failed and the element was paused instead because the user didn't interact with the document before

标签 javascript wordpress slider revolution-slider

当我遇到以下 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/

相关文章:

javascript - 语法错误 : import not found: default when defining a js class

php - Datatables 中的 WordPress 用户,具有排序、搜索和分页功能

r - 一个 sliderInput 上的多个范围

javascript - 我如何在请求模块中进行response.write

javascript - 我需要一些关于如何实现惯性的指导

Javascript - 将日期时间转换为时间戳,然后返回日期时间

html - 有没有办法在 WordPress 相关帖子的侧边栏上集成动态内容?

javascript - 将 PHP 关联数组转换为 json 对象

javascript - 达到最大宽度后如何停止动画

jquery - 创建一个带有自定义图标的全宽 slider 作为分页