Solved

How can I play a midi file in a page?

Posted on 2002-07-05
5
163 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

832 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