【发布时间】:2017-09-20 09:29:24
【问题描述】:
自上次 Google Chrome 更新 58.0.3029.81 以来,我的代码不再可用:
<audio id="player" src="http://serverip/stream.m3u" type="audio/mpeg"></audio>
<div>
<button onclick="document.getElementById('player').play()">Play</button>
<button onclick="document.getElementById('player').pause()">Pause</button>
<button onclick="document.getElementById('player').volume += 0.1">Vol+ </button>
<button onclick="document.getElementById('player').volume -= 0.1">Vol- </button>
</div>
我可以确认上述代码在另一台装有旧版 Google Chrome 50.0.2661.95 的笔记本电脑上运行良好。我还检查了带有 Safari 的 MacBook,它也可以正常工作。
如果有人能提供一些启发,我将不胜感激,因为我真的很难找到一个可行的解决方案。
非常感谢您的帮助!
【问题讨论】:
-
兄弟,它的工作。我还使用了 58.0.3029.81 版(64 位)......并且它在我的浏览器中运行良好。 .
-
重置您的浏览器设置 .. Chrome 并重试 .. 它工作正常
-
chrome://settings/search#reset ... 并重置您的浏览器设置...
-
我试过没有运气。我现在很挣扎:(
标签: html google-chrome audio