MediaCodec.SetOnFrameRenderedListener 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.
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
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.