Do not try to play files in streaming by now
[pub/Android/ownCloud.git] / src / com / owncloud / android / datamodel / OCFile.java
index 0b581eb..fb89f57 100644 (file)
@@ -455,7 +455,11 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
     }
 
     public boolean isAudio() {
-        return (mMimeType.startsWith("audio/"));
+        return (mMimeType != null && mMimeType.startsWith("audio/"));
+    }
+
+    public boolean isVideo() {
+        return (mMimeType != null && mMimeType.startsWith("video/"));
     }
 
 }