Partager via


MediaStore.ExtraMediaCapabilities Field

Definition

Specify the ApplicationMediaCapabilities that should be used while opening a media.

[Android.Runtime.Register("EXTRA_MEDIA_CAPABILITIES", ApiSince=31)]
public const string ExtraMediaCapabilities;
[<Android.Runtime.Register("EXTRA_MEDIA_CAPABILITIES", ApiSince=31)>]
val mutable ExtraMediaCapabilities : string

Field Value

Attributes

Remarks

Specify the ApplicationMediaCapabilities that should be used while opening a media.

If the capabilities specified matches the format of the original file, the app will receive the original file, otherwise, it will get transcoded to a default supported format.

This flag takes higher precedence over the applications declared media_capabilities.xml and is useful for apps that want to have more granular control over their supported media capabilities.

This option can be added to the optsBundle in various ContentResolveropen methods.

Java documentation for android.provider.MediaStore.EXTRA_MEDIA_CAPABILITIES.

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