I want to play audio which will be generated from a php script.
Client side:
<audio controls autoplay src="audio.php"></audio>
Server side:
$path = 'somefile.mp3';
header('Content-Type: audio/mpeg');
header('Cache-Control: no-cache');
header("Content-Transfer-Encoding: binary");
readfile($path);
It plays, but I can't change current the time in the audio element. The range slider is not working.