Java 类android.widget.MediaController.MediaPlayerControl 实例源码

项目:audiobooks    文件:CallReceiver.java   
@Override
public void onReceive(Context context, Intent intent) {
    MediaPlayerControl mediaPlayerControl = Player.getMediaPlayerControl();
    if (mediaPlayerControl == null) {
        return;
    }
    TelephonyManager tm = (TelephonyManager) context
            .getSystemService(Service.TELEPHONY_SERVICE);
    switch (tm.getCallState()) {
        case TelephonyManager.CALL_STATE_RINGING:
            mediaPlayerControl.pause();
            break;
        case TelephonyManager.CALL_STATE_IDLE:
            if (!mediaPlayerControl.isPlaying()) {
                mediaPlayerControl.start();
            }
            break;
    }
}
项目:boohee_v5.6    文件:MediaControllerView.java   
public void setMediaPlayer(MediaPlayerControl player) {
    this.mPlayer = player;
    updatePausePlay();
}
项目:ExoPlayerController    文件:GoatMediaController.java   
public void setMediaPlayer(MediaPlayerControl player) {
    mPlayer = player;
    updatePausePlay();
}
项目:Cirrus    文件:MediaControlView.java   
public void setMediaPlayer(MediaPlayerControl player) {
    mPlayer = player;
    mHandler.sendEmptyMessage(SHOW_PROGRESS);
    updatePausePlay();
}
项目:Mediathek    文件:VideoControllerView.java   
public void setMediaPlayer(MediaPlayerControl player) {
    mPlayer = player;
    updatePausePlay();
}
项目:RoviRunner    文件:MediaPlayerPresenter.java   
@Override
public MediaPlayerControl getMediaPlayerControl()
{
    return this;
}
项目:audiobooks    文件:Player.java   
static MediaPlayerControl getMediaPlayerControl() {
    return mediaPlayerControl;
}
项目:boohee_v5.6    文件:IMediaController.java   
void setMediaPlayer(MediaPlayerControl mediaPlayerControl);
项目:RoviRunner    文件:IMediaPlayerPresenter.java   
MediaPlayerControl getMediaPlayerControl();