Page 1 of 1
PHP Audio preview functionality
Posted: Fri Jul 31, 2009 8:22 am
by code-ape
Hey guys! First time poster here.. Nice forum!
So yea, i've been wanting to do an audio preview in php but i'm not finding much! Could it be that this type of functionality is usually done using Flash? Does anyone here know of any libraries or Open Source made libraries?
Any info would be a great help!
Thanks guys
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 10:18 am
by jackpf
This wouldn't be done with php. PHP is parsed on the server....
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 10:36 am
by pickle
I think technically it's possible in PHP, but in no way worth the trouble.
This is usually done in Flash. There are quite a few players out there that you can easily use.
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 10:47 am
by jackpf
What??! How the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> would you do this with PHP?
xD
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 11:35 am
by code-ape
Thanks for the replies,
Yea, i know most of it is javascript or flash but was just wondering if there was already anything done in the backend using php.
I know this isn't a Flash forum, but if you guys know of any good flash players, please post!
Thanks again
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 11:38 am
by pickle
jackpf wrote:What??! How the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> would you do this with PHP?
I don't know off the top of my head, but it would involve reading the source audio file byte by byte, doing some conversion, then sending audio to the browser in a way it could understand - like mimicing an MP3 or something.
By no means simple, but I think if someone really wanted to, it could be done.
Re: PHP Audio preview functionality
Posted: Fri Jul 31, 2009 12:12 pm
by jackpf
Hmm....I think I'd have to see it to believe it
