Caching the live stream on pause

orangia

New Member
I use this code for our website to play our radiostation:
Code:
<audio preload="auto" controls="controls">
<source src="https://uk5.internet-radio.com/proxy/radiovattervag?mp=/stream" type="audio/mp3" /></audio>

When I click on the pause button and then start it again, I want it to start from where it is in the stream, not where I was listening before. It is like a cache kicks in there. I also don't like that it is possible to download the file.


I have also tried the web player widget with this code:
Code:
<div class="cc_player" data-username="radiovattervag">Loading ...</div>
Before the </body> tag:<script language="javascript" type="text/javascript" src="https://control.internet-radio.com:2199/system/player.js"></script>

This does not use the https url in the script, so that does not work either. And also, it plays two different things at the same time? I want it to buffer first then start the live steam. Also, I get this message:
Code:
Error: Media URL could not be loaded. Check media URL is valid. (e_url context http://uk5.internet-radio.com:8199/stream) N

Thank you for help!
 
Last edited:

orangia

New Member
Thank you MedwayRadio for an answer!

Our website is this: https://radiovv.com/new/ (I'll remove the /new/ when I have solved this issue), it is in swedish but you can see the two players in the bottom of the page.

I am not using an installed player, only the codes from internet-radio in the first player and then this (now changed preload) code:
Code:
<audio preload="none" controls="controls">
<source src="https://uk5.internet-radio.com/proxy/radiovattervag?mp=/stream" type="audio/mp3" /></audio>

I have tried in both Firefox, Chrome and Edge. The first code from internet-radio works in Firefox but gives an error code in Edge and Chrome.
Code:
Error: Media URL could not be loaded. Check media URL is valid. (e_url context http://uk5.internet-radio.com:8199/stream) N

Thank you again for help!
 

orangia

New Member
I have checked the page before but it doesn't answer my problem, unfortunately. The code from inside internet-radio is the code that has the http source in it, and it should work on all browsers. Well, I need to have https, not worthy beeing a web developer if I don't.. ;) And the code <audio></audio> doesn't make the radio start after a pause as I would like it to. I don't like the downloading part either..
 
Top