Skip to content

Commit

Permalink
Handle audio files in media browser
Browse files Browse the repository at this point in the history
Fix #2474
  • Loading branch information
fadils committed Apr 27, 2015
1 parent 06c212a commit c15b38c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public static boolean isVideo(String url) {
url.endsWith(".3g2");
}

public static boolean isAudio(String url) {
if (url == null) {
return false;
}
return url.endsWith(".mp3") || url.endsWith(".ogg") || url.endsWith(".wav");
}

/**
* E.g. Jul 2, 2013 @ 21:57
*/
Expand Down

0 comments on commit c15b38c

Please sign in to comment.