Android MediaController.MediaPlayerControl - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android MediaController.MediaPlayerControl class.

This code example shows how to use the following methods: getBufferPercentage, getCurrentPosition, getDuration, isPlaying
	{ 
		if (playerControl == null || isDragging)
		{ 
			return 0; 
		} 
		int position = playerControl.getCurrentPosition();
		int duration = playerControl.getDuration();
		if (null != seekbar)
		{ 
			if (0 < duration)
			{ 
				seekbar.setProgress(getProgressPercentage(position, duration));
			} 
			int percent = playerControl.getBufferPercentage();
			seekbar.setSecondaryProgress(percent);
			Logger.v(">> setProgress() " + position + " / " + duration + ", buffering : " + percent);
		} 
 
		if (null != time)
		{ 

4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: canPause, canSeekBackward, canSeekForward, getBufferPercentage, getCurrentPosition
	 */ 
	private void disableUnsupportedButtons() 
	{ 
		try 
		{ 
			if (null != pause && !playerControl.canPause())
			{ 
				pause.setEnabled(false);
			} 
			if (null != rewind && !playerControl.canSeekBackward())
			{ 
				rewind.setEnabled(false);
			} 
			if (null != fastforward && !playerControl.canSeekForward())
			{ 
				fastforward.setEnabled(false);
			} 
		} 
		catch (IncompatibleClassChangeError ex)
		{ 

1
CodeRank
Connect your IDE to all the code out there  Get Codota for Java

Related Android MediaController.MediaPlayerControl Questions & Answers:

See Code Examples for Android MediaController.MediaPlayerControl Methods: