Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

How can I play a midi file in a page?

How can I play a midi file in a page? What programmig do I need?
0
DImirC
Asked:
DImirC
  • 3
  • 2
1 Solution
 
dkjariwalaCommented:
This doesnt relate to PHP. Anyways you can do something like,


<embed src="yourmidifile.mid" width=32 height=32 autostart=true>


This will play the specified file and it will start playing automatically.

If u want MIDI to be played as background use following inbetween HEAD tags.

<head>
<BGSOUND SRC=" MIDI-filename.mid" loop="infinite">
</head>

JD
0
 
DImirCAuthor Commented:
Are those solutions both valid for IE and Netscape?
0
 
DImirCAuthor Commented:
Are those solutions both valid for IE and Netscape?
0
 
DImirCAuthor Commented:
Also does the visitor need any plugin?
0
 
dkjariwalaCommented:
Yeah, IE and netscape it will work.

And most of the browser do have MIDI playback support. So I dont think u will face problem.

JD
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now