This content has been marked as final. Show 2 replies
Maybe this may give you heads up into this. [Java Audio and Video Stream|http://www.onjava.com/pub/a/onjava/excerpt/jenut3_ch17/index.html]
ragedd wrote:No. You're just taking ideas from other popular streaming sites. It's certainly not a requirement.
First, I would have to embed a flash player, correct?
My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)The same way you would authenticate any website. Usually a database and a challenge/response. If they're not logged in, then instead of writing out the content, write out a 403 status code (or do something more graceful, such as redirect them to the login page).
Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).Just keep track of how much data you send to the OutputStream.