From 295e7275458813795019d9bfb01610e177d2b43e Mon Sep 17 00:00:00 2001 From: Wei Jia Date: Thu, 15 Sep 2016 14:54:35 -0700 Subject: MediaPlayer: add comments of restriction for setNextMediaPlayer. Bug: 31517393 Change-Id: I50d1c6cb45d2544b0dcc8f0a3e7cc5818fcd024e --- media/java/android/media/MediaPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3-59-g8ed1b