Example #1
0
        public bool WillAssist(MediaFile file)
        {
            string extension = Path.GetExtension(file.FileName);

            if (extension.StartsWith("."))
            {
                extension = extension.Substring(1);
            }

            if (GrouperQuickTimeFileRegistration.IsQTAudioExtension(extension) ||
                GrouperQuickTimeFileRegistration.IsQTVideoExtension(extension))
            {
                return(true);
            }

            return(false);
        }
Example #2
0
        public bool WillAssist(MediaFile file)
        {
            if (file == null)
            {
                throw new ArgumentNullException("file");
            }

            string extension = Path.GetExtension(file.FileName);

            if (extension.StartsWith("."))
            {
                extension = extension.Substring(1);
            }

            if (GrouperQuickTimeFileRegistration.IsQTAudioExtension(extension) ||
                GrouperQuickTimeFileRegistration.IsQTVideoExtension(extension))
            {
                return(true);
            }

            return(false);
        }