Why MediaPlayer throws NOT present error when creating instance of it?

antifriz picture antifriz · Jul 1, 2014 · Viewed 37.6k times · Source

When creating an instance of MediaPlayer LogCat shows this error:

QCMediaPlayer mediaplayer NOT present

Why is that and is it normal?

Sample:

package com.example.testapp;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;



public class MainActivity extends Activity{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MediaPlayer mediaPlayer = new MediaPlayer();
    }
}

Answer

alexuz picture alexuz · Jul 31, 2014

It means your platform does not support QCMediaPlayer. QCMediaPlayer provides extended APIs and interfaces to get and set MPD attributes for DASH protocol in compatible Snapdragon builds. So, this error should not affect on media playing in normal case

Check this sources to find out more details:

QCMediaPlayer.java