0
나는 내 MIDI 페이지 (midid sound (.mid))를 재생하고 싶지만 그렇게하는 법은 모른다. 페이지에서 미디 사운드를 재생할 수있는 방법이 있습니까?내 HTML 페이지의 MIDI 사운드
이것은 코드입니다. 제가 작업하고 있습니다. https://mudcu.be/midi-js/
<audio>
요소를 지원하지 않습니다 나에게 내가
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML Layouts using DIV, SPAN</title>
</head>
<body>
<div style="width:100%">
<div style="background-color:#b5dcb3; width:100%">
<center><h1>Sonification</h1></center>
</div>
<div style="background-color:#aaa; height:2000px;width:610px;float:left;">
<center><img src="image\so.jpg" alt="Sonification"></center>
<br><br><br><br><br><br><br><br><br><br><br><br><br>
<center><h3>Sound_1</h3></center>
<table style="width:40%">
<tr>
<td><audio id="player" controls> <source src="audio\final.mid" type="audio/ogg"> <source src="final" type="audio/mpeg">Audio</audio>
</td>
<td><audio id="player" controls> <source src="audio\final.mid" type="audio/ogg"> <source src="final" type="audio/mpeg">Audio</audio>
</td>
</tr>
</table>
</body>
</html>
.mid 파일이 audio/ogg mimetype이 아닙니다. - 더 이상 midi 오디오가 지원되지 않는다고 생각합니다 (또는 플러그인이없는 경우). 아니면 경로의/대신 audio \ final.mid에 \있는 것일 수도 있습니다. 인터넷 및 Windows를 제외한 모든 OS는 경로 이름에 \ 대신 \를 사용합니다.) - audio/final.mid를 시도하십시오 ... 그러나 ogg 파일이 아니기 때문에 많은 희망을 가지지 않습니다. –