+ 4

How can I add MIDI music to my webpage?

15th Aug 2017, 5:30 PM
Safinaz Sayed
Safinaz Sayed - avatar
3 odpowiedzi
+ 7
Kuba Siekierzyński, is there a way to play a midi file in Code Playground from another website using PHP? I tried echo "embed src=\"$fileURL\" autoplay=true"; but it looked for the midi in ../Playground/ I don't know what I'm doing but thought it could work in this context. https://code.sololearn.com/we7W2j7yfnAL/?ref=app
9th May 2019, 5:13 PM
boneSpider
boneSpider - avatar
+ 5
You can use <embed src="music.mid"> and set autoplay to true. But please reconsider. Playing a background music on the website is not considered user friendly :) Unless you really know what you're doing...
15th Aug 2017, 5:36 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
thank you.
15th Aug 2017, 5:40 PM
Safinaz Sayed
Safinaz Sayed - avatar