Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4610620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:09:25+00:00 2026-05-22T01:09:25+00:00

What I am looking to do is create a simple Java audio streaming server.

  • 0

What I am looking to do is create a simple Java audio streaming server. To keep things simple it will just be static MP3 files but I’m sure the theory transfers. Clients can be local or over Internet and can be any device or computer that can be programmed to communicate with the server.

I have never programmed anything related to streaming/networking or server/client before so I thought this would be a useful exercise to learn something new.

Things I think there are to consider:

  • Authentication of client – how will this be done, how will the server know that user is the intended user.

  • There will be some sort of buffering on the client. When the client is reading from the buffer there will likely be a file lock on the cached buffer file, so I won’t be able to simply append the new segment of the file to the end.

  • How much of an MP3 file do you actually need to play it? Is it linear, so the first x KB contains all the information of the first y seconds of the music sounds.

  • What size segments do I stream the file in?

  • Is it possible to know how far you are through an MP3 file in a stream? How would this be dealt with?

  • What protocol to I actually use to stream? I’m assuming some sort of HTTP request would be best here? It is possible to do a HTTP Request over a port other than 80 isn’t it?

  • Does Java have inbuilt protocols for reliable transmission or do you have to get into the nitty-gritty and deal with sending packets back and forth with acknowledgements…etc…

  • Is it possible to encrypt the traffic? With enough security for the file not being read, but not so much that low powered devices such as mobiles can’t decrypt it fast enough for smooth playback.

I am sure there are a lot more things I need to consider, but those are the other ones I can think of off the top of my head.

I suppose in all the above there isn’t really a question, it was more thinking aloud, so I guess why questions are: where do I start? are there any interesting reads? does anyone have any thoughts on the above?

Just to reiterate, I AM looking at “re-inventing the wheel” here, I wanted to learn about this sort of stuff as I went along so I can transfer the knowledge onto other stuff.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:09:26+00:00Added an answer on May 22, 2026 at 1:09 am

    What protocol to I actually use to
    stream? I’m assuming some sort of HTTP
    request would be best here? It is
    possible to do a HTTP Request over a
    port other than 80 isn’t it?

    yes you can go over another port than 80 (using the notation http://streamserver.com:8080/path/to/music.mp3 )

    Does Java have inbuilt protocols for
    reliable transmission or do you have
    to get into the nitty-gritty and deal
    with sending packets back and forth
    with acknowledgements…etc…

    it has if you are using http

    Is it possible to encrypt the traffic? With enough security for the
    file not being read, but not so much
    that low powered devices such as
    mobiles can’t decrypt it fast enough
    for smooth playback.

    standard SSL encrypted connections are fast enough and secure enough for your

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to create favicon.ico files programatically from Python, but PIL only has support
I'm looking for as simple way to create an identity set. I just want
I am looking to create symlinks (soft links) from Java on a Windows Vista/
I'm looking to create XML Document objects in Java and serialize them to a
I am trying to create a simple 3-D app for android that will have
I'm looking for the most basic solution to create multiple indexes on a Java
I'm looking for a simple method of converting between java.util.Date and javax.xml.datatype.XMLGregorianCalendar in both
Background Looking to leverage an existing web framework to create a simple data-driven user
I'm looking to learn how to throw a super simple exception in java. I
I'm a Java/.NET developer but on my spare time I've started looking into WordPress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.