Merge "Document that MediaPlayer.getDuration() returns an invalid value (-1)" into jb-mr2-dev

This commit is contained in:
Andreas Huber
2013-04-15 15:15:41 +00:00
committed by Android (Google) Code Review

View File

@@ -1181,7 +1181,8 @@ public class MediaPlayer
/**
* Gets the duration of the file.
*
* @return the duration in milliseconds
* @return the duration in milliseconds, if no duration is available
* (for example, if streaming live content), -1 is returned.
*/
public native int getDuration();