Share via


MediaCodec.SetOnFrameRenderedListener Method

Definition

Registers a callback to be invoked when an output frame is rendered on the output surface.

[Android.Runtime.Register("setOnFrameRenderedListener", "(Landroid/media/MediaCodec$OnFrameRenderedListener;Landroid/os/Handler;)V", "", ApiSince=23)]
public void SetOnFrameRenderedListener (Android.Media.MediaCodec.IOnFrameRenderedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnFrameRenderedListener", "(Landroid/media/MediaCodec$OnFrameRenderedListener;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.SetOnFrameRenderedListener : Android.Media.MediaCodec.IOnFrameRenderedListener * Android.OS.Handler -> unit

Parameters

listener
MediaCodec.IOnFrameRenderedListener

the callback that will be run

handler
Handler

the callback will be run on the handler's thread. If null, the callback will be run on the default thread, which is the looper from which the codec was created, or a new thread if there was none.

Attributes

Remarks

Java documentation for android.media.MediaCodec.setOnFrameRenderedListener(android.media.OnFrameRenderedListener, android.os.Handler).

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