MediaCodec.CreatePersistentInputSurface Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a persistent input surface that can be used with codecs that normally have an input surface, such as video encoders.
[Android.Runtime.Register("createPersistentInputSurface", "()Landroid/view/Surface;", "", ApiSince=23)]
public static Android.Views.Surface CreatePersistentInputSurface ();
[<Android.Runtime.Register("createPersistentInputSurface", "()Landroid/view/Surface;", "", ApiSince=23)>]
static member CreatePersistentInputSurface : unit -> Android.Views.Surface
Returns
an input surface that can be used with #setInputSurface
.
- Attributes
Remarks
Create a persistent input surface that can be used with codecs that normally have an input surface, such as video encoders. A persistent input can be reused by subsequent MediaCodec
or MediaRecorder
instances, but can only be used by at most one codec or recorder instance concurrently.
The application is responsible for calling release() on the Surface when done.
Java documentation for android.media.MediaCodec.createPersistentInputSurface()
.
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.