Partager via


MediaStore.ExtraAcceptOriginalMediaFormat Field

Definition

Specify that the caller wants to receive the original media format without transcoding.

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

Field Value

Attributes

Remarks

Specify that the caller wants to receive the original media format without transcoding.

<b>Caution: using this flag can cause app compatibility issues whenever Android adds support for new media formats.</b> Clients should instead specify their supported media capabilities explicitly in their manifest or with the #EXTRA_MEDIA_CAPABILITIESopen flag.

This option is useful for apps that don't attempt to parse the actual byte contents of media files, such as playback using MediaPlayer or for off-device backup. Note that the android.Manifest.permission#ACCESS_MEDIA_LOCATION permission will still be required to avoid sensitive metadata redaction, similar to #setRequireOriginal(Uri). </ul>

Note that this flag overrides any explicitly declared media_capabilities.xml or ApplicationMediaCapabilities extras specified in the same open request.

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

Java documentation for android.provider.MediaStore.EXTRA_ACCEPT_ORIGINAL_MEDIA_FORMAT.

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