Merge "Document that MediaPlayer.getDuration() returns an invalid value (-1)" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5c5c3f3abd
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user