MediaCodec.SetOnFirstTunnelFrameReadyListener Method

Definition

Registers a callback to be invoked when the first output frame has been decoded and is ready to be rendered on a codec configured for tunnel mode with KEY_AUDIO_SESSION_ID.

[Android.Runtime.Register("setOnFirstTunnelFrameReadyListener", "(Landroid/os/Handler;Landroid/media/MediaCodec$OnFirstTunnelFrameReadyListener;)V", "", ApiSince=31)]
public void SetOnFirstTunnelFrameReadyListener (Android.OS.Handler? handler, Android.Media.MediaCodec.IOnFirstTunnelFrameReadyListener? listener);
[<Android.Runtime.Register("setOnFirstTunnelFrameReadyListener", "(Landroid/os/Handler;Landroid/media/MediaCodec$OnFirstTunnelFrameReadyListener;)V", "", ApiSince=31)>]
member this.SetOnFirstTunnelFrameReadyListener : Android.OS.Handler * Android.Media.MediaCodec.IOnFirstTunnelFrameReadyListener -> unit

Parameters

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.

listener
MediaCodec.IOnFirstTunnelFrameReadyListener

the callback that will be run. If null, clears any registered listener.

Attributes

Remarks

Java documentation for android.media.MediaCodec.setOnFirstTunnelFrameReadyListener(android.os.Handler, android.media.OnFirstTunnelFrameReadyListener).

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