Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cd281c3 authored by Andreas Huber's avatar Andreas Huber
Browse files

Document that MediaPlayer.getDuration() returns an invalid value (-1)

if no duration information was available.

Change-Id: If064627cca7915f4562b6d61bfd4ceb9a3c9390c
related-to-bug: 8596285
parent f8a67f4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();