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

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

Introduction

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

Usage

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 */

From source file com.eng.arab.translator.androidtranslator.activity.NumberViewActivity.java

public class NumberViewActivity extends AppCompatActivity
        implements NumberListAdapter.CallbackInterface, MediaPlayer.OnPreparedListener {
    public static final long FIND_SUGGESTION_SIMULATED_DELAY = 250;
    private static final int REQUEST_CODE = 1234;
    private static final String SHARED_PREF_SEARCH_TEXT = "SEARCH_TEXT";
    private final String TAG = "BlankFragment";

From source file com.android.dialer.voicemail.VoicemailPlaybackPresenter.java

/**
 * Contains the controlling logic for a voicemail playback in the call log. It is closely coupled
 * to assumptions about the behaviors and lifecycle of the call log, in particular in the
 * {@link CallLogFragment} and {@link CallLogAdapter}.
 * <p>
 * This controls a single {@link com.android.dialer.voicemail.VoicemailPlaybackLayout}. A single

From source file com.yohpapa.research.simplemusicplayer.PlaybackService.java

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

    private static final String TAG = PlaybackService.class.getSimpleName();
    private static final String URI_BASE = PlaybackService.class.getName() + ".";
    private static final String ACTION_PAUSE = URI_BASE + "ACTION_PAUSE";