Sdílet prostřednictvím


MediaRecorder.Surface Property

Definition

Gets the surface to record from when using SURFACE video source.

public virtual Android.Views.Surface? Surface { [Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "GetGetSurfaceHandler")] get; }
[<get: Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "GetGetSurfaceHandler")>]
member this.Surface : Android.Views.Surface

Property Value

Attributes

Exceptions

if it is called before Prepare(), after Stop(), or is called when VideoSource is not set to SURFACE.

Remarks

Gets the surface to record from when using SURFACE video source.

May only be called after #prepare. Frames rendered to the Surface before #start will be discarded.

Java documentation for android.media.MediaRecorder.getSurface().

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