List of usage examples for android.media MediaPlayer.OnCompletionListener interface-usage
From source file com.lithiumli.fiction.PlaybackService.java
public class PlaybackService extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener, AudioManager.OnAudioFocusChangeListener { public static final String EVENT_PLAYING = "com.lithiumli.fiction.PLAYING"; public static final String EVENT_PLAY_STATE = "com.lithiumli.fiction.PLAY_STATE"; public static final String DATA_SONG = "com.lithiumli.fiction.SONG"; public static final String DATA_STATE = "com.lithiumli.fiction.STATE";
From source file com.jlcsoftware.callrecorder.MainActivity.java
/** * Our MAIN Activity - MAIN LAUNCHER * */ public class MainActivity extends AppCompatActivity implements RecordingFragment.OnListFragmentInteractionListener,
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";
From source file com.teocci.utubinbg.BackgroundAudioService.java
/** * Service class for background youtube playback * Created by Teocci on 9.3.16.. */ public class BackgroundAudioService extends Service implements MediaPlayer.OnCompletionListener, MediaPlayer.OnPreparedListener {
From source file bupt.tiantian.callrecorder.callrecorder.MainActivity.java
/** * Our MAIN Activity - MAIN LAUNCHER */ public class MainActivity extends AppCompatActivity implements RecordingFragment.OnListFragmentInteractionListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener, MediaController.MediaPlayerControl {
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 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.google.fpl.gim.examplegame.MainService.java
/**
* This is a Runnable for executing on the UI thread, and will add itself back
* to the UI thread handler at the end of the run() function.
*
* While it will block the UI thread while running, it shouldn't block for that long.
* We could always make a game thread if needed.
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();