Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
Questions on Sp2001 P3 Milestone
When we are designing a web-based JukeBox, does that mean it starts playing on the server, or that it starts playing on the client's browser, or both? -PatrickParker
Just on the client's browser. Feb. 27 and March 1 will be the lectures on building interfaces for the Web, but here's the basic process.
The browser takes care of the rest. Mark Guzdial
- You return from the server to the client the appropriate MIME type. For MIDI it's audio/x-midi. For MPEG, it's audio/x-mpeg.
- You return the binary data.
(also posted to newsgroup)
we've been batting around ideas about how the web browser is supposed to
play an mp3 and haven't gotten very far. In each case, it comes to a
question of "Well, how do we stop the stream? How do we send the next
If we send an "audio/x-mpeg" HTTP header and then the MP3 file, the
browser will download the file and then open a header app to play the
mp3. That's only good for one song.
If we want stopping and whole play list playing from a web browser,
we're going to have to either send the entire play list as one big WAV
file, which I think is infeasible, or have some proprietary streaming
plug-in for each browser. I mean, really, what's a good answer to this?
We contemplated using HTML's Refresh feature to get the next song
playing, but if we're sending an MP3 file, we just get to send an MP3
file, not a Refresh message as well. That's only with an HTML response
to a POST message.
Dude, do you expect us to port IceCast/ShoutCast?
That's a bit more than returning audio/x-mpeg. If
you want full functionality as M2 in M4, then you
really need to (as far as I know) implement a
streaming format like ShoutCast's. Returning
an audio/x-mpeg will just return a single file, which
the user will download and then play on their own
in winamp/xmms/whatever. If you want control of the
sound from the server, then you need something
like audio/x-audiocast, implement ShoutCast's
functionality in the server, and either:
- write a user-side plug-in that can handle playing not just mp3 streams, but other formats as well, or
- (2) write code on the server that converts each file type to mp3.
for the student registration system..how is the coding using C++.
Link to this Page