Bad midi file , expected 'Mhdr' #41
-
Hello! I don't know what happened that. The same midi works in the https://cifkao.github.io/html-midi-player/ but in my own website show that message "Bad midi file , expected 'Mhdr'". Help me please! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi! Can you provide more details please? What is your setup? If you are loading your MIDI file from a URL, my guess would be that your server is not serving the file properly, perhaps returning an error page instead. You can use your browser's developer tools (Network tab) to check what file is actually being transferred. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. If you load your file from somewhere in the wwwroot folder - like me - make sure to leave out the "~/" at the start of the path in the src attribute. |
Beta Was this translation helpful? Give feedback.
Hi! Can you provide more details please? What is your setup?
If you are loading your MIDI file from a URL, my guess would be that your server is not serving the file properly, perhaps returning an error page instead. You can use your browser's developer tools (Network tab) to check what file is actually being transferred.