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

  • SEARCH
  • Home
  • 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 8079721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:11:56+00:00 2026-06-05T16:11:56+00:00

I want to build a basic Client-Server application, where my android smartphone can stream

  • 0

I want to build a basic Client-Server application, where my android smartphone can stream some audiofiles, which are saved on my local server.

For the client-server communication I started with a REST approach, so I’m using simple HTTP-GET Requests on android and PHP & MySQL on the server side. The HTTP-GET request gets returned an URL to play a specific file.

Afterwards I use this URL to start playing the file:

mp.setDataSource("http://127.224.2.222/music/filename.mp3");

In order to do that I saved the music folder right into my www directory of the ApacheWebserver.

Is the REST approach the right way to do it?

What about security concerns, how can I prevent that people download the files?(i.e. I think its quite easy to see the files in a browser, once someone knows the address of my httpget request)

For streaming the music, right now Im using this simple HTTP approach – what are the advantages of an RTSP connection?

  • 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-06-05T16:11:58+00:00Added an answer on June 5, 2026 at 4:11 pm

    For authentication of your webservice, check out OAuth2.0, which is the de-facto standard to do it. If OAuth is too much for your program, you may add a simple token in the URL. This still leaves you wide open to a range of snooping attacks, but does add a little protection.

    As for the approach: A http request will simply download the file at top download speed (while sacrificing latency) and buffer it on your phone. An RTP (RTSP is actually a different protocol for controlling a device rather than streaming media over the network) connection has a lot more protocol specifications for RealTime streaming as a low latency and only requesting the next x data packets needed for the buffer. In other words, http will simply get the job done, while RTP is a more elegant solution.

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

Sidebar

Related Questions

I want to build a backend application to push messages from server to android
I want to build a fairly simple Android application. The basic data model of
I have build a basic blog application, where an admin can write the article
I'm trying to build a basic application which will have 2 separate components which
I want to build an API service using Django. A basic workflow goes like
I want to build a hybrid app can run on all devices. I use
I want to build a Cocoa application using the Model-View-Controller design pattern. I have
I have a client application that connects to a server. The server uses hibernate
We are developing an application that has an iPhone client, and a Rails server.
I'm building a solution for a client which allows them to create very basic

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.