Share via


LoudnessCodecController.AddMediaCodec(MediaCodec) Method

Definition

Adds a new MediaCodec that will stream data to a player which uses #mSessionId.

[Android.Runtime.Register("addMediaCodec", "(Landroid/media/MediaCodec;)Z", "GetAddMediaCodec_Landroid_media_MediaCodec_Handler", ApiSince=35)]
public virtual bool AddMediaCodec (Android.Media.MediaCodec mediaCodec);
[<Android.Runtime.Register("addMediaCodec", "(Landroid/media/MediaCodec;)Z", "GetAddMediaCodec_Landroid_media_MediaCodec_Handler", ApiSince=35)>]
abstract member AddMediaCodec : Android.Media.MediaCodec -> bool
override this.AddMediaCodec : Android.Media.MediaCodec -> bool

Parameters

mediaCodec
MediaCodec

the codec to start receiving asynchronous loudness updates. The codec has to be in a configured or started state in order to add it for loudness updates.

Returns

false if the mediaCodec was not configured or does not contain loudness metadata, true otherwise.

Attributes

Remarks

Adds a new MediaCodec that will stream data to a player which uses #mSessionId.

No new element will be added if the passed mediaCodec was previously added.

Java documentation for android.media.LoudnessCodecController.addMediaCodec(android.media.MediaCodec).

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