Re: [LAU] Audio in cgi?

From: david <gnome@email-addr-hidden>
Date: Sat Dec 12 2009 - 20:06:52 EET

Bob van der Poel wrote:
>> 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?

Maybe somebody else. I've never successfully gotten timidity to make a
sound, period, so I just install qsynth, set it to use a soundfont, and
forget it.

>> 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 :)

MP3/OGG/FLAC files play just fine for me from web pages. Just not MIDI.

-- 
David
gnome@email-addr-hidden
authenticity, honesty, community
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Sat Dec 12 20:15:06 2009

This archive was generated by hypermail 2.1.8 : Sat Dec 12 2009 - 20:15:06 EET