Example usage for android.media MediaPlayer setOnInfoListener

List of usage examples for android.media MediaPlayer setOnInfoListener

Introduction

In this page you can find the example usage for android.media MediaPlayer setOnInfoListener.

Prototype

public void setOnInfoListener(OnInfoListener listener) 

Source Link

Document

Register a callback to be invoked when an info/warning is available.

Usage

From source file:com.shinymayhem.radiopresets.ServiceRadioPlayer.java

protected void initializePlayer(MediaPlayer player) {
    if (LOCAL_LOGV)
        log("initializePlayer()", "v");
    player.setOnPreparedListener(this);
    player.setOnInfoListener(this);
    player.setOnCompletionListener(this);
    player.setOnErrorListener(this);
    //player.setOnBufferingUpdateListener(this);
    return;/*w ww  .  j  a v a2s.c o m*/
}