Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bhennies

macrumors 6502
Original poster
Mar 20, 2004
435
0
NYC & Baltimore
Hi all...

sorry if this question is basic, but I'm looking to create a streaming audio on the index page of a record label site I'm working on (the mp3 will play on load). I would like to avoid using a proprietary format like flash or real or windows player...

I like how on the ninjatune page (http://www.ninjatune.net) it appears they've used CSS to control the audio.

Any pointers as to how I can achieve this effect?

(p.s. using dreamweaver)

thanks!
 
The audio controls on that page are indeed done in flash.

Code:
Coldcut - Christmas Break<br><br><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
	ID=interface WIDTH=228 HEIGHT=35><PARAM NAME=movie
VALUE=ninjafrontpageaudio.swf?soundoff=0&file=98><PARAM NAME=quality VALUE=AUTOHIGH><PARAM NAME=bgcolor VALUE=#000000>

If you right click on the "Audio Off" link, you will see it is a flash file. I was going to recommend using flash anyway, although there may be a way to do it without flash. You can probably do something similar using javascript, but css won't help you.
 
you could do this in flash very easily, with no prior experience. you could do it in html, using embed tag i think, and it uses quicktime controls within your browser. dont know that code off the top of my head, but my roommate uses it often.
 
cool. thanks guys. I'll probably just end up doing it in flash. No big deal. I just thought it was quite simple and classy looking with that style sheet- like effect.

Thanks!
 
I had to struggle with this same issue as well. I decided to use Active X, but quickly realized that this wasn't the best method, as OS X doesn't support it. Flash would have taking 5 days to do each song and album, so I used .M3Us. Flash is probably best if you only have a few songs. Make sure your hosts supports the right mime types for .m3u's or .pls if you decide to use it.
 
IMO flash is the best for any type or rich media web content including video, because everyone has the flash player installed, and if not they should.
 
rozwell said:
IMO flash is the best for any type or rich media web content including video, because everyone has the flash player installed, and if not they should.

Very true, and FireFox makes it so easy now... Maybe someday people will listen to Walt Mossberg...
 
hi all, so I built a little audio player in flash, and it seems to be working ok, but it stutters sometimes while streaming. I used a 160 kbps mp3, which is about the lowest quality I can tolerate, and it still doesn't seem to come fast enough. BTW, I have the audio set up for "stream" in keyframe 1 of my flash file. It doesn't seem to ever stutter on any of the other sites (ninjatune etc.). What could the reason be for this? You can check out my page if you like here:

http://www.bhennies.com

Thnx
 
rozwell said:
IMO flash is the best for any type or rich media web content including video, because everyone has the flash player installed, and if not they should.

I agree until you have to rip/code/intall 1000's of tracks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.