Update documentation for getVideoWidth and getVideoHeight.

Ref: http://code.google.com/p/android/issues/detail?id=3024
This commit is contained in:
Jean-Baptiste Queru
2009-09-16 15:06:25 -07:00
parent 2419fa842b
commit ea5f767246

View File

@@ -794,8 +794,10 @@ public class MediaPlayer
* Returns the width of the video.
*
* @return the width of the video, or 0 if there is no video,
* no display surface was set, or prepare()/prepareAsync()
* have not completed yet
* no display surface was set, or the width has not been determined
* yet. The OnVideoSizeChangedListener can be registered via
* {@link #setOnVideoSizeChangedListener(OnVideoSizeChangedListener)}
* to provide a notification when the width is available.
*/
public native int getVideoWidth();
@@ -803,8 +805,10 @@ public class MediaPlayer
* Returns the height of the video.
*
* @return the height of the video, or 0 if there is no video,
* no display surface was set, or prepare()/prepareAsync()
* have not completed yet
* no display surface was set, or the height has not been determined
* yet. The OnVideoSizeChangedListener can be registered via
* {@link #setOnVideoSizeChangedListener(OnVideoSizeChangedListener)}
* to provide a notification when the height is available.
*/
public native int getVideoHeight();