public MediaCategory getMediaCategoryMusic() { if (mediaCategoryMusic == null) { mediaCategoryMusic = new MediaCategory("Music"); mediaCategoryMusic.addExtension("mp3"); mediaCategoryMusic.addExtension("flac"); mediaCategoryMusic.addExtension("mpc"); mediaCategoryMusic.addExtension("ogg"); mediaCategoryMusic.setApp(getAppMusic()); } return mediaCategoryMusic; }
public MediaCategory getMediaCategoryPics() { if (mediaCategoryPics == null) { mediaCategoryPics = new MediaCategory("Pics"); mediaCategoryPics.addExtension("jpeg"); mediaCategoryPics.addExtension("jpg"); mediaCategoryPics.addExtension("gif"); mediaCategoryPics.addExtension("png"); mediaCategoryPics.setApp(getAppPics()); } return mediaCategoryPics; }
public MediaCategory getMediaCategoryMovies() { if (mediaCategoryMovies == null) { mediaCategoryMovies = new MediaCategory("Movies"); mediaCategoryMovies.setApp(getAppMovies()); mediaCategoryMovies.addExtension("avi"); mediaCategoryMovies.addExtension("mkv"); mediaCategoryMovies.addExtension("mpg"); mediaCategoryMovies.addExtension("mp4"); } return mediaCategoryMovies; }
public MediaCategory getMediaCategoryRoot() { if (mediaCategoryRoot == null) { mediaCategoryRoot = new MediaCategory(Constants.MEDIA_ROOT); mediaCategoryRoot.setDescription("Allows to browse the entire filesystem."); } return mediaCategoryRoot; }