Browse Source

Add audio/mpeg to the MIME type table for .mp3 files to ensure they show up correctly in the native Android file chooser

tags/2021-05-28
ed 7 years ago
parent
commit
6275af3588
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_gui_basics/native/juce_common_MimeTypes.cpp

+ 3
- 2
modules/juce_gui_basics/native/juce_common_MimeTypes.cpp View File

@@ -31,7 +31,7 @@ struct MimeTypeTableEntry
{
const char* fileExtension, *mimeType;
static MimeTypeTableEntry table[640];
static MimeTypeTableEntry table[641];
};
static StringArray getMimeTypesForFileExtension (const String& fileExtension)
@@ -88,7 +88,7 @@ static String getCommonMimeType (const StringArray& mimeTypes)
}
//==============================================================================
MimeTypeTableEntry MimeTypeTableEntry::table[640] =
MimeTypeTableEntry MimeTypeTableEntry::table[641] =
{
{"3dm", "x-world/x-3dmf"},
{"3dmf", "x-world/x-3dmf"},
@@ -384,6 +384,7 @@ MimeTypeTableEntry MimeTypeTableEntry::table[640] =
{"mp2", "video/mpeg"},
{"mp2", "video/x-mpeg"},
{"mp2", "video/x-mpeq2a"},
{"mp3", "audio/mpeg"},
{"mp3", "audio/mpeg3"},
{"mp3", "audio/x-mpeg-3"},
{"mp3", "video/mpeg"},


Loading…
Cancel
Save