Ejemplo n.º 1
0
 /// <summary>
 /// Returns whether a given file name is an image or a video (based on its extension)
 /// </summary>
 /// <param name="filename">Filename of the file to check.</param>
 /// <returns>A boolean which is true if it is an acceptable video file and false otherwise.</returns>
 private static bool IsVideoFile(string filename)
 {
     return(MediaProcessor.GetAllAllowedVideoExtensions().Contains(Path.GetExtension(filename).ToLower()));
 }
Ejemplo n.º 2
0
        public bool HasAllowedVideoExt(string file)
        {
            string thisExt = Path.GetExtension(file).ToLower();

            return(MediaProcessor.GetAllAllowedVideoExtensions().Contains(thisExt));
        }