MediaPlayer.IOnVideoSizeChangedListener.OnVideoSizeChanged Method

Definition

Called to indicate the video size

[Android.Runtime.Register("onVideoSizeChanged", "(Landroid/media/MediaPlayer;II)V", "GetOnVideoSizeChanged_Landroid_media_MediaPlayer_IIHandler:Android.Media.MediaPlayer/IOnVideoSizeChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnVideoSizeChanged (Android.Media.MediaPlayer? mp, int width, int height);
[<Android.Runtime.Register("onVideoSizeChanged", "(Landroid/media/MediaPlayer;II)V", "GetOnVideoSizeChanged_Landroid_media_MediaPlayer_IIHandler:Android.Media.MediaPlayer/IOnVideoSizeChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnVideoSizeChanged : Android.Media.MediaPlayer * int * int -> unit

Parameters

mp
MediaPlayer

the MediaPlayer associated with this callback

width
Int32

the width of the video

height
Int32

the height of the video

Attributes

Remarks

Called to indicate the video size

The video size (width and height) could be 0 if there was no video, no display surface was set, or the value was not determined yet.

Java documentation for android.media.MediaPlayer.OnVideoSizeChangedListener.onVideoSizeChanged(android.media.MediaPlayer, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to