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

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

Introduction

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

Usage

From source file com.androidexperiments.tunnelvision.SplashScreenActivity.java

/**
 * Created by kylephillips on 7/14/15.
 */
public class SplashScreenActivity extends FragmentActivity implements MediaPlayer.OnCompletionListener {

    protected static final String TAG = SplashScreenActivity.class.getSimpleName();

From source file com.lamcreations.scaffold.common.activities.VideoSplashScreenActivity.java

public abstract class VideoSplashScreenActivity extends BaseActivity implements TextureView.SurfaceTextureListener,
        MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnPreparedListener,
        MediaPlayer.OnVideoSizeChangedListener, MediaPlayer.OnSeekCompleteListener {

    private static final String TAG = "VideoSplashScreen";

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 com.orange.ocara.ui.dialog.AudioPlayerDialog.java

@EFragment(resName = "dialog_audio_player")
public class AudioPlayerDialog extends BaseDialogFragment
        implements MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener {

    public static AudioPlayerDialog newInstance(String uri, int x, int y) {
        AudioPlayerDialog dialog = new AudioPlayerDialog_();

From source file de.escoand.readdaily.PlayerDialogFragment.java

public class PlayerDialogFragment extends DialogFragment implements Runnable, MediaPlayer.OnCompletionListener {
    private static final String STATE_DATE = "date";
    private static final String STATE_POSITION = "position";

    private ProgressBar progressBar;
    private TextView progressText;

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.spoilerfreehighlights.MainActivity.java

public class MainActivity extends AppCompatActivity implements MediaPlayer.OnCompletionListener {

    public final static String VIDEO_URL = "com.example.spoilerfreehighlights.VIDEO_URL";
    public final static DateFormat df = new SimpleDateFormat("yyyy/MM/dd");

    @Override

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 {