List of usage examples for android.media MediaPlayer.OnPreparedListener interface-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.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 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 com.ecoplayer.beta.MusicService.java
public class MusicService extends Service implements MediaPlayer.OnPreparedListener { public static final String MUSIC_UPDATE = "com.ecoplayer.beta.MUSIC_UPDATE"; public static final String SONG_CHANGED = "com.ecoplayer.beta.SONG_CHANGED"; public static final String PLAYER_STATE_CHANGED = "com.ecoplayer.beta.PLAYER_STATE_CHANGED"; public static final String ACTION_PLAY = "com.ecoplayer.beta.PLAY"; public static final String ACTION_PAUSE = "com.ecoplayer.beta.PAUSE";
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.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 com.somexapps.wyre.services.MediaService.java
/**
* Copyright 2014, 2015 Michael Limb, paulruiz
* Code adapted from:
* https://github.com/PaulTR/AndroidDemoProjects/blob/master/MediaSessionwithMediaStyleNotification/app/src/main/java/com/ptrprograms/mediasessionwithmediastylenotification/MediaPlayerService.java
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
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;