1
私は再生音に問題があります。 コンソールにエラーは表示されません。私は、PHPスクリプトからファイルを取得し、このヘッダーを設定:IE再生しないmp3をPHPスクリプト
JSで$mime_type = "audio/mpeg";
header("Content-Type: {$mime_type}");
header('Content-Length: '.filesize($file));
readfile($file);
:
audio.src = source;
audio.load();
audio.addEventListener('canplay', function(){
audio.play();
}, true);
PHPスクリプトにsource
パスで。