Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc4ce3e8 authored by Manish Singh's avatar Manish Singh Committed by Android (Google) Code Review
Browse files

Merge "Add unsupported mime types in media capabilities"

parents bcfa492e 530d7d9c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -769,10 +769,12 @@ public class MtpDatabase implements AutoCloseable {

        try {
            Log.i(TAG, "openFile with transcode support: " + path);
            // TODO(b/158466651): Pass the |transcode| variable as flag to openFile
            Bundle bundle = null;
            if (!transcode) {
                bundle = new Bundle();
            Bundle bundle = new Bundle();
            if (transcode) {
                bundle.putParcelable(MediaStore.EXTRA_MEDIA_CAPABILITIES,
                        new ApplicationMediaCapabilities.Builder().addUnsupportedVideoMimeType(
                                MediaFormat.MIMETYPE_VIDEO_HEVC).build());
            } else {
                bundle.putParcelable(MediaStore.EXTRA_MEDIA_CAPABILITIES,
                        new ApplicationMediaCapabilities.Builder().addSupportedVideoMimeType(
                                MediaFormat.MIMETYPE_VIDEO_HEVC).build());