Stay organized with collections
Save and categorize content based on your preferences.
OnLoudnessCodecUpdateListener
interface OnLoudnessCodecUpdateListener
Listener used for receiving asynchronous loudness metadata updates.
Summary
Public methods |
open Bundle |
Contains the MediaCodec key/values that can be set directly to configure the loudness of the handle's corresponding decoder (see MediaCodec.setParameters(Bundle) ).
|
Public methods
onLoudnessCodecUpdate
open fun onLoudnessCodecUpdate(
mediaCodec: MediaCodec,
codecValues: Bundle
): Bundle
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 |
Return |
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.
[[["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,["# LoudnessCodecController.OnLoudnessCodecUpdateListener\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnLoudnessCodecUpdateListener\n=============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener \"View this page in Java\") \n\n```\ninterface OnLoudnessCodecUpdateListener\n```\n\n|--------------------------------------------------------------------------|\n| [android.media.LoudnessCodecController.OnLoudnessCodecUpdateListener](#) |\n\nListener used for receiving asynchronous loudness metadata updates.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Bundle](../os/Bundle.html#) | [onLoudnessCodecUpdate](#onLoudnessCodecUpdate(android.media.MediaCodec,%20android.os.Bundle))`(`mediaCodec:` `[MediaCodec](/reference/kotlin/android/media/MediaCodec)`, `codecValues:` `[Bundle](../os/Bundle.html#)`)` 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/kotlin/android/media/MediaCodec#setParameters(android.os.Bundle))). |\n\nPublic methods\n--------------\n\n### onLoudnessCodecUpdate\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onLoudnessCodecUpdate(\n mediaCodec: MediaCodec, \n codecValues: Bundle\n): Bundle\n```\n\nContains the MediaCodec key/values that can be set directly to configure the loudness of the handle's corresponding decoder (see [MediaCodec.setParameters(Bundle)](/reference/kotlin/android/media/MediaCodec#setParameters(android.os.Bundle))).\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mediaCodec` | [MediaCodec](/reference/kotlin/android/media/MediaCodec): the mediaCodec that will receive the new parameters |\n| `codecValues` | [Bundle](../os/Bundle.html#): 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 |\n\n| Return ||\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Bundle](../os/Bundle.html#) | a Bundle which contains the original computed codecValues aggregated with user edits. The platform will configure the associated MediaCodecs with the returned Bundle params. |"]]