Ali_run
Ali_run

Reputation: 71

MediaPLayer gets errors

I used MediaPlayer with stream music from http

I have 2 questions:

  1. Is MediaPlayer play music in stream or it downloads music and play after it?

  2. Why i have this error in LogCat:

    MediaPlayer(3438): Couldn't open file on client side, trying server side

    But after sec or 2 music starts to play.

Upvotes: 0

Views: 2078

Answers (1)

Siarhei
Siarhei

Reputation: 194

  • It uses progressive streaming. See http://developer.android.com/guide/appendix/media-formats.html
  • From what I see it is a debug statement and not an error. This is where it comes from: MediaPlayer.java: Log.d(TAG, "Couldn't open file on client side, trying server side");. It seems that it is trying to find the URI locally and only when not found sets the media URI in the datasource (read - opens network connection).

Upvotes: 2

Related Questions