We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7614498 commit 79c326cCopy full SHA for 79c326c
WordPressUtils/src/main/java/org/wordpress/android/util/MediaUtils.java
@@ -71,6 +71,13 @@ public static boolean isVideo(String url) {
71
url.endsWith(".3g2");
72
}
73
74
+ public static boolean isAudio(String url) {
75
+ if (url == null) {
76
+ return false;
77
+ }
78
+ return url.endsWith(".mp3") || url.endsWith(".ogg") || url.endsWith(".wav");
79
80
+
81
/**
82
* E.g. Jul 2, 2013 @ 21:57
83
*/
0 commit comments