Stay organized with collections
Save and categorize content based on your preferences.
OnFirstTunnelFrameReadyListener
interface OnFirstTunnelFrameReadyListener
Listener to be called when the first output frame has been decoded and is ready to be rendered for a codec configured for tunnel mode with KEY_AUDIO_SESSION_ID
.
Summary
Public methods |
abstract Unit |
Called when the first output frame has been decoded and is ready to be rendered.
|
Public methods
onFirstTunnelFrameReady
abstract fun onFirstTunnelFrameReady(codec: MediaCodec): Unit
Called when the first output frame has been decoded and is ready to be rendered.
Parameters |
codec |
MediaCodec: This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaCodec.OnFirstTunnelFrameReadyListener\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnFirstTunnelFrameReadyListener\n===============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaCodec.OnFirstTunnelFrameReadyListener \"View this page in Java\") \n\n```\ninterface OnFirstTunnelFrameReadyListener\n```\n\n|---------------------------------------------------------------|\n| [android.media.MediaCodec.OnFirstTunnelFrameReadyListener](#) |\n\nListener to be called when the first output frame has been decoded and is ready to be rendered for a codec configured for tunnel mode with `KEY_AUDIO_SESSION_ID`.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onFirstTunnelFrameReady](#onFirstTunnelFrameReady(android.media.MediaCodec))`(`codec:` `[MediaCodec](/reference/kotlin/android/media/MediaCodec)`)` Called when the first output frame has been decoded and is ready to be rendered. |\n\nPublic methods\n--------------\n\n### onFirstTunnelFrameReady\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onFirstTunnelFrameReady(codec: MediaCodec): Unit\n```\n\nCalled when the first output frame has been decoded and is ready to be rendered.\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------|\n| `codec` | [MediaCodec](/reference/kotlin/android/media/MediaCodec): This value cannot be `null`. |"]]