MediaCodec.SetOnFirstTunnelFrameReadyListener 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 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.
the callback that will be run. If null
, clears any registered
listener.
- 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.