MediaStore.GetOriginalMediaFormatFileDescriptor 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.
Returns ParcelFileDescriptor
representing the original media file format for
fileDescriptor
.
[Android.Runtime.Register("getOriginalMediaFormatFileDescriptor", "(Landroid/content/Context;Landroid/os/ParcelFileDescriptor;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=31)]
public static Android.OS.ParcelFileDescriptor GetOriginalMediaFormatFileDescriptor (Android.Content.Context context, Android.OS.ParcelFileDescriptor fileDescriptor);
[<Android.Runtime.Register("getOriginalMediaFormatFileDescriptor", "(Landroid/content/Context;Landroid/os/ParcelFileDescriptor;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=31)>]
static member GetOriginalMediaFormatFileDescriptor : Android.Content.Context * Android.OS.ParcelFileDescriptor -> Android.OS.ParcelFileDescriptor
Parameters
- context
- Context
- fileDescriptor
- ParcelFileDescriptor
Returns
- Attributes
Remarks
Returns ParcelFileDescriptor
representing the original media file format for fileDescriptor
.
Media files may get transcoded based on an application's media capabilities requirements. However, in various cases, when the application needs access to the original media file, or doesn't attempt to parse the actual byte contents of media files, such as playback using MediaPlayer
or for off-device backup, this method can be useful.
This method is applicable only for media files managed by MediaStore
.
The method returns the original file descriptor with the same permission that the caller has for the input file descriptor.
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.