Google音频播放失败,报错 Resource interpreted as Document but transferred with MIME type audio/mpeg: "https://xxx.mp3"
解决问题: 加上 type="audio/mpeg"
playVoice(file) {
$('#voice').html('<audio controls="controls" id="audio_player" style="display:none;"> <source src="' + file + '" > </audio><embed id="MPlayer_Alert" src="' + file + '" loop="false" width="0px" height="0px" /></embed>');
},
网友评论