HTML5 <audio> OSX Safari ERROR Stream

I have the standard width of an HTML5 document, the audio tag received in the streaming 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>

It works fine in Chrome, Firefox, and Mobile Safari, but Safari on OSX says:

Script execution is blocked in ' http: // localhost / audiostream / ', because the document frame is sandboxed and the permission 'allow-scripts' is not allowed.

The sandbox is '[URL: PORT]' because it uses HTTP / 0.9.

Canceled resource loading from "[URL: PORT]" because it uses HTTP / 0.9, and the document was downloaded with a different version of HTTP.

Failed to load resource: Canceled loading of resources from "[URL: PORT]" because it uses HTTP / 0.9 and the document was downloaded with a different version of HTTP.

- , ?

+4

Source: https://habr.com/ru/post/1658458/


All Articles