Example usage for android.media MediaPlayer.OnErrorListener interface-usage

List of usage examples for android.media MediaPlayer.OnErrorListener interface-usage

Introduction

In this page you can find the example usage for android.media MediaPlayer.OnErrorListener interface-usage.

Usage

From source file rocks.stalin.android.app.playback.RemotePlayback.java

/**
 * A class that implements local media playback using {@link android.media.MediaPlayer}
 */
public class RemotePlayback
        implements Playback, AudioManager.OnAudioFocusChangeListener, MediaPlayer.OnCompletionListener,
        MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnSeekCompleteListener {

From source file fm.krui.kruifm.StreamService.java

/**
 * Provides background streaming of KRUI audio streams as a foreground service.
 */
public class StreamService extends Service implements MediaPlayer.OnErrorListener, TrackUpdateListener {

    final private String TAG = StreamService.class.getName();

From source file com.example.android.supportv7.media.LocalPlayer.java

/**
 * Handles playback of a single media item using MediaPlayer.
 */
public abstract class LocalPlayer extends Player implements MediaPlayer.OnPreparedListener,
        MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnSeekCompleteListener {
    private static final String TAG = "LocalPlayer";

From source file com.mylovemhz.simplay.MusicService.java

public class MusicService extends Service implements MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener,
        MediaPlayer.OnPreparedListener, AudioManager.OnAudioFocusChangeListener {

    public static final String TAG_MUSIC_SERVICE = "Music Service";
    public static final int ID_NOTIFICATION = 1;
    public static final int TIME_FFWD_RWD = 10 * 1000;

From source file com.kasungunathilaka.sarigama.service.PlayerService.java

public class PlayerService extends Service
        implements MediaPlayer.OnCompletionListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener {

    private static final int NOTIFICATION_ID = 9999;
    private static final int REQUEST_CODE = 100;
    private final IBinder playerBinder = new PlayerBinder();

From source file com.baruckis.nanodegree.spotifystreamer.PlayerService.java

public class PlayerService extends Service
        implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener {

    // Service will respond to this action String
    public static final String RECEIVE_BROADCAST_INTENT_PAUSE = "com.baruckis.nanodegree.spotifystreamer.receive_broadcast_intent_pause";
    public static final String RECEIVE_BROADCAST_INTENT_NOTIFICATION = "com.baruckis.nanodegree.spotifystreamer.receive_broadcast_intent_notification";

From source file com.smedic.tubtub.BackgroundAudioService.java

/**
 * Service class for background youtube playback
 * Created by Stevan Medic on 9.3.16..
 */
public class BackgroundAudioService extends Service
        implements MediaPlayer.OnCompletionListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener {

From source file com.shahenlibrary.VideoPlayer.VideoPlayerView.java

public class VideoPlayerView extends ScalableVideoView implements MediaPlayer.OnPreparedListener,
        MediaPlayer.OnErrorListener, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener,
        MediaPlayer.OnInfoListener, LifecycleEventListener, MediaController.MediaPlayerControl {

    private ThemedReactContext themedReactContext;
    private RCTEventEmitter eventEmitter;

From source file org.amahi.anywhere.service.AudioService.java

/**
 * Audio server. Does all the work related to the audio playback.
 * Places information at {@link android.app.Notification} and {@link android.media.RemoteControlClient},
 * handles audio focus changes as well.
 */
public class AudioService extends Service implements AudioManager.OnAudioFocusChangeListener,

From source file com.simas.vc.editor.player.PlayerFragment.java

public class PlayerFragment extends Fragment
        implements View.OnTouchListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener,
        View.OnKeyListener, SurfaceHolder.Callback, Player.OnStateChangedListener, Controls.PlayClickOverrider {

    private static final int MAX_INITIALIZATION_RETRIES = 1;
    /* Instance state variables */