summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wei Jia <wjia@google.com> 2016-09-16 00:30:13 +0000
committer android-build-merger <android-build-merger@google.com> 2016-09-16 00:30:13 +0000
commitbff3f8a3374213a9336d1782c20a8175634ebe66 (patch)
tree9565faf4844d4cd18c21833764e19874cbd93c9d
parent82440a78c9f6f50cafbd0adbc7a2f243f0b044b3 (diff)
parent295e7275458813795019d9bfb01610e177d2b43e (diff)
MediaPlayer: add comments of restriction for setNextMediaPlayer.
am: 295e727545 Change-Id: Ie1fa26a735bfd1167a94796ca379f5b860e959b4
-rw-r--r--media/java/android/media/MediaPlayer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 31c7a3249542..e5f7527c9db2 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -1641,7 +1641,8 @@ public class MediaPlayer extends PlayerBase
* (i.e. reaches the end of the stream).
* The media framework will attempt to transition from this player to
* the next as seamlessly as possible. The next player can be set at
- * any time before completion. The next player must be prepared by the
+ * any time before completion, but shall be after setDataSource has been
+ * called successfully. The next player must be prepared by the
* app, and the application should not call start() on it.
* The next MediaPlayer must be different from 'this'. An exception
* will be thrown if next == this.