Android.Media.MediaCodec.CreateInputSurface Method
Requests a Surface to use as the input to an encoder, in place of input buffers.

Syntax

[Android.Runtime.Register("createInputSurface", "()Landroid/view/Surface;", "")]
public Android.Views.Surface CreateInputSurface ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif not in the Configured state.

Remarks

Requests a Surface to use as the input to an encoder, in place of input buffers. This may only be called after MediaCodec.Configure(MediaFormat, Android.Views.Surface, Android.Views.Surface, Android.Views.Surface) and before MediaCodec.Start.

The application is responsible for calling release() on the Surface when done.

The Surface must be rendered with a hardware-accelerated API, such as OpenGL ES. Android.Views.Surface.LockCanvas(Android.Graphics.Rect) may fail or produce unexpected results.

[Android Documentation]

Requirements

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