HTML5 <audio> 流 OSX Safari 错误

HTML5 <audio> stream OSX Safari ERROR

我有一个标准的 HTML5 文档宽度,一个音频标签来自流媒体 -url。

<audio controls="controls" autostart="0" src="[URL:PORT]/;"></audio>


<script type="text/javascript">

    window.addEventListener("play", function(evt)
    {
        if(window.$_currentlyPlaying)
        {
            window.$_currentlyPlaying.pause();
        }
        window.$_currentlyPlaying = evt.target;

    }, true);

</script>

它在 Chrome、Firefox 和移动版 Safari 中运行良好,但在 OSX 上的 Safari 显示:

Blocked script execution in 'http://localhost/audiostream/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

Sandboxing '[URL:PORT]' because it is using HTTP/0.9.

Cancelled resource load from '[URL:PORT]' because it is using HTTP/0.9 and the document was loaded with a different HTTP version.

Failed to load resource: Cancelled resource load from '[URL:PORT]' because it is using HTTP/0.9 and the document was loaded with a different HTTP version.

有人知道怎么了吗?

这显然是 Safari 10 独有的问题

https://support.apple.com/de-de/HT207157