简体   繁体   中英

how can make http request in https

I need run http request in my website with https request.

This code play in my website with http: for example http://mywebsite.com but dont play in https: for example https://mywebsite.com .

<audio id="stream" controls preload="none" autoplay style="width: 400px;">
    <source src="http://185.88.177.45:9948/;" type="audio/mpeg">
</audio>
<script>
    var audio = document.getElementById('stream');
    audio.volume = 0.5;
</script>

How to play in https webiste?

Unfortunately, browser policy dictates that you must use HTTPS for your audio stream if you're using HTTPS for the page.

Older and free builds of SHOUTcast do not support HTTPS. Icecast does, and can be a drop-in replacement for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM