Code example for RemoteControlClient

Methods: setPlaybackState

0
 
	@TargetApi(14) 
	public void setLockscreenPaused() { 
		if (_remoteControlClient == null)
			return; 
		_remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);
	} 
 
	@TargetApi(14) 
	public void setLockscreenPlaying() { 
		if (_remoteControlClient == null)
			return; 
		_remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);
	} 
}