Skip to content

Commit ca402cd

Browse files
author
James Dong
committed
Update onVideoSizeChanged() callback method Java doc to explicitly specify the conditions under which the width/height passed
to the callback could be 0. Change-Id: Ie921f0af8284eccfd02c4a5826ed41fe19f9676f related-to-bug: 5613451
1 parent 738a154 commit ca402cd

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)