Skip to content

Commit e5eb8c7

Browse files
committed
Add more audio formats
1 parent a70f524 commit e5eb8c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/MediaUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public static boolean isAudio(String url) {
7575
if (url == null) {
7676
return false;
7777
}
78-
return url.endsWith(".mp3") || url.endsWith(".ogg") || url.endsWith(".wav");
78+
return url.endsWith(".mp3") || url.endsWith(".ogg") || url.endsWith(".wav") || url.endsWith(".wma") ||
79+
url.endsWith(".aiff") || url.endsWith(".aif") || url.endsWith(".aac") || url.endsWith(".m4a");
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)