Dela via


MediaCodec.SetInputSurface(Surface) Method

Definition

Configures the codec (e.

[Android.Runtime.Register("setInputSurface", "(Landroid/view/Surface;)V", "", ApiSince=23)]
public void SetInputSurface (Android.Views.Surface surface);
[<Android.Runtime.Register("setInputSurface", "(Landroid/view/Surface;)V", "", ApiSince=23)>]
member this.SetInputSurface : Android.Views.Surface -> unit

Parameters

surface
Surface

a persistent input surface created by #createPersistentInputSurface

Attributes

Remarks

Configures the codec (e.g. encoder) to use a persistent input surface in place of input buffers. This may only be called after #configure and before #start, in lieu of #createInputSurface.

Java documentation for android.media.MediaCodec.setInputSurface(android.view.Surface).

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