Android.Media.MediaPlayer.SetDisplay Method
Sets the Android.Views.ISurfaceHolder to use for displaying the video portion of the media.

Syntax

[Android.Runtime.Register("setDisplay", "(Landroid/view/SurfaceHolder;)V", "GetSetDisplay_Landroid_view_SurfaceHolder_Handler")]
public virtual void SetDisplay (Android.Views.ISurfaceHolder sh)

Parameters

sh
the SurfaceHolder to use for video display

Remarks

Sets the Android.Views.ISurfaceHolder to use for displaying the video portion of the media. Either a surface holder or surface must be set if a display or video sink is needed. Not calling this method or MediaPlayer.SetSurface(Android.Views.Surface) when playing back a video will result in only the audio track being played. A null surface holder or surface will result in only the audio track being played.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1