Solved

How can I play a midi file in a page?

Posted on 2002-07-05
5
161 Views
Last Modified: 2008-03-06
How can I play a midi file in a page? What programmig do I need?
0
Comment
Question by:DImirC
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
dkjariwala earned 100 total points
ID: 7132660
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
 

Author Comment

by:DImirC
ID: 7132829
Are those solutions both valid for IE and Netscape?
0
 

Author Comment

by:DImirC
ID: 7132830
Are those solutions both valid for IE and Netscape?
0
 

Author Comment

by:DImirC
ID: 7132836
Also does the visitor need any plugin?
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 7133513
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now