Skip to content
Snippets Groups Projects
Commit ffb9df56 authored by srosse's avatar srosse
Browse files

OO-1147: add mp4 to the list of movie format

parent d5e02756
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,8 @@ public class MovieFileResource extends FileResource { ...@@ -55,6 +55,8 @@ public class MovieFileResource extends FileResource {
String f = filename.toLowerCase(); String f = filename.toLowerCase();
return f.endsWith(".avi") || f.endsWith(".mpeg") || return f.endsWith(".avi") || f.endsWith(".mpeg") ||
f.endsWith(".mpg") || f.endsWith(".qt") || f.endsWith(".mpg") || f.endsWith(".qt") ||
f.endsWith(".rm") || f.endsWith(".ram"); f.endsWith(".rm") || f.endsWith(".ram") ||
f.endsWith(".mp4") || f.endsWith(".m4v") ||
f.endsWith(".mov");
} }
} }
...@@ -53,6 +53,8 @@ public class SoundFileResource extends FileResource { ...@@ -53,6 +53,8 @@ public class SoundFileResource extends FileResource {
public static boolean validate(String filename) { public static boolean validate(String filename) {
String f = filename.toLowerCase(); String f = filename.toLowerCase();
return f.endsWith(".mp3") || f.endsWith(".wav") || f.endsWith(".ra") || f.endsWith(".midi"); return f.endsWith(".mp3") || f.endsWith(".wav")
|| f.endsWith(".ra") || f.endsWith(".midi")
|| f.endsWith(".aac");
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment