Stay organized with collections
Save and categorize content based on your preferences.
LoudnessCodecController.OnLoudnessCodecUpdateListener
public
static
interface
LoudnessCodecController.OnLoudnessCodecUpdateListener
android.media.LoudnessCodecController.OnLoudnessCodecUpdateListener
|
Listener used for receiving asynchronous loudness metadata updates.
Summary
Public methods
public Bundle onLoudnessCodecUpdate (MediaCodec mediaCodec,
Bundle codecValues)
Contains the MediaCodec key/values that can be set directly to
configure the loudness of the handle's corresponding decoder (see
MediaCodec.setParameters(Bundle)
).
Parameters |
mediaCodec |
MediaCodec : the mediaCodec that will receive the new parameters |
codecValues |
Bundle : contains loudness key/value pairs that can be set
directly on the mediaCodec. The listener can modify
these values with their own edits which will be
returned for the mediaCodec configuration |
Returns |
Bundle |
a Bundle which contains the original computed codecValues
aggregated with user edits. The platform will configure the associated
MediaCodecs with the returned Bundle params. |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# LoudnessCodecController.OnLoudnessCodecUpdateListener\n\nAdded in [API level 35](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nLoudnessCodecController.OnLoudnessCodecUpdateListener\n=====================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nLoudnessCodecController.OnLoudnessCodecUpdateListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------------|\n| android.media.LoudnessCodecController.OnLoudnessCodecUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener used for receiving asynchronous loudness metadata updates.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` default `[Bundle](/reference/android/os/Bundle) | ` `[onLoudnessCodecUpdate](/reference/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener#onLoudnessCodecUpdate(android.media.MediaCodec,%20android.os.Bundle))`(`[MediaCodec](/reference/android/media/MediaCodec)` mediaCodec, `[Bundle](/reference/android/os/Bundle)` codecValues) ` Contains the MediaCodec key/values that can be set directly to configure the loudness of the handle's corresponding decoder (see [MediaCodec.setParameters(Bundle)](/reference/android/media/MediaCodec#setParameters(android.os.Bundle))). |\n\nPublic methods\n--------------\n\n### onLoudnessCodecUpdate\n\nAdded in [API level 35](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic Bundle onLoudnessCodecUpdate (MediaCodec mediaCodec, \n Bundle codecValues)\n```\n\nContains the MediaCodec key/values that can be set directly to\nconfigure the loudness of the handle's corresponding decoder (see\n[MediaCodec.setParameters(Bundle)](/reference/android/media/MediaCodec#setParameters(android.os.Bundle))).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mediaCodec` | `MediaCodec`: the mediaCodec that will receive the new parameters \u003cbr /\u003e |\n| `codecValues` | `Bundle`: contains loudness key/value pairs that can be set directly on the mediaCodec. The listener can modify these values with their own edits which will be returned for the mediaCodec configuration \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Bundle](/reference/android/os/Bundle) | a Bundle which contains the original computed codecValues aggregated with user edits. The platform will configure the associated MediaCodecs with the returned Bundle params. \u003cbr /\u003e |"]]