summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-07-23 15:00:37 -0700
committerJames Dong <jdong@google.com>2012-07-23 15:47:27 -0700
commit15a89e6b48e9cd0112efcfd903843c5912e26567 (patch)
treea3f81dc9714182d69ffd5bacfef5e88f0bf3510f /media
parent219dfa4d392851c1ffd7147cb78d4236658a79d8 (diff)
downloadframeworks_base-15a89e6b48e9cd0112efcfd903843c5912e26567.zip
frameworks_base-15a89e6b48e9cd0112efcfd903843c5912e26567.tar.gz
frameworks_base-15a89e6b48e9cd0112efcfd903843c5912e26567.tar.bz2
Added MEDIA_INFO_VIDEO_RENDERING_START as an informational event
o MEDIA_INFO_VIDEO_RENDERING_START indicates that the player just pushed the very first video frame of a video source for rendering. Change-Id: I32dad93990f5d48b70fc79d841ca3ce3b1af4027 related-to-bug: 6851811
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaPlayer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 870a4a9..a25d934 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -2319,6 +2319,11 @@ public class MediaPlayer
*/
public static final int MEDIA_INFO_STARTED_AS_NEXT = 2;
+ /** The player just pushed the very first video frame for rendering.
+ * @see android.media.MediaPlayer.OnInfoListener
+ */
+ public static final int MEDIA_INFO_VIDEO_RENDERING_START = 3;
+
/** The video is too complex for the decoder: it can't decode frames fast
* enough. Possibly only the audio plays fine at this stage.
* @see android.media.MediaPlayer.OnInfoListener
@@ -2374,6 +2379,7 @@ public class MediaPlayer
* <ul>
* <li>{@link #MEDIA_INFO_UNKNOWN}
* <li>{@link #MEDIA_INFO_VIDEO_TRACK_LAGGING}
+ * <li>{@link #MEDIA_INFO_VIDEO_RENDERING_START}
* <li>{@link #MEDIA_INFO_BUFFERING_START}
* <li>{@link #MEDIA_INFO_BUFFERING_END}
* <li>{@link #MEDIA_INFO_BAD_INTERLEAVING}