LoudnessCodecController.AddMediaCodec(MediaCodec) 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.
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.
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.