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 org.dharmaseed.android.TalkPlayerFragment.java

/**
 * Created by bbethke on 3/12/16.
 * This fragment retains a reference to the MediaPlayer used to play the talk,
 * so that the talk will keep playing on configuration changes like screen rotation
 * See http://developer.android.com/guide/topics/resources/runtime-changes.html#RetainingAnObject
 */

From source file com.dudka.rich.streamingmusicplayer.ServiceMusicPlayer.java

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

    public static final String INTENT_FILTER = "com.dudka.rich.streamingmusicplayer.localbroadcast.service";
    public static final String SERVICE_EVENT_MESSAGE = "serviceEventMessage";
    public static final int PLAY = 0x0;

From source file com.reallynourl.nourl.fmpfoldermusicplayer.backend.MediaService.java

/**
 * Copyright (C) 2015  Jannes Peters
 * <p/>
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or

From source file bala.padio.Player.java

public class Player extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener,
        AudioManager.OnAudioFocusChangeListener {
    public final static String PlayerStatusBroadcast = "player.status.name";
    public final static String PlayerStatusMessage = "status";

    private final static String TAG = "Player";

From source file org.y20k.transistor.PlayerService.java

/**
 * PlayerService class
 */
public final class PlayerService extends Service implements AudioManager.OnAudioFocusChangeListener,
        MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnInfoListener {

From source file com.customprogrammingsolutions.MediaStreamer.MediaStreamerService.java

public class MediaStreamerService extends Service implements MediaPlayer.OnPreparedListener,
        MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener, AudioManager.OnAudioFocusChangeListener {
    private final static String TAG = "MediaStreamer";

    public static final int AUDIO_FOCUS_DENIED_ERROR = 0;
    public static final int MEDIA_PLAYER_ERROR = 1;

From source file com.eggwall.SoundSleep.AudioService.java

/**
 * Runs the music in the background and holds a wake lock during the duration of music playing.
 */
public class AudioService extends Service
        implements MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener {
    /** The namespace of our application, used for qualifying local messages. */

From source file com.example.lzhang.stockchartt.media.playback.LocalPlayback.java

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

From source file ru.kudzmi.rajitaku.radioService.RadioService.java

public class RadioService extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener {
    private static final int NOTIFICATION_ID = 39;
    private MediaPlayer mPlayer;
    private AudioManager audioManager;
    private WifiManager.WifiLock wifiLock;
    private Handler mHandler = new UpdateHandler();

From source file com.mishiranu.dashchan.content.service.AudioPlayerService.java

public class AudioPlayerService extends Service implements AudioManager.OnAudioFocusChangeListener,
        MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, ReadFileTask.Callback {
    private static final String ACTION_START = "com.mishiranu.dashchan.action.START";
    public static final String ACTION_CANCEL = "com.mishiranu.dashchan.action.CANCEL";
    public static final String ACTION_TOGGLE = "com.mishiranu.dashchan.action.TOGGLE";