[LAU] Audio in cgi?

Bob van der Poel bob at mellowood.ca
Sat Dec 12 11:30:43 EST 2009


> I'm not clear about something here. You're running a CGI script to play
> MIDI files. But doing that would only make them play on your server -
> not the visitor's computer.
>

Sorry for not being clear ... I was thinking of using this as part of
the docs for the program stored on a local computer. My brain hadn't
gone to the point of remote computers, etc.

But, I suppose it all applies the same way ... if I've got a cgi
script, then that implies I'm running a server. And I am, just that
right now it's on my box in my office :)

> not everyone's system comes setup to play MIDIs ... my system plays
> MIDIs - when I fire up QSynth to do so - but even then it won't play
> MIDIs from a web page (always reports there's no plugin to play MIDI). I
> have to view source, download the MIDI file - then I can play it.

Yeah. I get the same issue when I visit remote sites. I must enable
timidity as a server and try some of the remote files. I don't know if
that is the issue or if it is a matter of setting up the file
associations in my browser ... anyone have success on this?

>
> Perhaps in your CGI scripting you could have it "play" the MIDI to an
> OGG or MP3 file and have THAT file play on the page?

Yeah, that's simple enough to do. Then I need a player for the
ogg/mp3. Oh I know ... I can use flash to play that :) Opps, cross
threading :)

>



-- 
**** Listen to my CD at http://www.mellowood.ca/music/cedars ****
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bob at mellowood.ca
WWW:   http://www.mellowood.ca



More information about the Linux-audio-user mailing list