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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:26:08+00:00 2026-06-11T22:26:08+00:00

Assume the following: App sets MediaPlayer data source to a remote URL. (http://example.com/podcast.mp3). MediaPlayer

  • 0

Assume the following:

  1. App sets MediaPlayer data source to a remote URL. (http://example.com/podcast.mp3).
  2. MediaPlayer begins to stream mp3 over 3G. It buffers a bit more data than it is playing to ensure no pauses for buffering.
  3. Device loses connectivity briefly. MediaPlayer has streamed 40% of file, and buffered 50% of it.
  4. Device regains connectivity either through WIFI or 3G.
  5. MediaPlayer does not at this point, continue buffering the mp3 as far as I know.
  6. Once mediaplayer has reached 50% it stalls.

Unfortunately, without using a proxy, it’s not possible to download and stream an MP3 at the same time (or is it?). That being said, once it hits the stall point, is it possible to continue playing the mp3 with a new connection (if possible, seamlessly?). Is it possible to see how much of an mp3 has been buffered? Is it possible, once the connection is re-established, create a new MediaPlayer connection and “hand off” playback from the first connection to the next?

  • 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-11T22:26:09+00:00Added an answer on June 11, 2026 at 10:26 pm

    I can’t answer all of your questions, just putting here what I think I know.

    Is it possible to see how much of an mp3 has been buffered?

    Add the setOnBufferingUpdateListener listener, and in this method you can know how many percent is buffered.

    public void onBufferingUpdate(MediaPlayer mp, int percent) {
        Log.i(TAG, "onBufferingUpdate - percent=" + percent);
    
    }
    

    The above works for me for some streams, and don’t work for some other. I am still trying to figure out why.

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

Sidebar

Related Questions

I have the following preference screen in my app <PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android> <EditTextPreference android:key=edittexvalue android:id=@+id/edittextvalue
Assume the following scenario: All data are in Sql Server tables. 1) An Execute
Assume I have a CI app that does the following: Allow users to log
I'm following this tutorial http://codemagento.com/2011/03/creating-custom-magento-reports/ creating the simple report module. I have all the
Lets assume following classes definition: public class A { public final static String SOME_VALUE;
Assume the following situation <div> <div1> <divA> </divA> <divB> </divB> </div1> <div2> </div2> </div>
Assume the following scenario. I have two files A.cpp and B.cpp in trunk. At
assume this following function: int binaryTree::findHeight(node *n) { if (n == NULL) { return
Assume the following: we have class B, which is a private class nested inside
Assume the following function prototype: void *function(int arg) . Is that a pointer to

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.