Skip to content

Commit 15a89e6

Browse files
author
James Dong
committed
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
1 parent 219dfa4 commit 15a89e6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11395,6 +11395,7 @@ package android.media {
1139511395
field public static final int MEDIA_INFO_METADATA_UPDATE = 802; // 0x322
1139611396
field public static final int MEDIA_INFO_NOT_SEEKABLE = 801; // 0x321
1139711397
field public static final int MEDIA_INFO_UNKNOWN = 1; // 0x1
11398+
field public static final int MEDIA_INFO_VIDEO_RENDERING_START = 3; // 0x3
1139811399
field public static final int MEDIA_INFO_VIDEO_TRACK_LAGGING = 700; // 0x2bc
1139911400
field public static final java.lang.String MEDIA_MIMETYPE_TEXT_SUBRIP = "application/x-subrip";
1140011401
field public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT = 1; // 0x1

media/java/android/media/MediaPlayer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,6 +2319,11 @@ public void setOnErrorListener(OnErrorListener listener)
23192319
*/
23202320
public static final int MEDIA_INFO_STARTED_AS_NEXT = 2;
23212321

2322+
/** The player just pushed the very first video frame for rendering.
2323+
* @see android.media.MediaPlayer.OnInfoListener
2324+
*/
2325+
public static final int MEDIA_INFO_VIDEO_RENDERING_START = 3;
2326+
23222327
/** The video is too complex for the decoder: it can't decode frames fast
23232328
* enough. Possibly only the audio plays fine at this stage.
23242329
* @see android.media.MediaPlayer.OnInfoListener
@@ -2374,6 +2379,7 @@ public interface OnInfoListener
23742379
* <ul>
23752380
* <li>{@link #MEDIA_INFO_UNKNOWN}
23762381
* <li>{@link #MEDIA_INFO_VIDEO_TRACK_LAGGING}
2382+
* <li>{@link #MEDIA_INFO_VIDEO_RENDERING_START}
23772383
* <li>{@link #MEDIA_INFO_BUFFERING_START}
23782384
* <li>{@link #MEDIA_INFO_BUFFERING_END}
23792385
* <li>{@link #MEDIA_INFO_BAD_INTERLEAVING}

0 commit comments

Comments
 (0)