Skip to content

Commit 1321bc1

Browse files
James DongAndroid (Google) Code Review
authored andcommitted
Merge "Update onVideoSizeChanged() callback method Java doc to explicitly specify the conditions under which the width/height passed to the callback could be 0."
2 parents 9650b01 + ca402cd commit 1321bc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

media/java/android/media/MediaPlayer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,9 @@ public interface OnVideoSizeChangedListener
17351735
/**
17361736
* Called to indicate the video size
17371737
*
1738+
* The video size (width and height) could be 0 if there was no video,
1739+
* no display surface was set, or the value was not determined yet.
1740+
*
17381741
* @param mp the MediaPlayer associated with this callback
17391742
* @param width the width of the video
17401743
* @param height the height of the video

0 commit comments

Comments
 (0)