Example usage for android.media AudioManager.OnAudioFocusChangeListener interface-usage

List of usage examples for android.media AudioManager.OnAudioFocusChangeListener interface-usage

Introduction

In this page you can find the example usage for android.media AudioManager.OnAudioFocusChangeListener interface-usage.

Usage

From source file net.simno.klingar.playback.LocalPlayback.java

/**
 * A class that implements local media playback using
 * {@link com.google.android.exoplayer2.ExoPlayer}
 */
class LocalPlayback implements Playback, ExoPlayer.EventListener, AudioManager.OnAudioFocusChangeListener {

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.owncloud.android.media.MediaService.java

/**
 * Service that handles media playback, both audio and video. 
 * 
 * Waits for Intents which signal the service to perform specific operations: Play, Pause,
 * Rewind, etc.
 */

From source file com.gelakinetic.mtgfam.fragments.LifeCounterFragment.java

public class LifeCounterFragment extends FamiliarFragment implements TextToSpeech.OnInitListener,
        AudioManager.OnAudioFocusChangeListener, TextToSpeech.OnUtteranceCompletedListener {

    /* constants for display mode */
    public static final int DISPLAY_NORMAL = 0;
    public static final int DISPLAY_COMPACT = 1;

From source file com.googlecode.mindbell.accessors.ContextAccessor.java

public class ContextAccessor implements AudioManager.OnAudioFocusChangeListener {

    public static final float MINUS_ONE_DB = 0.891250938f;

    public static final float MINUS_THREE_DB = 0.707945784f;

From source file leoisasmendi.android.com.suricatepodcast.services.MediaPlayerService.java

public class MediaPlayerService extends Service implements MediaPlayer.OnCompletionListener,
        MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnSeekCompleteListener,
        MediaPlayer.OnInfoListener, MediaPlayer.OnBufferingUpdateListener, AudioManager.OnAudioFocusChangeListener {

    private final String TAG = getClass().getSimpleName();

From source file nuclei.media.playback.ExoPlayerPlayback.java

public class ExoPlayerPlayback extends BasePlayback implements Playback, AudioManager.OnAudioFocusChangeListener,
        ExoPlayer.EventListener, ExtractorMediaSource.EventListener, AdaptiveMediaSourceEventListener {

    static final Log LOG = Logs.newLog(ExoPlayerPlayback.class);

    // The volume we set the media player to when we lose audio focus, but are

From source file com.oceansky.yellow.service.PlaybackService.java

/**
 * Service handling the playback of the audio and the play notification
 */
public class PlaybackService extends Service implements PluginsLookup.ConnectionListener, ILocalCallback,
        AudioManager.OnAudioFocusChangeListener, NativeHub.OnSampleWrittenListener {

From source file com.fastbootmobile.encore.service.PlaybackService.java

/**
 * Service handling the playback of the audio and the play notification
 */
public class PlaybackService extends Service implements PluginsLookup.ConnectionListener, ILocalCallback,
        AudioManager.OnAudioFocusChangeListener, NativeHub.OnSampleWrittenListener {

From source file org.telegram.messenger.voip.VoIPService.java

public class VoIPService extends Service implements VoIPController.ConnectionStateListener, SensorEventListener,
        AudioManager.OnAudioFocusChangeListener, NotificationCenter.NotificationCenterDelegate {

    private static final int ID_ONGOING_CALL_NOTIFICATION = 201;
    private static final int ID_INCOMING_CALL_NOTIFICATION = 202;