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 5933237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:56:44+00:00 2026-05-22T14:56:44+00:00

Either my webserver at codejanitor is not designed for streaming? or maybe I’m doing

  • 0

Either my webserver at codejanitor is not designed for streaming? or maybe I’m doing something wrong?

I’ve tried the following two approaches:

try {
            mp = MediaPlayer.create(
                    AmazonClipActivity.this, 
                    Uri.parse("http://codejanitor.us/good.mp3"));
            mp.setOnPreparedListener(new OnPreparedListener() {
                @Override
                public void onPrepared(MediaPlayer mp) {
                    mp.start();

                }
            });
        } finally {
            if(mp!=null) {
                mp.release();
                mp =null;
            }
        } 

AND

try {
            mp = MediaPlayer.create(
                    AmazonClipActivity.this, 
                    Uri.parse("http://codejanitor.us/good.mp3"));
            mp.start();
        } finally {
            if(mp!=null) {
                mp.release();
                mp =null;
            }
        } 

AND both produce:

05-19 12:27:48.104: DEBUG/MediaPlayer(1730): Couldn't open file on client side, trying server side
05-19 12:27:48.104: INFO/StagefrightPlayer(68): setDataSource('http://codejanitor.us/good.mp3')
05-19 12:27:48.104: INFO/NuHTTPDataSource(68): connect to codejanitor.us:80/good.mp3 @0
05-19 12:27:53.653: INFO/NuCachedSource2(68): ERROR_END_OF_STREAM
  • 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-22T14:56:45+00:00Added an answer on May 22, 2026 at 2:56 pm

    Read this topic. None of the answers are marked, but there are a few solutions to how to get MediaPlayer to stream from a URL.

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

Sidebar

Related Questions

either I'm missing something or the ( patterns & practices Composite Application Guidance for
Either I missed some backlash or backlashing does not seem to work with too
I want to call Java from PHP 5.2, running either on a webserver or
If I'm not wrong, to create or delete a file from a directory, you
I have two applications on my webserver. myserver.com/ApplicationA myserver.com/ApplicationB Both applications are using similar
Consider I have two hosts A and B. They both have a webserver on
Either I had a bad dream recently or I am just too stupid to
Either for comparisons or initialization of a new variable, does it make a difference
Either of these options would be fabulous: Send a bitmap image of the stage's
In either a Windows or Mac OS X terminal if you type... nslookup -type=SRV

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.